OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright (c) 2013 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. |
| 5 */ |
| 6 |
| 7 #include "native_client/src/untrusted/irt/irt.h" |
| 8 #include "native_client/src/untrusted/irt/irt_instance.h" |
| 9 |
| 10 #include <string.h> |
| 11 #include <unistd.h> |
| 12 |
| 13 static void print(const char *message) { |
| 14 write(2, message, strlen(message)); |
| 15 } |
| 16 |
| 17 static int nacl_irt_instance_init(void) { |
| 18 print("core init\n"); |
| 19 /*struct irt *irt = (struct *irt) data;*/ |
| 20 /*nacl_irt_create_context(irt);*/ |
| 21 /*nacl_irt_instance_init(irt->instance, x);*/ |
| 22 return 0; |
| 23 } |
| 24 |
| 25 static void nacl_irt_instance_destroy(void) { |
| 26 } |
| 27 |
| 28 const struct nacl_irt_instance nacl_irt_instance = { |
| 29 nacl_irt_instance_init, |
| 30 nacl_irt_instance_destroy, |
| 31 }; |
OLD | NEW |