| 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_audio_input_dev.h" | 10 #include "ppapi/c/dev/ppb_audio_input_dev.h" |
| (...skipping 3286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3297 static PP_Bool Pnacl_M25_PPB_NaCl_Private_Are3DInterfacesDisabled(void) { | 3297 static PP_Bool Pnacl_M25_PPB_NaCl_Private_Are3DInterfacesDisabled(void) { |
| 3298 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; | 3298 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; |
| 3299 return iface->Are3DInterfacesDisabled(); | 3299 return iface->Are3DInterfacesDisabled(); |
| 3300 } | 3300 } |
| 3301 | 3301 |
| 3302 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) { | 3302 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) { |
| 3303 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; | 3303 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; |
| 3304 return iface->BrokerDuplicateHandle(source_handle, process_id, target_handle,
desired_access, options); | 3304 return iface->BrokerDuplicateHandle(source_handle, process_id, target_handle,
desired_access, options); |
| 3305 } | 3305 } |
| 3306 | 3306 |
| 3307 static PP_FileHandle Pnacl_M25_PPB_NaCl_Private_GetReadonlyPnaclFd(const char* u
rl) { | 3307 static void Pnacl_M25_PPB_NaCl_Private_GetReadExecPnaclFd(const char* url, struc
t PP_NaClFileInfo* out_file_info) { |
| 3308 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; | 3308 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; |
| 3309 return iface->GetReadonlyPnaclFd(url); | 3309 iface->GetReadExecPnaclFd(url, out_file_info); |
| 3310 } | 3310 } |
| 3311 | 3311 |
| 3312 static PP_FileHandle Pnacl_M25_PPB_NaCl_Private_CreateTemporaryFile(PP_Instance
instance) { | 3312 static PP_FileHandle Pnacl_M25_PPB_NaCl_Private_CreateTemporaryFile(PP_Instance
instance) { |
| 3313 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; | 3313 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; |
| 3314 return iface->CreateTemporaryFile(instance); | 3314 return iface->CreateTemporaryFile(instance); |
| 3315 } | 3315 } |
| 3316 | 3316 |
| 3317 static int32_t Pnacl_M25_PPB_NaCl_Private_GetNumberOfProcessors(void) { | 3317 static int32_t Pnacl_M25_PPB_NaCl_Private_GetNumberOfProcessors(void) { |
| 3318 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; | 3318 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; |
| 3319 return iface->GetNumberOfProcessors(); | 3319 return iface->GetNumberOfProcessors(); |
| (...skipping 1896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5216 }; | 5216 }; |
| 5217 | 5217 |
| 5218 /* Not generating wrapper interface for PPP_ManifestService_1_0 */ | 5218 /* Not generating wrapper interface for PPP_ManifestService_1_0 */ |
| 5219 | 5219 |
| 5220 static const struct PPB_NaCl_Private_1_0 Pnacl_Wrappers_PPB_NaCl_Private_1_0 = { | 5220 static const struct PPB_NaCl_Private_1_0 Pnacl_Wrappers_PPB_NaCl_Private_1_0 = { |
| 5221 .LaunchSelLdr = (void (*)(PP_Instance instance, PP_Bool main_service_runtime
, const char* alleged_url, const struct PP_NaClFileInfo* nexe_file_info, PP_Bool
uses_irt, PP_Bool uses_ppapi, PP_Bool uses_nonsfi_mode, PP_Bool enable_ppapi_de
v, PP_Bool enable_dyncode_syscalls, PP_Bool enable_exception_handling, PP_Bool e
nable_crash_throttling, const struct PPP_ManifestService_1_0* manifest_service_i
nterface, void* manifest_service_user_data, void* imc_handle, struct PP_Completi
onCallback callback))&Pnacl_M25_PPB_NaCl_Private_LaunchSelLdr, | 5221 .LaunchSelLdr = (void (*)(PP_Instance instance, PP_Bool main_service_runtime
, const char* alleged_url, const struct PP_NaClFileInfo* nexe_file_info, PP_Bool
uses_irt, PP_Bool uses_ppapi, PP_Bool uses_nonsfi_mode, PP_Bool enable_ppapi_de
v, PP_Bool enable_dyncode_syscalls, PP_Bool enable_exception_handling, PP_Bool e
nable_crash_throttling, const struct PPP_ManifestService_1_0* manifest_service_i
nterface, void* manifest_service_user_data, void* imc_handle, struct PP_Completi
onCallback callback))&Pnacl_M25_PPB_NaCl_Private_LaunchSelLdr, |
| 5222 .StartPpapiProxy = (PP_Bool (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pr
ivate_StartPpapiProxy, | 5222 .StartPpapiProxy = (PP_Bool (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pr
ivate_StartPpapiProxy, |
| 5223 .UrandomFD = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_UrandomFD, | 5223 .UrandomFD = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_UrandomFD, |
| 5224 .Are3DInterfacesDisabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_Ar
e3DInterfacesDisabled, | 5224 .Are3DInterfacesDisabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_Ar
e3DInterfacesDisabled, |
| 5225 .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, | 5225 .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, |
| 5226 .GetReadonlyPnaclFd = (PP_FileHandle (*)(const char* url))&Pnacl_M25_PPB_NaC
l_Private_GetReadonlyPnaclFd, | 5226 .GetReadExecPnaclFd = (void (*)(const char* url, struct PP_NaClFileInfo* out
_file_info))&Pnacl_M25_PPB_NaCl_Private_GetReadExecPnaclFd, |
| 5227 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M25_P
PB_NaCl_Private_CreateTemporaryFile, | 5227 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M25_P
PB_NaCl_Private_CreateTemporaryFile, |
| 5228 .GetNumberOfProcessors = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetN
umberOfProcessors, | 5228 .GetNumberOfProcessors = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetN
umberOfProcessors, |
| 5229 .IsNonSFIModeEnabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_IsNonS
FIModeEnabled, | 5229 .IsNonSFIModeEnabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_IsNonS
FIModeEnabled, |
| 5230 .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, | 5230 .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, |
| 5231 .ReportTranslationFinished = (void (*)(PP_Instance instance, PP_Bool success
, int32_t opt_level, int64_t pexe_size, int64_t compile_time_us, int64_t total_t
ime_us))&Pnacl_M25_PPB_NaCl_Private_ReportTranslationFinished, | 5231 .ReportTranslationFinished = (void (*)(PP_Instance instance, PP_Bool success
, int32_t opt_level, int64_t pexe_size, int64_t compile_time_us, int64_t total_t
ime_us))&Pnacl_M25_PPB_NaCl_Private_ReportTranslationFinished, |
| 5232 .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, | 5232 .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, |
| 5233 .ReportLoadSuccess = (void (*)(PP_Instance instance, const char* url, uint64
_t loaded_bytes, uint64_t total_bytes))&Pnacl_M25_PPB_NaCl_Private_ReportLoadSuc
cess, | 5233 .ReportLoadSuccess = (void (*)(PP_Instance instance, const char* url, uint64
_t loaded_bytes, uint64_t total_bytes))&Pnacl_M25_PPB_NaCl_Private_ReportLoadSuc
cess, |
| 5234 .ReportLoadError = (void (*)(PP_Instance instance, PP_NaClError error, const
char* error_message))&Pnacl_M25_PPB_NaCl_Private_ReportLoadError, | 5234 .ReportLoadError = (void (*)(PP_Instance instance, PP_NaClError error, const
char* error_message))&Pnacl_M25_PPB_NaCl_Private_ReportLoadError, |
| 5235 .ReportLoadAbort = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priva
te_ReportLoadAbort, | 5235 .ReportLoadAbort = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priva
te_ReportLoadAbort, |
| 5236 .NexeDidCrash = (void (*)(PP_Instance instance, const char* crash_log))&Pnac
l_M25_PPB_NaCl_Private_NexeDidCrash, | 5236 .NexeDidCrash = (void (*)(PP_Instance instance, const char* crash_log))&Pnac
l_M25_PPB_NaCl_Private_NexeDidCrash, |
| (...skipping 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6290 | 6290 |
| 6291 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ | 6291 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ |
| 6292 if (wrapper->real_iface == NULL) { | 6292 if (wrapper->real_iface == NULL) { |
| 6293 const void *iface = (*__real_PPPGetInterface)(name); | 6293 const void *iface = (*__real_PPPGetInterface)(name); |
| 6294 if (NULL == iface) return NULL; | 6294 if (NULL == iface) return NULL; |
| 6295 wrapper->real_iface = iface; | 6295 wrapper->real_iface = iface; |
| 6296 } | 6296 } |
| 6297 | 6297 |
| 6298 return wrapper->wrapped_iface; | 6298 return wrapper->wrapped_iface; |
| 6299 } | 6299 } |
| OLD | NEW |