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

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 sdk_files.list for mac 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..ee92dec95fafbaa603a5822ff583fa11c8684d7f
--- /dev/null
+++ b/native_client_sdk/src/libraries/ppapi_simple/ps.c
@@ -0,0 +1,20 @@
+/* Copyright (c) 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);
+}

Powered by Google App Engine
This is Rietveld 408576698