OLD | NEW |
1 /* Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2014 The Chromium Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
4 */ | 4 */ |
5 | 5 |
6 /* NOTE: this is auto-generated from IDL */ | 6 /* NOTE: this is auto-generated from IDL */ |
7 #include "ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.h" | 7 #include "ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.h" |
8 | 8 |
9 #include "ppapi/c/ppb.h" | 9 #include "ppapi/c/ppb.h" |
10 #include "ppapi/c/dev/ppb_alarms_dev.h" | 10 #include "ppapi/c/dev/ppb_alarms_dev.h" |
(...skipping 3143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3154 static void Pnacl_M25_PPB_NaCl_Private_SetReadOnlyProperty(PP_Instance instance,
struct PP_Var* key, struct PP_Var* value) { | 3154 static void Pnacl_M25_PPB_NaCl_Private_SetReadOnlyProperty(PP_Instance instance,
struct PP_Var* key, struct PP_Var* value) { |
3155 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; | 3155 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; |
3156 iface->SetReadOnlyProperty(instance, *key, *value); | 3156 iface->SetReadOnlyProperty(instance, *key, *value); |
3157 } | 3157 } |
3158 | 3158 |
3159 static void Pnacl_M25_PPB_NaCl_Private_ReportLoadError(PP_Instance instance, PP_
NaClError error, PP_Bool is_installed) { | 3159 static void Pnacl_M25_PPB_NaCl_Private_ReportLoadError(PP_Instance instance, PP_
NaClError error, PP_Bool is_installed) { |
3160 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; | 3160 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; |
3161 iface->ReportLoadError(instance, error, is_installed); | 3161 iface->ReportLoadError(instance, error, is_installed); |
3162 } | 3162 } |
3163 | 3163 |
| 3164 static PP_Bool Pnacl_M25_PPB_NaCl_Private_NaClDebugStubEnabled(void) { |
| 3165 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; |
| 3166 return iface->NaClDebugStubEnabled(); |
| 3167 } |
| 3168 |
3164 /* End wrapper methods for PPB_NaCl_Private_1_0 */ | 3169 /* End wrapper methods for PPB_NaCl_Private_1_0 */ |
3165 | 3170 |
3166 /* Begin wrapper methods for PPB_NetAddress_Private_0_1 */ | 3171 /* Begin wrapper methods for PPB_NetAddress_Private_0_1 */ |
3167 | 3172 |
3168 static PP_Bool Pnacl_M17_PPB_NetAddress_Private_AreEqual(const struct PP_NetAddr
ess_Private* addr1, const struct PP_NetAddress_Private* addr2) { | 3173 static PP_Bool Pnacl_M17_PPB_NetAddress_Private_AreEqual(const struct PP_NetAddr
ess_Private* addr1, const struct PP_NetAddress_Private* addr2) { |
3169 const struct PPB_NetAddress_Private_0_1 *iface = Pnacl_WrapperInfo_PPB_NetAddr
ess_Private_0_1.real_iface; | 3174 const struct PPB_NetAddress_Private_0_1 *iface = Pnacl_WrapperInfo_PPB_NetAddr
ess_Private_0_1.real_iface; |
3170 return iface->AreEqual(addr1, addr2); | 3175 return iface->AreEqual(addr1, addr2); |
3171 } | 3176 } |
3172 | 3177 |
3173 static PP_Bool Pnacl_M17_PPB_NetAddress_Private_AreHostsEqual(const struct PP_Ne
tAddress_Private* addr1, const struct PP_NetAddress_Private* addr2) { | 3178 static PP_Bool Pnacl_M17_PPB_NetAddress_Private_AreHostsEqual(const struct PP_Ne
tAddress_Private* addr1, const struct PP_NetAddress_Private* addr2) { |
(...skipping 1864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5038 .Are3DInterfacesDisabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_Ar
e3DInterfacesDisabled, | 5043 .Are3DInterfacesDisabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_Ar
e3DInterfacesDisabled, |
5039 .BrokerDuplicateHandle = (int32_t (*)(PP_FileHandle source_handle, uint32_t
process_id, PP_FileHandle* target_handle, uint32_t desired_access, uint32_t opti
ons))&Pnacl_M25_PPB_NaCl_Private_BrokerDuplicateHandle, | 5044 .BrokerDuplicateHandle = (int32_t (*)(PP_FileHandle source_handle, uint32_t
process_id, PP_FileHandle* target_handle, uint32_t desired_access, uint32_t opti
ons))&Pnacl_M25_PPB_NaCl_Private_BrokerDuplicateHandle, |
5040 .GetReadonlyPnaclFd = (PP_FileHandle (*)(const char* filename))&Pnacl_M25_PP
B_NaCl_Private_GetReadonlyPnaclFd, | 5045 .GetReadonlyPnaclFd = (PP_FileHandle (*)(const char* filename))&Pnacl_M25_PP
B_NaCl_Private_GetReadonlyPnaclFd, |
5041 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M25_P
PB_NaCl_Private_CreateTemporaryFile, | 5046 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M25_P
PB_NaCl_Private_CreateTemporaryFile, |
5042 .GetNumberOfProcessors = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetN
umberOfProcessors, | 5047 .GetNumberOfProcessors = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetN
umberOfProcessors, |
5043 .GetNexeFd = (int32_t (*)(PP_Instance instance, const char* pexe_url, uint32
_t abi_version, uint32_t opt_level, const char* last_modified, const char* etag,
PP_Bool has_no_store_header, const char* sandbox_isa, const char* extra_flags,
PP_Bool* is_hit, PP_FileHandle* nexe_handle, struct PP_CompletionCallback callba
ck))&Pnacl_M25_PPB_NaCl_Private_GetNexeFd, | 5048 .GetNexeFd = (int32_t (*)(PP_Instance instance, const char* pexe_url, uint32
_t abi_version, uint32_t opt_level, const char* last_modified, const char* etag,
PP_Bool has_no_store_header, const char* sandbox_isa, const char* extra_flags,
PP_Bool* is_hit, PP_FileHandle* nexe_handle, struct PP_CompletionCallback callba
ck))&Pnacl_M25_PPB_NaCl_Private_GetNexeFd, |
5044 .ReportTranslationFinished = (void (*)(PP_Instance instance, PP_Bool success
))&Pnacl_M25_PPB_NaCl_Private_ReportTranslationFinished, | 5049 .ReportTranslationFinished = (void (*)(PP_Instance instance, PP_Bool success
))&Pnacl_M25_PPB_NaCl_Private_ReportTranslationFinished, |
5045 .OpenNaClExecutable = (PP_FileHandle (*)(PP_Instance instance, const char* f
ile_url, uint64_t* file_token_lo, uint64_t* file_token_hi))&Pnacl_M25_PPB_NaCl_P
rivate_OpenNaClExecutable, | 5050 .OpenNaClExecutable = (PP_FileHandle (*)(PP_Instance instance, const char* f
ile_url, uint64_t* file_token_lo, uint64_t* file_token_hi))&Pnacl_M25_PPB_NaCl_P
rivate_OpenNaClExecutable, |
5046 .DispatchEvent = (void (*)(PP_Instance instance, PP_NaClEventType event_type
, const char* resource_url, PP_Bool length_is_computable, uint64_t loaded_bytes,
uint64_t total_bytes))&Pnacl_M25_PPB_NaCl_Private_DispatchEvent, | 5051 .DispatchEvent = (void (*)(PP_Instance instance, PP_NaClEventType event_type
, const char* resource_url, PP_Bool length_is_computable, uint64_t loaded_bytes,
uint64_t total_bytes))&Pnacl_M25_PPB_NaCl_Private_DispatchEvent, |
5047 .SetReadOnlyProperty = (void (*)(PP_Instance instance, struct PP_Var key, st
ruct PP_Var value))&Pnacl_M25_PPB_NaCl_Private_SetReadOnlyProperty, | 5052 .SetReadOnlyProperty = (void (*)(PP_Instance instance, struct PP_Var key, st
ruct PP_Var value))&Pnacl_M25_PPB_NaCl_Private_SetReadOnlyProperty, |
5048 .ReportLoadError = (void (*)(PP_Instance instance, PP_NaClError error, PP_Bo
ol is_installed))&Pnacl_M25_PPB_NaCl_Private_ReportLoadError | 5053 .ReportLoadError = (void (*)(PP_Instance instance, PP_NaClError error, PP_Bo
ol is_installed))&Pnacl_M25_PPB_NaCl_Private_ReportLoadError, |
| 5054 .NaClDebugStubEnabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_NaClD
ebugStubEnabled |
5049 }; | 5055 }; |
5050 | 5056 |
5051 static const struct PPB_NetAddress_Private_0_1 Pnacl_Wrappers_PPB_NetAddress_Pri
vate_0_1 = { | 5057 static const struct PPB_NetAddress_Private_0_1 Pnacl_Wrappers_PPB_NetAddress_Pri
vate_0_1 = { |
5052 .AreEqual = (PP_Bool (*)(const struct PP_NetAddress_Private* addr1, const st
ruct PP_NetAddress_Private* addr2))&Pnacl_M17_PPB_NetAddress_Private_AreEqual, | 5058 .AreEqual = (PP_Bool (*)(const struct PP_NetAddress_Private* addr1, const st
ruct PP_NetAddress_Private* addr2))&Pnacl_M17_PPB_NetAddress_Private_AreEqual, |
5053 .AreHostsEqual = (PP_Bool (*)(const struct PP_NetAddress_Private* addr1, con
st struct PP_NetAddress_Private* addr2))&Pnacl_M17_PPB_NetAddress_Private_AreHos
tsEqual, | 5059 .AreHostsEqual = (PP_Bool (*)(const struct PP_NetAddress_Private* addr1, con
st struct PP_NetAddress_Private* addr2))&Pnacl_M17_PPB_NetAddress_Private_AreHos
tsEqual, |
5054 .Describe = (struct PP_Var (*)(PP_Module module, const struct PP_NetAddress_
Private* addr, PP_Bool include_port))&Pnacl_M17_PPB_NetAddress_Private_Describe, | 5060 .Describe = (struct PP_Var (*)(PP_Module module, const struct PP_NetAddress_
Private* addr, PP_Bool include_port))&Pnacl_M17_PPB_NetAddress_Private_Describe, |
5055 .ReplacePort = (PP_Bool (*)(const struct PP_NetAddress_Private* src_addr, ui
nt16_t port, struct PP_NetAddress_Private* addr_out))&Pnacl_M17_PPB_NetAddress_P
rivate_ReplacePort, | 5061 .ReplacePort = (PP_Bool (*)(const struct PP_NetAddress_Private* src_addr, ui
nt16_t port, struct PP_NetAddress_Private* addr_out))&Pnacl_M17_PPB_NetAddress_P
rivate_ReplacePort, |
5056 .GetAnyAddress = (void (*)(PP_Bool is_ipv6, struct PP_NetAddress_Private* ad
dr))&Pnacl_M17_PPB_NetAddress_Private_GetAnyAddress | 5062 .GetAnyAddress = (void (*)(PP_Bool is_ipv6, struct PP_NetAddress_Private* ad
dr))&Pnacl_M17_PPB_NetAddress_Private_GetAnyAddress |
5057 }; | 5063 }; |
5058 | 5064 |
(...skipping 1044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6103 | 6109 |
6104 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ | 6110 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ |
6105 if (wrapper->real_iface == NULL) { | 6111 if (wrapper->real_iface == NULL) { |
6106 const void *iface = (*__real_PPPGetInterface)(name); | 6112 const void *iface = (*__real_PPPGetInterface)(name); |
6107 if (NULL == iface) return NULL; | 6113 if (NULL == iface) return NULL; |
6108 wrapper->real_iface = iface; | 6114 wrapper->real_iface = iface; |
6109 } | 6115 } |
6110 | 6116 |
6111 return wrapper->wrapped_iface; | 6117 return wrapper->wrapped_iface; |
6112 } | 6118 } |
OLD | NEW |