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

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

Issue 412083002: [NaCl SDK] Allow ppapi_simple executables to run in both sel_ldr and in chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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.h
diff --git a/native_client_sdk/src/libraries/ppapi_simple/ps.h b/native_client_sdk/src/libraries/ppapi_simple/ps.h
index a6bb3d3fc7cece9f5a9806773a293f419a01bb01..293eb047d00d19e9cbea5924e6be6c1f882fafbd 100644
--- a/native_client_sdk/src/libraries/ppapi_simple/ps.h
+++ b/native_client_sdk/src/libraries/ppapi_simple/ps.h
@@ -43,7 +43,7 @@ EXTERN_C_BEGIN
* Return the PP_Instance id of this instance of the module. This is required
* by most of the Pepper resource creation routines.
*/
-PP_Instance PSGetInstanceId();
+PP_Instance PSGetInstanceId(void);
/**
@@ -62,24 +62,12 @@ const void* PSGetInterface(const char *name);
* the instance object. This function is defined by one of the macros below,
binji 2014/07/25 17:04:36 fix: There are no macros below
Sam Clegg 2014/08/20 15:24:29 I removed this function completely. Since this ch
* or by the equivalent macro in one of the other headers. For 'C'
* development, one of the basic instances which support C callback are used.
- * For C++, this function should instantiate the user defined instance. See
- * the two macros below.
+ * For C++, this function should instantiate the user defined instance.
+ * See ps_main.h for an example of how this is defined.
*/
extern void* PSUserCreateInstance(PP_Instance inst);
-/**
- * PPAPI_SIMPLE_USE_MAIN
- *
- * For use with C projects, this macro calls the provided factory with
- * configuration information.
- */
-#define PPAPI_SIMPLE_USE_MAIN(factory, func) \
-void* PSUserCreateInstance(PP_Instance inst) { \
- return factory(inst, func); \
-}
-
-
EXTERN_C_END

Powered by Google App Engine
This is Rietveld 408576698