Index: src/untrusted/irt/irt_instance.c |
diff --git a/src/untrusted/irt/irt_instance.c b/src/untrusted/irt/irt_instance.c |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5121b19a6cc6295159d3a4cd7a57d66e85660fd0 |
--- /dev/null |
+++ b/src/untrusted/irt/irt_instance.c |
@@ -0,0 +1,31 @@ |
+/* |
+ * Copyright (c) 2013 The Native Client Authors. All rights reserved. |
+ * Use of this source code is governed by a BSD-style license that can be |
+ * found in the LICENSE file. |
+ */ |
+ |
+#include "native_client/src/untrusted/irt/irt.h" |
+#include "native_client/src/untrusted/irt/irt_instance.h" |
+ |
+#include <string.h> |
+#include <unistd.h> |
+ |
+static void print(const char *message) { |
+ write(2, message, strlen(message)); |
+} |
+ |
+static int nacl_irt_instance_init(void) { |
+ print("core init\n"); |
+ /*struct irt *irt = (struct *irt) data;*/ |
+ /*nacl_irt_create_context(irt);*/ |
+ /*nacl_irt_instance_init(irt->instance, x);*/ |
+ return 0; |
+} |
+ |
+static void nacl_irt_instance_destroy(void) { |
+} |
+ |
+const struct nacl_irt_instance nacl_irt_instance = { |
+ nacl_irt_instance_init, |
+ nacl_irt_instance_destroy, |
+}; |