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

Unified Diff: native_client_sdk/src/libraries/ppapi_simple/ps.c

Issue 914983003: [NaCl SDK] Switch ppapi_simple to C library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tty output bug Created 5 years, 10 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
Index: native_client_sdk/src/libraries/ppapi_simple/ps.c
diff --git a/native_client_sdk/src/libraries/ppapi_simple/ps.c b/native_client_sdk/src/libraries/ppapi_simple/ps.c
new file mode 100644
index 0000000000000000000000000000000000000000..6af5b084d33f81033a0425dbf43c17bbbcf5dd7d
--- /dev/null
+++ b/native_client_sdk/src/libraries/ppapi_simple/ps.c
@@ -0,0 +1,20 @@
+/* Copyright 2015 The Chromium 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 "ppapi_simple/ps.h"
+
+#include "ppapi/c/pp_instance.h"
+#include "ppapi/c/ppb.h"
+
+/* Defined in ps_instance.c */
+extern PP_Instance g_ps_instance;
+extern PPB_GetInterface g_ps_get_interface;
+
+PP_Instance PSGetInstanceId(void) {
+ return g_ps_instance;
+}
+
+const void* PSGetInterface(const char *name) {
+ return g_ps_get_interface(name);
+}
« no previous file with comments | « native_client_sdk/src/libraries/ppapi_simple/ps.h ('k') | native_client_sdk/src/libraries/ppapi_simple/ps.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698