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

Side by Side Diff: native_client_sdk/src/libraries/ppapi_simple/ps_entrypoints_c.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 unified diff | Download patch
OLDNEW
(Empty)
1 /* Copyright 2015 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. */
4
5 #include <ppapi/c/pp_errors.h>
6 #include <ppapi/c/pp_module.h>
7 #include <ppapi/c/ppb.h>
8
9 #include "ppapi_simple/ps_interface.h"
10
11 /* Defined in ps_instance.c. */
12 const void* PSGetInterfaceImplementation(const char*);
13
14 extern PPB_GetInterface g_ps_get_interface;
15
16 /* This is defined to allow an executable to force inclusion of this object
17 * file. Otherwise PPP_* functions won't be linked in (because they are not
18 * needed until -lppapi on the link-line, which is usually last. */
19 FORCE_LINK_THIS(ps_entry)
20
21 int32_t PPP_InitializeModule(PP_Module module, PPB_GetInterface get_interface) {
22 g_ps_get_interface = get_interface;
23 PSInterfaceInit();
24 return PP_OK;
25 }
26
27 const void* PPP_GetInterface(const char* interface_name) {
28 return PSGetInterfaceImplementation(interface_name);
29 }
30
31 void PPP_ShutdownModule(void) {
32 }
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/ppapi_simple/ps_context_2d.cc ('k') | native_client_sdk/src/libraries/ppapi_simple/ps_event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698