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

Unified Diff: ppapi/nacl_irt/irt_ppapi.h

Issue 172633005: NaCl: Move definition of "struct nacl_irt_ppapihook" to the Chromium repo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/nacl_irt/irt_ppapi.h
diff --git a/ppapi/nacl_irt/irt_ppapi.h b/ppapi/nacl_irt/irt_ppapi.h
index 23fbabe87d6e9242daac35c26bf5885bf6777a0a..d1cbbee8cb862ccb9d5263b7b43c1bb7d6840cfa 100644
--- a/ppapi/nacl_irt/irt_ppapi.h
+++ b/ppapi/nacl_irt/irt_ppapi.h
@@ -4,13 +4,8 @@
* found in the LICENSE file.
*/
-/*
- * TODO(mseaborn): Change this to match the filename when NaCl's copy
- * of irt_ppapi.h is removed. For now it is needed to avoid a
- * duplicate definition.
- */
-#ifndef NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_PPAPI_H_
-#define NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_PPAPI_H_ 1
+#ifndef PPAPI_NACL_IRT_IRT_PPAPI_H_
+#define PPAPI_NACL_IRT_IRT_PPAPI_H_
#include <stddef.h>
@@ -38,4 +33,18 @@ struct PP_ThreadFunctions {
int (*thread_join)(uintptr_t tid);
};
+/*
+ * TODO(mseaborn): Make this unconditional after the definition of the
+ * struct has been removed from the NaCl side's irt.h.
+ */
+#if !defined(NACL_IRT_PPAPIHOOK_v0_1)
+
+#define NACL_IRT_PPAPIHOOK_v0_1 "nacl-irt-ppapihook-0.1"
+struct nacl_irt_ppapihook {
+ int (*ppapi_start)(const struct PP_StartFunctions*);
+ void (*ppapi_register_thread_creator)(const struct PP_ThreadFunctions*);
+};
+
+#endif
+
#endif
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698