Index: src/untrusted/irt/shim_dummy.c |
=================================================================== |
--- src/untrusted/irt/shim_dummy.c (revision 0) |
+++ src/untrusted/irt/shim_dummy.c (revision 0) |
@@ -0,0 +1,32 @@ |
+/* Copyright 2012 The Chromium Authors. All rights reserved. |
Mark Seaborn
2012/08/28 15:51:20
If this is in the NaCl tree, this should say "The
Robert Muth (chromium)
2012/08/28 18:13:30
Done.
|
+ * Use of this source code is governed by a BSD-style license that can be |
+ * found in the LICENSE file. |
+ */ |
+ |
+/* |
+ * This module satifies link dependencies in case we do not link |
Mark Seaborn
2012/08/28 15:51:20
"satisfies"
Saying "in case we do not link in shi
Robert Muth (chromium)
2012/08/28 18:13:30
Done.
|
+ * in shimming support into the irt. |
+ * It also rough documents the API of the automatically generated |
Mark Seaborn
2012/08/28 15:51:20
"roughly"
Robert Muth (chromium)
2012/08/28 18:13:30
Done.
|
+ * shimming code. |
+ */ |
+ |
+#include "ppapi/generators/pnacl_shim.h" |
+ |
+static PPB_GetInterface g_real_PPB_GetInterface = 0; |
+static PPP_GetInterface_Type g_real_PPP_GetInterface = 0; |
+ |
+void __set_real_Pnacl_PPBGetInterface(PPB_GetInterface real) { |
+ g_real_PPB_GetInterface = real; |
+} |
+ |
+void __set_real_Pnacl_PPPGetInterface(PPP_GetInterface_Type real) { |
+ g_real_PPP_GetInterface = real; |
+} |
+ |
+const void *__Pnacl_PPBGetInterface(const char *name) { |
+ return g_real_PPB_GetInterface(name); |
+} |
+ |
+const void *__Pnacl_PPPGetInterface(const char *name) { |
+ return g_real_PPP_GetInterface(name); |
+} |
Property changes on: src/untrusted/irt/shim_dummy.c |
___________________________________________________________________ |
Added: svn:eol-style |
+ LF |