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

Unified Diff: ppapi/generators/pnacl_shim.h

Issue 8568025: Pnacl ppapi shim generator (from IDL), based on Noel's first cut. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 1 month 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 | « ppapi/generators/idl_generator.py ('k') | ppapi/generators/test_gen_pnacl/test_interfaces.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/generators/pnacl_shim.h
diff --git a/ppapi/generators/pnacl_shim.h b/ppapi/generators/pnacl_shim.h
new file mode 100644
index 0000000000000000000000000000000000000000..1002d07037a8eaa698249ae6a0a2934cd4fca0ff
--- /dev/null
+++ b/ppapi/generators/pnacl_shim.h
@@ -0,0 +1,29 @@
+/* Copyright (c) 2011 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.
+ */
+
+#ifndef PPAPI_GENERATORS_PNACL_SHIM_H_
+#define PPAPI_GENERATORS_PNACL_SHIM_H_
+
+#include "ppapi/c/ppb.h"
+
+/** Defines the interface exposed by the generated wrapper code. */
+
+/* There is not a typedef for PPP_GetInterface_type, but it is currently
+ * the same as PPB_GetInterface. */
+typedef PPB_GetInterface PPP_GetInterface_Type;
+
+void __set_real_Pnacl_PPBGetInterface(PPB_GetInterface real);
+void __set_real_Pnacl_PPPGetInterface(PPP_GetInterface_Type real);
+
+const void *__Pnacl_PPBGetInterface(const char *name);
+const void *__Pnacl_PPPGetInterface(const char *name);
+
+struct __PnaclWrapperInfo {
+ const char* iface_macro;
+ const void* wrapped_iface; /* If NULL then it was not wrapped! */
+ const void* real_iface;
+};
+
+#endif /* PPAPI_GENERATORS_PNACL_SHIM_H_ */
« no previous file with comments | « ppapi/generators/idl_generator.py ('k') | ppapi/generators/test_gen_pnacl/test_interfaces.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698