Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1429)

Unified Diff: src/untrusted/irt/irt_instance.c

Issue 25027006: Stackable IRT Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/untrusted/irt/irt_instance.h ('k') | src/untrusted/irt/irt_interfaces.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
+};
« no previous file with comments | « src/untrusted/irt/irt_instance.h ('k') | src/untrusted/irt/irt_interfaces.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698