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); |
+} |