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 3201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3212 static PP_Bool Pnacl_M25_PPB_NaCl_Private_Are3DInterfacesDisabled(void) { | 3212 static PP_Bool Pnacl_M25_PPB_NaCl_Private_Are3DInterfacesDisabled(void) { |
3213 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; | 3213 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; |
3214 return iface->Are3DInterfacesDisabled(); | 3214 return iface->Are3DInterfacesDisabled(); |
3215 } | 3215 } |
3216 | 3216 |
3217 static int32_t Pnacl_M25_PPB_NaCl_Private_BrokerDuplicateHandle(PP_FileHandle so
urce_handle, uint32_t process_id, PP_FileHandle* target_handle, uint32_t desired
_access, uint32_t options) { | 3217 static int32_t Pnacl_M25_PPB_NaCl_Private_BrokerDuplicateHandle(PP_FileHandle so
urce_handle, uint32_t process_id, PP_FileHandle* target_handle, uint32_t desired
_access, uint32_t options) { |
3218 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; | 3218 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; |
3219 return iface->BrokerDuplicateHandle(source_handle, process_id, target_handle,
desired_access, options); | 3219 return iface->BrokerDuplicateHandle(source_handle, process_id, target_handle,
desired_access, options); |
3220 } | 3220 } |
3221 | 3221 |
3222 static PP_FileHandle Pnacl_M25_PPB_NaCl_Private_GetReadonlyPnaclFd(const char* f
ilename) { | 3222 static PP_FileHandle Pnacl_M25_PPB_NaCl_Private_GetReadonlyPnaclFd(const char* u
rl) { |
3223 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; | 3223 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; |
3224 return iface->GetReadonlyPnaclFd(filename); | 3224 return iface->GetReadonlyPnaclFd(url); |
3225 } | 3225 } |
3226 | 3226 |
3227 static PP_FileHandle Pnacl_M25_PPB_NaCl_Private_CreateTemporaryFile(PP_Instance
instance) { | 3227 static PP_FileHandle Pnacl_M25_PPB_NaCl_Private_CreateTemporaryFile(PP_Instance
instance) { |
3228 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; | 3228 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; |
3229 return iface->CreateTemporaryFile(instance); | 3229 return iface->CreateTemporaryFile(instance); |
3230 } | 3230 } |
3231 | 3231 |
3232 static int32_t Pnacl_M25_PPB_NaCl_Private_GetNumberOfProcessors(void) { | 3232 static int32_t Pnacl_M25_PPB_NaCl_Private_GetNumberOfProcessors(void) { |
3233 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; | 3233 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; |
3234 return iface->GetNumberOfProcessors(); | 3234 return iface->GetNumberOfProcessors(); |
(...skipping 1877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5112 }; | 5112 }; |
5113 | 5113 |
5114 /* Not generating wrapper interface for PPP_ManifestService_1_0 */ | 5114 /* Not generating wrapper interface for PPP_ManifestService_1_0 */ |
5115 | 5115 |
5116 static const struct PPB_NaCl_Private_1_0 Pnacl_Wrappers_PPB_NaCl_Private_1_0 = { | 5116 static const struct PPB_NaCl_Private_1_0 Pnacl_Wrappers_PPB_NaCl_Private_1_0 = { |
5117 .LaunchSelLdr = (void (*)(PP_Instance instance, PP_Bool main_service_runtime
, const char* alleged_url, PP_Bool uses_irt, PP_Bool uses_ppapi, PP_Bool uses_no
nsfi_mode, PP_Bool enable_ppapi_dev, PP_Bool enable_dyncode_syscalls, PP_Bool en
able_exception_handling, PP_Bool enable_crash_throttling, const struct PPP_Manif
estService_1_0* manifest_service_interface, void* manifest_service_user_data, vo
id* imc_handle, struct PP_CompletionCallback callback))&Pnacl_M25_PPB_NaCl_Priva
te_LaunchSelLdr, | 5117 .LaunchSelLdr = (void (*)(PP_Instance instance, PP_Bool main_service_runtime
, const char* alleged_url, PP_Bool uses_irt, PP_Bool uses_ppapi, PP_Bool uses_no
nsfi_mode, PP_Bool enable_ppapi_dev, PP_Bool enable_dyncode_syscalls, PP_Bool en
able_exception_handling, PP_Bool enable_crash_throttling, const struct PPP_Manif
estService_1_0* manifest_service_interface, void* manifest_service_user_data, vo
id* imc_handle, struct PP_CompletionCallback callback))&Pnacl_M25_PPB_NaCl_Priva
te_LaunchSelLdr, |
5118 .StartPpapiProxy = (PP_Bool (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pr
ivate_StartPpapiProxy, | 5118 .StartPpapiProxy = (PP_Bool (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pr
ivate_StartPpapiProxy, |
5119 .UrandomFD = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_UrandomFD, | 5119 .UrandomFD = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_UrandomFD, |
5120 .Are3DInterfacesDisabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_Ar
e3DInterfacesDisabled, | 5120 .Are3DInterfacesDisabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_Ar
e3DInterfacesDisabled, |
5121 .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, | 5121 .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, |
5122 .GetReadonlyPnaclFd = (PP_FileHandle (*)(const char* filename))&Pnacl_M25_PP
B_NaCl_Private_GetReadonlyPnaclFd, | 5122 .GetReadonlyPnaclFd = (PP_FileHandle (*)(const char* url))&Pnacl_M25_PPB_NaC
l_Private_GetReadonlyPnaclFd, |
5123 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M25_P
PB_NaCl_Private_CreateTemporaryFile, | 5123 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M25_P
PB_NaCl_Private_CreateTemporaryFile, |
5124 .GetNumberOfProcessors = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetN
umberOfProcessors, | 5124 .GetNumberOfProcessors = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetN
umberOfProcessors, |
5125 .IsNonSFIModeEnabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_IsNonS
FIModeEnabled, | 5125 .IsNonSFIModeEnabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_IsNonS
FIModeEnabled, |
5126 .GetNexeFd = (int32_t (*)(PP_Instance instance, const char* pexe_url, uint32
_t abi_version, uint32_t opt_level, const char* headers, const char* extra_flags
, PP_Bool* is_hit, PP_FileHandle* nexe_handle, struct PP_CompletionCallback call
back))&Pnacl_M25_PPB_NaCl_Private_GetNexeFd, | 5126 .GetNexeFd = (int32_t (*)(PP_Instance instance, const char* pexe_url, uint32
_t abi_version, uint32_t opt_level, const char* headers, const char* extra_flags
, PP_Bool* is_hit, PP_FileHandle* nexe_handle, struct PP_CompletionCallback call
back))&Pnacl_M25_PPB_NaCl_Private_GetNexeFd, |
5127 .ReportTranslationFinished = (void (*)(PP_Instance instance, PP_Bool success
))&Pnacl_M25_PPB_NaCl_Private_ReportTranslationFinished, | 5127 .ReportTranslationFinished = (void (*)(PP_Instance instance, PP_Bool success
))&Pnacl_M25_PPB_NaCl_Private_ReportTranslationFinished, |
5128 .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, | 5128 .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, |
5129 .ReportLoadSuccess = (void (*)(PP_Instance instance, const char* url, uint64
_t loaded_bytes, uint64_t total_bytes))&Pnacl_M25_PPB_NaCl_Private_ReportLoadSuc
cess, | 5129 .ReportLoadSuccess = (void (*)(PP_Instance instance, const char* url, uint64
_t loaded_bytes, uint64_t total_bytes))&Pnacl_M25_PPB_NaCl_Private_ReportLoadSuc
cess, |
5130 .ReportLoadError = (void (*)(PP_Instance instance, PP_NaClError error, const
char* error_message, const char* console_message))&Pnacl_M25_PPB_NaCl_Private_R
eportLoadError, | 5130 .ReportLoadError = (void (*)(PP_Instance instance, PP_NaClError error, const
char* error_message, const char* console_message))&Pnacl_M25_PPB_NaCl_Private_R
eportLoadError, |
5131 .ReportLoadAbort = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priva
te_ReportLoadAbort, | 5131 .ReportLoadAbort = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priva
te_ReportLoadAbort, |
5132 .NexeDidCrash = (void (*)(PP_Instance instance, const char* crash_log))&Pnac
l_M25_PPB_NaCl_Private_NexeDidCrash, | 5132 .NexeDidCrash = (void (*)(PP_Instance instance, const char* crash_log))&Pnac
l_M25_PPB_NaCl_Private_NexeDidCrash, |
(...skipping 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6173 | 6173 |
6174 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ | 6174 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ |
6175 if (wrapper->real_iface == NULL) { | 6175 if (wrapper->real_iface == NULL) { |
6176 const void *iface = (*__real_PPPGetInterface)(name); | 6176 const void *iface = (*__real_PPPGetInterface)(name); |
6177 if (NULL == iface) return NULL; | 6177 if (NULL == iface) return NULL; |
6178 wrapper->real_iface = iface; | 6178 wrapper->real_iface = iface; |
6179 } | 6179 } |
6180 | 6180 |
6181 return wrapper->wrapped_iface; | 6181 return wrapper->wrapped_iface; |
6182 } | 6182 } |
OLD | NEW |