1 /* Copyright (c) 2011 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.
6 #ifndef PPAPI_NATIVE_CLIENT_SRC_UNTRUSTED_PNACL_IRT_SHIM_PNACL_SHIM_H_
7 #define PPAPI_NATIVE_CLIENT_SRC_UNTRUSTED_PNACL_IRT_SHIM_PNACL_SHIM_H_
9 #include "ppapi/c/ppb.h"
11 /** Defines the interface exposed by the generated wrapper code. */
13 /* There is not a typedef for PPP_GetInterface_type, but it is currently
14 * the same as PPB_GetInterface. */
15 typedef PPB_GetInterface PPP_GetInterface_Type
;
17 void __set_real_Pnacl_PPBGetInterface(PPB_GetInterface real
);
18 void __set_real_Pnacl_PPPGetInterface(PPP_GetInterface_Type real
);
20 const void *__Pnacl_PPBGetInterface(const char *name
);
21 const void *__Pnacl_PPPGetInterface(const char *name
);
23 struct __PnaclWrapperInfo
{
24 const char* iface_macro
;
25 const void* wrapped_iface
;
26 const void* real_iface
;
29 #endif /* PPAPI_NATIVE_CLIENT_SRC_UNTRUSTED_PNACL_IRT_SHIM_PNACL_SHIM_H_ */