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