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 3138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3149 static PP_FileHandle Pnacl_M25_PPB_NaCl_Private_OpenNaClExecutable(PP_Instance i
nstance, const char* file_url, uint64_t* file_token_lo, uint64_t* file_token_hi)
{ | 3149 static PP_FileHandle Pnacl_M25_PPB_NaCl_Private_OpenNaClExecutable(PP_Instance i
nstance, const char* file_url, uint64_t* file_token_lo, uint64_t* file_token_hi)
{ |
3150 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; | 3150 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; |
3151 return iface->OpenNaClExecutable(instance, file_url, file_token_lo, file_token
_hi); | 3151 return iface->OpenNaClExecutable(instance, file_url, file_token_lo, file_token
_hi); |
3152 } | 3152 } |
3153 | 3153 |
3154 static void Pnacl_M25_PPB_NaCl_Private_DispatchEvent(PP_Instance instance, PP_Na
ClEventType event_type, const char* resource_url, PP_Bool length_is_computable,
uint64_t loaded_bytes, uint64_t total_bytes) { | 3154 static void Pnacl_M25_PPB_NaCl_Private_DispatchEvent(PP_Instance instance, PP_Na
ClEventType event_type, const char* resource_url, PP_Bool length_is_computable,
uint64_t loaded_bytes, uint64_t total_bytes) { |
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->DispatchEvent(instance, event_type, resource_url, length_is_computable,
loaded_bytes, total_bytes); | 3156 iface->DispatchEvent(instance, event_type, resource_url, length_is_computable,
loaded_bytes, total_bytes); |
3157 } | 3157 } |
3158 | 3158 |
3159 static void Pnacl_M25_PPB_NaCl_Private_SetReadOnlyProperty(PP_Instance instance,
struct PP_Var* key, struct PP_Var* value) { | |
3160 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; | |
3161 iface->SetReadOnlyProperty(instance, *key, *value); | |
3162 } | |
3163 | |
3164 static void Pnacl_M25_PPB_NaCl_Private_ReportLoadSuccess(PP_Instance instance, c
onst char* url, uint64_t loaded_bytes, uint64_t total_bytes) { | 3159 static void Pnacl_M25_PPB_NaCl_Private_ReportLoadSuccess(PP_Instance instance, c
onst char* url, uint64_t loaded_bytes, uint64_t total_bytes) { |
3165 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; |
3166 iface->ReportLoadSuccess(instance, url, loaded_bytes, total_bytes); | 3161 iface->ReportLoadSuccess(instance, url, loaded_bytes, total_bytes); |
3167 } | 3162 } |
3168 | 3163 |
3169 static void Pnacl_M25_PPB_NaCl_Private_ReportLoadError(PP_Instance instance, PP_
NaClError error, const char* error_message, const char* console_message) { | 3164 static void Pnacl_M25_PPB_NaCl_Private_ReportLoadError(PP_Instance instance, PP_
NaClError error, const char* error_message, const char* console_message) { |
3170 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; | 3165 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; |
3171 iface->ReportLoadError(instance, error, error_message, console_message); | 3166 iface->ReportLoadError(instance, error, error_message, console_message); |
3172 } | 3167 } |
3173 | 3168 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3239 static int64_t Pnacl_M25_PPB_NaCl_Private_GetReadyTime(PP_Instance instance) { | 3234 static int64_t Pnacl_M25_PPB_NaCl_Private_GetReadyTime(PP_Instance instance) { |
3240 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; | 3235 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; |
3241 return iface->GetReadyTime(instance); | 3236 return iface->GetReadyTime(instance); |
3242 } | 3237 } |
3243 | 3238 |
3244 static void Pnacl_M25_PPB_NaCl_Private_SetReadyTime(PP_Instance instance, int64_
t ready_time) { | 3239 static void Pnacl_M25_PPB_NaCl_Private_SetReadyTime(PP_Instance instance, int64_
t ready_time) { |
3245 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; | 3240 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; |
3246 iface->SetReadyTime(instance, ready_time); | 3241 iface->SetReadyTime(instance, ready_time); |
3247 } | 3242 } |
3248 | 3243 |
| 3244 static int32_t Pnacl_M25_PPB_NaCl_Private_GetExitStatus(PP_Instance instance) { |
| 3245 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; |
| 3246 return iface->GetExitStatus(instance); |
| 3247 } |
| 3248 |
| 3249 static void Pnacl_M25_PPB_NaCl_Private_SetExitStatus(PP_Instance instance, int32
_t exit_status) { |
| 3250 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; |
| 3251 iface->SetExitStatus(instance, exit_status); |
| 3252 } |
| 3253 |
3249 /* End wrapper methods for PPB_NaCl_Private_1_0 */ | 3254 /* End wrapper methods for PPB_NaCl_Private_1_0 */ |
3250 | 3255 |
3251 /* Begin wrapper methods for PPB_NetAddress_Private_0_1 */ | 3256 /* Begin wrapper methods for PPB_NetAddress_Private_0_1 */ |
3252 | 3257 |
3253 static PP_Bool Pnacl_M17_PPB_NetAddress_Private_AreEqual(const struct PP_NetAddr
ess_Private* addr1, const struct PP_NetAddress_Private* addr2) { | 3258 static PP_Bool Pnacl_M17_PPB_NetAddress_Private_AreEqual(const struct PP_NetAddr
ess_Private* addr1, const struct PP_NetAddress_Private* addr2) { |
3254 const struct PPB_NetAddress_Private_0_1 *iface = Pnacl_WrapperInfo_PPB_NetAddr
ess_Private_0_1.real_iface; | 3259 const struct PPB_NetAddress_Private_0_1 *iface = Pnacl_WrapperInfo_PPB_NetAddr
ess_Private_0_1.real_iface; |
3255 return iface->AreEqual(addr1, addr2); | 3260 return iface->AreEqual(addr1, addr2); |
3256 } | 3261 } |
3257 | 3262 |
3258 static PP_Bool Pnacl_M17_PPB_NetAddress_Private_AreHostsEqual(const struct PP_Ne
tAddress_Private* addr1, const struct PP_NetAddress_Private* addr2) { | 3263 static PP_Bool Pnacl_M17_PPB_NetAddress_Private_AreHostsEqual(const struct PP_Ne
tAddress_Private* addr1, const struct PP_NetAddress_Private* addr2) { |
(...skipping 1871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5130 .Are3DInterfacesDisabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_Ar
e3DInterfacesDisabled, | 5135 .Are3DInterfacesDisabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_Ar
e3DInterfacesDisabled, |
5131 .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, | 5136 .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, |
5132 .GetReadonlyPnaclFd = (PP_FileHandle (*)(const char* filename))&Pnacl_M25_PP
B_NaCl_Private_GetReadonlyPnaclFd, | 5137 .GetReadonlyPnaclFd = (PP_FileHandle (*)(const char* filename))&Pnacl_M25_PP
B_NaCl_Private_GetReadonlyPnaclFd, |
5133 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M25_P
PB_NaCl_Private_CreateTemporaryFile, | 5138 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M25_P
PB_NaCl_Private_CreateTemporaryFile, |
5134 .GetNumberOfProcessors = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetN
umberOfProcessors, | 5139 .GetNumberOfProcessors = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetN
umberOfProcessors, |
5135 .IsNonSFIModeEnabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_IsNonS
FIModeEnabled, | 5140 .IsNonSFIModeEnabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_IsNonS
FIModeEnabled, |
5136 .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, | 5141 .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, |
5137 .ReportTranslationFinished = (void (*)(PP_Instance instance, PP_Bool success
))&Pnacl_M25_PPB_NaCl_Private_ReportTranslationFinished, | 5142 .ReportTranslationFinished = (void (*)(PP_Instance instance, PP_Bool success
))&Pnacl_M25_PPB_NaCl_Private_ReportTranslationFinished, |
5138 .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, | 5143 .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, |
5139 .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, | 5144 .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, |
5140 .SetReadOnlyProperty = (void (*)(PP_Instance instance, struct PP_Var key, st
ruct PP_Var value))&Pnacl_M25_PPB_NaCl_Private_SetReadOnlyProperty, | |
5141 .ReportLoadSuccess = (void (*)(PP_Instance instance, const char* url, uint64
_t loaded_bytes, uint64_t total_bytes))&Pnacl_M25_PPB_NaCl_Private_ReportLoadSuc
cess, | 5145 .ReportLoadSuccess = (void (*)(PP_Instance instance, const char* url, uint64
_t loaded_bytes, uint64_t total_bytes))&Pnacl_M25_PPB_NaCl_Private_ReportLoadSuc
cess, |
5142 .ReportLoadError = (void (*)(PP_Instance instance, PP_NaClError error, const
char* error_message, const char* console_message))&Pnacl_M25_PPB_NaCl_Private_R
eportLoadError, | 5146 .ReportLoadError = (void (*)(PP_Instance instance, PP_NaClError error, const
char* error_message, const char* console_message))&Pnacl_M25_PPB_NaCl_Private_R
eportLoadError, |
5143 .ReportLoadAbort = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priva
te_ReportLoadAbort, | 5147 .ReportLoadAbort = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priva
te_ReportLoadAbort, |
5144 .ReportDeadNexe = (void (*)(PP_Instance instance, int64_t crash_time))&Pnacl
_M25_PPB_NaCl_Private_ReportDeadNexe, | 5148 .ReportDeadNexe = (void (*)(PP_Instance instance, int64_t crash_time))&Pnacl
_M25_PPB_NaCl_Private_ReportDeadNexe, |
5145 .InstanceCreated = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priva
te_InstanceCreated, | 5149 .InstanceCreated = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priva
te_InstanceCreated, |
5146 .InstanceDestroyed = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pri
vate_InstanceDestroyed, | 5150 .InstanceDestroyed = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pri
vate_InstanceDestroyed, |
5147 .NaClDebugEnabledForURL = (PP_Bool (*)(const char* alleged_nmf_url))&Pnacl_M
25_PPB_NaCl_Private_NaClDebugEnabledForURL, | 5151 .NaClDebugEnabledForURL = (PP_Bool (*)(const char* alleged_nmf_url))&Pnacl_M
25_PPB_NaCl_Private_NaClDebugEnabledForURL, |
5148 .GetSandboxArch = (const char* (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetSand
boxArch, | 5152 .GetSandboxArch = (const char* (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetSand
boxArch, |
5149 .GetUrlScheme = (PP_UrlSchemeType (*)(struct PP_Var url))&Pnacl_M25_PPB_NaCl
_Private_GetUrlScheme, | 5153 .GetUrlScheme = (PP_UrlSchemeType (*)(struct PP_Var url))&Pnacl_M25_PPB_NaCl
_Private_GetUrlScheme, |
5150 .LogToConsole = (void (*)(PP_Instance instance, const char* message))&Pnacl_
M25_PPB_NaCl_Private_LogToConsole, | 5154 .LogToConsole = (void (*)(PP_Instance instance, const char* message))&Pnacl_
M25_PPB_NaCl_Private_LogToConsole, |
5151 .GetNexeErrorReported = (PP_Bool (*)(PP_Instance instance))&Pnacl_M25_PPB_Na
Cl_Private_GetNexeErrorReported, | 5155 .GetNexeErrorReported = (PP_Bool (*)(PP_Instance instance))&Pnacl_M25_PPB_Na
Cl_Private_GetNexeErrorReported, |
5152 .GetNaClReadyState = (PP_NaClReadyState (*)(PP_Instance instance))&Pnacl_M25
_PPB_NaCl_Private_GetNaClReadyState, | 5156 .GetNaClReadyState = (PP_NaClReadyState (*)(PP_Instance instance))&Pnacl_M25
_PPB_NaCl_Private_GetNaClReadyState, |
5153 .SetNaClReadyState = (void (*)(PP_Instance instance, PP_NaClReadyState ready
_state))&Pnacl_M25_PPB_NaCl_Private_SetNaClReadyState, | 5157 .SetNaClReadyState = (void (*)(PP_Instance instance, PP_NaClReadyState ready
_state))&Pnacl_M25_PPB_NaCl_Private_SetNaClReadyState, |
5154 .GetIsInstalled = (PP_Bool (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pri
vate_GetIsInstalled, | 5158 .GetIsInstalled = (PP_Bool (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pri
vate_GetIsInstalled, |
5155 .SetIsInstalled = (void (*)(PP_Instance instance, PP_Bool is_installed))&Pna
cl_M25_PPB_NaCl_Private_SetIsInstalled, | 5159 .SetIsInstalled = (void (*)(PP_Instance instance, PP_Bool is_installed))&Pna
cl_M25_PPB_NaCl_Private_SetIsInstalled, |
5156 .GetReadyTime = (int64_t (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priva
te_GetReadyTime, | 5160 .GetReadyTime = (int64_t (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priva
te_GetReadyTime, |
5157 .SetReadyTime = (void (*)(PP_Instance instance, int64_t ready_time))&Pnacl_M
25_PPB_NaCl_Private_SetReadyTime | 5161 .SetReadyTime = (void (*)(PP_Instance instance, int64_t ready_time))&Pnacl_M
25_PPB_NaCl_Private_SetReadyTime, |
| 5162 .GetExitStatus = (int32_t (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priv
ate_GetExitStatus, |
| 5163 .SetExitStatus = (void (*)(PP_Instance instance, int32_t exit_status))&Pnacl
_M25_PPB_NaCl_Private_SetExitStatus |
5158 }; | 5164 }; |
5159 | 5165 |
5160 static const struct PPB_NetAddress_Private_0_1 Pnacl_Wrappers_PPB_NetAddress_Pri
vate_0_1 = { | 5166 static const struct PPB_NetAddress_Private_0_1 Pnacl_Wrappers_PPB_NetAddress_Pri
vate_0_1 = { |
5161 .AreEqual = (PP_Bool (*)(const struct PP_NetAddress_Private* addr1, const st
ruct PP_NetAddress_Private* addr2))&Pnacl_M17_PPB_NetAddress_Private_AreEqual, | 5167 .AreEqual = (PP_Bool (*)(const struct PP_NetAddress_Private* addr1, const st
ruct PP_NetAddress_Private* addr2))&Pnacl_M17_PPB_NetAddress_Private_AreEqual, |
5162 .AreHostsEqual = (PP_Bool (*)(const struct PP_NetAddress_Private* addr1, con
st struct PP_NetAddress_Private* addr2))&Pnacl_M17_PPB_NetAddress_Private_AreHos
tsEqual, | 5168 .AreHostsEqual = (PP_Bool (*)(const struct PP_NetAddress_Private* addr1, con
st struct PP_NetAddress_Private* addr2))&Pnacl_M17_PPB_NetAddress_Private_AreHos
tsEqual, |
5163 .Describe = (struct PP_Var (*)(PP_Module module, const struct PP_NetAddress_
Private* addr, PP_Bool include_port))&Pnacl_M17_PPB_NetAddress_Private_Describe, | 5169 .Describe = (struct PP_Var (*)(PP_Module module, const struct PP_NetAddress_
Private* addr, PP_Bool include_port))&Pnacl_M17_PPB_NetAddress_Private_Describe, |
5164 .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, | 5170 .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, |
5165 .GetAnyAddress = (void (*)(PP_Bool is_ipv6, struct PP_NetAddress_Private* ad
dr))&Pnacl_M17_PPB_NetAddress_Private_GetAnyAddress | 5171 .GetAnyAddress = (void (*)(PP_Bool is_ipv6, struct PP_NetAddress_Private* ad
dr))&Pnacl_M17_PPB_NetAddress_Private_GetAnyAddress |
5166 }; | 5172 }; |
5167 | 5173 |
(...skipping 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6215 | 6221 |
6216 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ | 6222 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ |
6217 if (wrapper->real_iface == NULL) { | 6223 if (wrapper->real_iface == NULL) { |
6218 const void *iface = (*__real_PPPGetInterface)(name); | 6224 const void *iface = (*__real_PPPGetInterface)(name); |
6219 if (NULL == iface) return NULL; | 6225 if (NULL == iface) return NULL; |
6220 wrapper->real_iface = iface; | 6226 wrapper->real_iface = iface; |
6221 } | 6227 } |
6222 | 6228 |
6223 return wrapper->wrapped_iface; | 6229 return wrapper->wrapped_iface; |
6224 } | 6230 } |
OLD | NEW |