OLD | NEW |
(Empty) | |
| 1 /* Copyright (c) 2012 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 |
| 6 #include "ppapi/generators/pnacl_shim.h" |
| 7 |
| 8 static PPB_GetInterface g_real_PPB_GetInterface = 0; |
| 9 static PPP_GetInterface_Type g_real_PPP_GetInterface = 0; |
| 10 |
| 11 void __set_real_Pnacl_PPBGetInterface(PPB_GetInterface real) { |
| 12 g_real_PPB_GetInterface = real; |
| 13 } |
| 14 |
| 15 void __set_real_Pnacl_PPPGetInterface(PPP_GetInterface_Type real) { |
| 16 g_real_PPP_GetInterface = real; |
| 17 } |
| 18 |
| 19 const void *__Pnacl_PPBGetInterface(const char *name) { |
| 20 return g_real_PPB_GetInterface(name); |
| 21 } |
| 22 |
| 23 const void *__Pnacl_PPPGetInterface(const char *name) { |
| 24 return g_real_PPP_GetInterface(name); |
| 25 } |
OLD | NEW |