OLD | NEW |
1 /* Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2015 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" |
11 #include "ppapi/c/dev/ppb_device_ref_dev.h" | 11 #include "ppapi/c/dev/ppb_device_ref_dev.h" |
12 #include "ppapi/c/dev/ppb_file_chooser_dev.h" | 12 #include "ppapi/c/dev/ppb_file_chooser_dev.h" |
13 #include "ppapi/c/dev/ppb_font_dev.h" | 13 #include "ppapi/c/dev/ppb_font_dev.h" |
14 #include "ppapi/c/dev/ppb_ime_input_event_dev.h" | 14 #include "ppapi/c/dev/ppb_ime_input_event_dev.h" |
15 #include "ppapi/c/dev/ppb_printing_dev.h" | 15 #include "ppapi/c/dev/ppb_printing_dev.h" |
16 #include "ppapi/c/dev/ppb_truetype_font_dev.h" | 16 #include "ppapi/c/dev/ppb_truetype_font_dev.h" |
17 #include "ppapi/c/dev/ppb_url_util_dev.h" | 17 #include "ppapi/c/dev/ppb_url_util_dev.h" |
18 #include "ppapi/c/dev/ppb_video_capture_dev.h" | 18 #include "ppapi/c/dev/ppb_video_capture_dev.h" |
19 #include "ppapi/c/dev/ppb_video_decoder_dev.h" | 19 #include "ppapi/c/dev/ppb_video_decoder_dev.h" |
| 20 #include "ppapi/c/ppb_audio_encoder.h" |
20 #include "ppapi/c/ppb_compositor.h" | 21 #include "ppapi/c/ppb_compositor.h" |
21 #include "ppapi/c/ppb_compositor_layer.h" | 22 #include "ppapi/c/ppb_compositor_layer.h" |
22 #include "ppapi/c/ppb_console.h" | 23 #include "ppapi/c/ppb_console.h" |
23 #include "ppapi/c/ppb_core.h" | 24 #include "ppapi/c/ppb_core.h" |
24 #include "ppapi/c/ppb_file_io.h" | 25 #include "ppapi/c/ppb_file_io.h" |
25 #include "ppapi/c/ppb_file_ref.h" | 26 #include "ppapi/c/ppb_file_ref.h" |
26 #include "ppapi/c/ppb_file_system.h" | 27 #include "ppapi/c/ppb_file_system.h" |
27 #include "ppapi/c/ppb_graphics_2d.h" | 28 #include "ppapi/c/ppb_graphics_2d.h" |
28 #include "ppapi/c/ppb_graphics_3d.h" | 29 #include "ppapi/c/ppb_graphics_3d.h" |
29 #include "ppapi/c/ppb_host_resolver.h" | 30 #include "ppapi/c/ppb_host_resolver.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 if (*s2 == 0) break; | 87 if (*s2 == 0) break; |
87 if (*s1 != *s2) break; | 88 if (*s1 != *s2) break; |
88 ++s1; | 89 ++s1; |
89 ++s2; | 90 ++s2; |
90 } | 91 } |
91 return (int)(*s1) - (int)(*s2); | 92 return (int)(*s1) - (int)(*s2); |
92 } | 93 } |
93 | 94 |
94 /* BEGIN Declarations for all Wrapper Infos */ | 95 /* BEGIN Declarations for all Wrapper Infos */ |
95 | 96 |
| 97 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioEncoder_0_1; |
96 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Compositor_0_1; | 98 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Compositor_0_1; |
97 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_CompositorLayer_0_1; | 99 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_CompositorLayer_0_1; |
98 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_CompositorLayer_0_2; | 100 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_CompositorLayer_0_2; |
99 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Console_1_0; | 101 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Console_1_0; |
100 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Core_1_0; | 102 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Core_1_0; |
101 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_1_0; | 103 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_1_0; |
102 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_1_1; | 104 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_1_1; |
103 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_0; | 105 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_0; |
104 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_1; | 106 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_1; |
105 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_2; | 107 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_2; |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 /* Not generating wrapper methods for PPB_Audio_1_0 */ | 211 /* Not generating wrapper methods for PPB_Audio_1_0 */ |
210 | 212 |
211 /* Not generating wrapper methods for PPB_Audio_1_1 */ | 213 /* Not generating wrapper methods for PPB_Audio_1_1 */ |
212 | 214 |
213 /* Not generating wrapper methods for PPB_AudioBuffer_0_1 */ | 215 /* Not generating wrapper methods for PPB_AudioBuffer_0_1 */ |
214 | 216 |
215 /* Not generating wrapper methods for PPB_AudioConfig_1_0 */ | 217 /* Not generating wrapper methods for PPB_AudioConfig_1_0 */ |
216 | 218 |
217 /* Not generating wrapper methods for PPB_AudioConfig_1_1 */ | 219 /* Not generating wrapper methods for PPB_AudioConfig_1_1 */ |
218 | 220 |
| 221 /* Begin wrapper methods for PPB_AudioEncoder_0_1 */ |
| 222 |
| 223 static PP_Resource Pnacl_M47_PPB_AudioEncoder_Create(PP_Instance instance) { |
| 224 const struct PPB_AudioEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_AudioEncoder_
0_1.real_iface; |
| 225 return iface->Create(instance); |
| 226 } |
| 227 |
| 228 static PP_Bool Pnacl_M47_PPB_AudioEncoder_IsAudioEncoder(PP_Resource resource) { |
| 229 const struct PPB_AudioEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_AudioEncoder_
0_1.real_iface; |
| 230 return iface->IsAudioEncoder(resource); |
| 231 } |
| 232 |
| 233 static int32_t Pnacl_M47_PPB_AudioEncoder_GetSupportedProfiles(PP_Resource audio
_encoder, struct PP_ArrayOutput* output, struct PP_CompletionCallback* callback)
{ |
| 234 const struct PPB_AudioEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_AudioEncoder_
0_1.real_iface; |
| 235 return iface->GetSupportedProfiles(audio_encoder, *output, *callback); |
| 236 } |
| 237 |
| 238 static int32_t Pnacl_M47_PPB_AudioEncoder_Initialize(PP_Resource audio_encoder,
uint32_t channels, PP_AudioBuffer_SampleRate input_sample_rate, PP_AudioBuffer_S
ampleSize input_sample_size, PP_AudioProfile output_profile, uint32_t initial_bi
trate, PP_HardwareAcceleration acceleration, struct PP_CompletionCallback* callb
ack) { |
| 239 const struct PPB_AudioEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_AudioEncoder_
0_1.real_iface; |
| 240 return iface->Initialize(audio_encoder, channels, input_sample_rate, input_sam
ple_size, output_profile, initial_bitrate, acceleration, *callback); |
| 241 } |
| 242 |
| 243 static int32_t Pnacl_M47_PPB_AudioEncoder_GetNumberOfSamples(PP_Resource audio_e
ncoder) { |
| 244 const struct PPB_AudioEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_AudioEncoder_
0_1.real_iface; |
| 245 return iface->GetNumberOfSamples(audio_encoder); |
| 246 } |
| 247 |
| 248 static int32_t Pnacl_M47_PPB_AudioEncoder_GetBuffer(PP_Resource audio_encoder, P
P_Resource* audio_buffer, struct PP_CompletionCallback* callback) { |
| 249 const struct PPB_AudioEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_AudioEncoder_
0_1.real_iface; |
| 250 return iface->GetBuffer(audio_encoder, audio_buffer, *callback); |
| 251 } |
| 252 |
| 253 static int32_t Pnacl_M47_PPB_AudioEncoder_Encode(PP_Resource audio_encoder, PP_R
esource audio_buffer, struct PP_CompletionCallback* callback) { |
| 254 const struct PPB_AudioEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_AudioEncoder_
0_1.real_iface; |
| 255 return iface->Encode(audio_encoder, audio_buffer, *callback); |
| 256 } |
| 257 |
| 258 static int32_t Pnacl_M47_PPB_AudioEncoder_GetBitstreamBuffer(PP_Resource audio_e
ncoder, struct PP_AudioBitstreamBuffer* bitstream_buffer, struct PP_CompletionCa
llback* callback) { |
| 259 const struct PPB_AudioEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_AudioEncoder_
0_1.real_iface; |
| 260 return iface->GetBitstreamBuffer(audio_encoder, bitstream_buffer, *callback); |
| 261 } |
| 262 |
| 263 static void Pnacl_M47_PPB_AudioEncoder_RecycleBitstreamBuffer(PP_Resource audio_
encoder, const struct PP_AudioBitstreamBuffer* bitstream_buffer) { |
| 264 const struct PPB_AudioEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_AudioEncoder_
0_1.real_iface; |
| 265 iface->RecycleBitstreamBuffer(audio_encoder, bitstream_buffer); |
| 266 } |
| 267 |
| 268 static void Pnacl_M47_PPB_AudioEncoder_RequestBitrateChange(PP_Resource audio_en
coder, uint32_t bitrate) { |
| 269 const struct PPB_AudioEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_AudioEncoder_
0_1.real_iface; |
| 270 iface->RequestBitrateChange(audio_encoder, bitrate); |
| 271 } |
| 272 |
| 273 static void Pnacl_M47_PPB_AudioEncoder_Close(PP_Resource audio_encoder) { |
| 274 const struct PPB_AudioEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_AudioEncoder_
0_1.real_iface; |
| 275 iface->Close(audio_encoder); |
| 276 } |
| 277 |
| 278 /* End wrapper methods for PPB_AudioEncoder_0_1 */ |
| 279 |
219 /* Begin wrapper methods for PPB_Compositor_0_1 */ | 280 /* Begin wrapper methods for PPB_Compositor_0_1 */ |
220 | 281 |
221 static PP_Bool Pnacl_M37_PPB_Compositor_IsCompositor(PP_Resource resource) { | 282 static PP_Bool Pnacl_M37_PPB_Compositor_IsCompositor(PP_Resource resource) { |
222 const struct PPB_Compositor_0_1 *iface = Pnacl_WrapperInfo_PPB_Compositor_0_1.
real_iface; | 283 const struct PPB_Compositor_0_1 *iface = Pnacl_WrapperInfo_PPB_Compositor_0_1.
real_iface; |
223 return iface->IsCompositor(resource); | 284 return iface->IsCompositor(resource); |
224 } | 285 } |
225 | 286 |
226 static PP_Resource Pnacl_M37_PPB_Compositor_Create(PP_Instance instance) { | 287 static PP_Resource Pnacl_M37_PPB_Compositor_Create(PP_Instance instance) { |
227 const struct PPB_Compositor_0_1 *iface = Pnacl_WrapperInfo_PPB_Compositor_0_1.
real_iface; | 288 const struct PPB_Compositor_0_1 *iface = Pnacl_WrapperInfo_PPB_Compositor_0_1.
real_iface; |
228 return iface->Create(instance); | 289 return iface->Create(instance); |
(...skipping 3494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3723 return iface->GetSize(host_resolver); | 3784 return iface->GetSize(host_resolver); |
3724 } | 3785 } |
3725 | 3786 |
3726 static PP_Bool Pnacl_M19_PPB_HostResolver_Private_GetNetAddress(PP_Resource host
_resolver, uint32_t index, struct PP_NetAddress_Private* addr) { | 3787 static PP_Bool Pnacl_M19_PPB_HostResolver_Private_GetNetAddress(PP_Resource host
_resolver, uint32_t index, struct PP_NetAddress_Private* addr) { |
3727 const struct PPB_HostResolver_Private_0_1 *iface = Pnacl_WrapperInfo_PPB_HostR
esolver_Private_0_1.real_iface; | 3788 const struct PPB_HostResolver_Private_0_1 *iface = Pnacl_WrapperInfo_PPB_HostR
esolver_Private_0_1.real_iface; |
3728 return iface->GetNetAddress(host_resolver, index, addr); | 3789 return iface->GetNetAddress(host_resolver, index, addr); |
3729 } | 3790 } |
3730 | 3791 |
3731 /* End wrapper methods for PPB_HostResolver_Private_0_1 */ | 3792 /* End wrapper methods for PPB_HostResolver_Private_0_1 */ |
3732 | 3793 |
3733 /* Not generating wrapper methods for PPB_InputEvent_Private_0_1 */ | |
3734 | |
3735 /* Begin wrapper methods for PPB_Instance_Private_0_1 */ | 3794 /* Begin wrapper methods for PPB_Instance_Private_0_1 */ |
3736 | 3795 |
3737 static void Pnacl_M13_PPB_Instance_Private_GetWindowObject(struct PP_Var* _struc
t_result, PP_Instance instance) { | 3796 static void Pnacl_M13_PPB_Instance_Private_GetWindowObject(struct PP_Var* _struc
t_result, PP_Instance instance) { |
3738 const struct PPB_Instance_Private_0_1 *iface = Pnacl_WrapperInfo_PPB_Instance_
Private_0_1.real_iface; | 3797 const struct PPB_Instance_Private_0_1 *iface = Pnacl_WrapperInfo_PPB_Instance_
Private_0_1.real_iface; |
3739 *_struct_result = iface->GetWindowObject(instance); | 3798 *_struct_result = iface->GetWindowObject(instance); |
3740 } | 3799 } |
3741 | 3800 |
3742 static void Pnacl_M13_PPB_Instance_Private_GetOwnerElementObject(struct PP_Var*
_struct_result, PP_Instance instance) { | 3801 static void Pnacl_M13_PPB_Instance_Private_GetOwnerElementObject(struct PP_Var*
_struct_result, PP_Instance instance) { |
3743 const struct PPB_Instance_Private_0_1 *iface = Pnacl_WrapperInfo_PPB_Instance_
Private_0_1.real_iface; | 3802 const struct PPB_Instance_Private_0_1 *iface = Pnacl_WrapperInfo_PPB_Instance_
Private_0_1.real_iface; |
3744 *_struct_result = iface->GetOwnerElementObject(instance); | 3803 *_struct_result = iface->GetOwnerElementObject(instance); |
(...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4608 /* Not generating wrapper interface for PPB_Audio_1_0 */ | 4667 /* Not generating wrapper interface for PPB_Audio_1_0 */ |
4609 | 4668 |
4610 /* Not generating wrapper interface for PPB_Audio_1_1 */ | 4669 /* Not generating wrapper interface for PPB_Audio_1_1 */ |
4611 | 4670 |
4612 /* Not generating wrapper interface for PPB_AudioBuffer_0_1 */ | 4671 /* Not generating wrapper interface for PPB_AudioBuffer_0_1 */ |
4613 | 4672 |
4614 /* Not generating wrapper interface for PPB_AudioConfig_1_0 */ | 4673 /* Not generating wrapper interface for PPB_AudioConfig_1_0 */ |
4615 | 4674 |
4616 /* Not generating wrapper interface for PPB_AudioConfig_1_1 */ | 4675 /* Not generating wrapper interface for PPB_AudioConfig_1_1 */ |
4617 | 4676 |
| 4677 static const struct PPB_AudioEncoder_0_1 Pnacl_Wrappers_PPB_AudioEncoder_0_1 = { |
| 4678 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M47_PPB_AudioEncoder
_Create, |
| 4679 .IsAudioEncoder = (PP_Bool (*)(PP_Resource resource))&Pnacl_M47_PPB_AudioEnc
oder_IsAudioEncoder, |
| 4680 .GetSupportedProfiles = (int32_t (*)(PP_Resource audio_encoder, struct PP_Ar
rayOutput output, struct PP_CompletionCallback callback))&Pnacl_M47_PPB_AudioEnc
oder_GetSupportedProfiles, |
| 4681 .Initialize = (int32_t (*)(PP_Resource audio_encoder, uint32_t channels, PP_
AudioBuffer_SampleRate input_sample_rate, PP_AudioBuffer_SampleSize input_sample
_size, PP_AudioProfile output_profile, uint32_t initial_bitrate, PP_HardwareAcce
leration acceleration, struct PP_CompletionCallback callback))&Pnacl_M47_PPB_Aud
ioEncoder_Initialize, |
| 4682 .GetNumberOfSamples = (int32_t (*)(PP_Resource audio_encoder))&Pnacl_M47_PPB
_AudioEncoder_GetNumberOfSamples, |
| 4683 .GetBuffer = (int32_t (*)(PP_Resource audio_encoder, PP_Resource* audio_buff
er, struct PP_CompletionCallback callback))&Pnacl_M47_PPB_AudioEncoder_GetBuffer
, |
| 4684 .Encode = (int32_t (*)(PP_Resource audio_encoder, PP_Resource audio_buffer,
struct PP_CompletionCallback callback))&Pnacl_M47_PPB_AudioEncoder_Encode, |
| 4685 .GetBitstreamBuffer = (int32_t (*)(PP_Resource audio_encoder, struct PP_Audi
oBitstreamBuffer* bitstream_buffer, struct PP_CompletionCallback callback))&Pnac
l_M47_PPB_AudioEncoder_GetBitstreamBuffer, |
| 4686 .RecycleBitstreamBuffer = (void (*)(PP_Resource audio_encoder, const struct
PP_AudioBitstreamBuffer* bitstream_buffer))&Pnacl_M47_PPB_AudioEncoder_RecycleBi
tstreamBuffer, |
| 4687 .RequestBitrateChange = (void (*)(PP_Resource audio_encoder, uint32_t bitrat
e))&Pnacl_M47_PPB_AudioEncoder_RequestBitrateChange, |
| 4688 .Close = (void (*)(PP_Resource audio_encoder))&Pnacl_M47_PPB_AudioEncoder_Cl
ose |
| 4689 }; |
| 4690 |
4618 static const struct PPB_Compositor_0_1 Pnacl_Wrappers_PPB_Compositor_0_1 = { | 4691 static const struct PPB_Compositor_0_1 Pnacl_Wrappers_PPB_Compositor_0_1 = { |
4619 .IsCompositor = (PP_Bool (*)(PP_Resource resource))&Pnacl_M37_PPB_Compositor
_IsCompositor, | 4692 .IsCompositor = (PP_Bool (*)(PP_Resource resource))&Pnacl_M37_PPB_Compositor
_IsCompositor, |
4620 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M37_PPB_Compositor_C
reate, | 4693 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M37_PPB_Compositor_C
reate, |
4621 .AddLayer = (PP_Resource (*)(PP_Resource compositor))&Pnacl_M37_PPB_Composit
or_AddLayer, | 4694 .AddLayer = (PP_Resource (*)(PP_Resource compositor))&Pnacl_M37_PPB_Composit
or_AddLayer, |
4622 .CommitLayers = (int32_t (*)(PP_Resource compositor, struct PP_CompletionCal
lback cc))&Pnacl_M37_PPB_Compositor_CommitLayers, | 4695 .CommitLayers = (int32_t (*)(PP_Resource compositor, struct PP_CompletionCal
lback cc))&Pnacl_M37_PPB_Compositor_CommitLayers, |
4623 .ResetLayers = (int32_t (*)(PP_Resource compositor))&Pnacl_M37_PPB_Composito
r_ResetLayers | 4696 .ResetLayers = (int32_t (*)(PP_Resource compositor))&Pnacl_M37_PPB_Composito
r_ResetLayers |
4624 }; | 4697 }; |
4625 | 4698 |
4626 static const struct PPB_CompositorLayer_0_1 Pnacl_Wrappers_PPB_CompositorLayer_0
_1 = { | 4699 static const struct PPB_CompositorLayer_0_1 Pnacl_Wrappers_PPB_CompositorLayer_0
_1 = { |
4627 .IsCompositorLayer = (PP_Bool (*)(PP_Resource resource))&Pnacl_M37_PPB_Compo
sitorLayer_IsCompositorLayer, | 4700 .IsCompositorLayer = (PP_Bool (*)(PP_Resource resource))&Pnacl_M37_PPB_Compo
sitorLayer_IsCompositorLayer, |
(...skipping 963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5591 | 5664 |
5592 static const struct PPB_HostResolver_Private_0_1 Pnacl_Wrappers_PPB_HostResolver
_Private_0_1 = { | 5665 static const struct PPB_HostResolver_Private_0_1 Pnacl_Wrappers_PPB_HostResolver
_Private_0_1 = { |
5593 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M19_PPB_HostResolver
_Private_Create, | 5666 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M19_PPB_HostResolver
_Private_Create, |
5594 .IsHostResolver = (PP_Bool (*)(PP_Resource resource))&Pnacl_M19_PPB_HostReso
lver_Private_IsHostResolver, | 5667 .IsHostResolver = (PP_Bool (*)(PP_Resource resource))&Pnacl_M19_PPB_HostReso
lver_Private_IsHostResolver, |
5595 .Resolve = (int32_t (*)(PP_Resource host_resolver, const char* host, uint16_
t port, const struct PP_HostResolver_Private_Hint* hint, struct PP_CompletionCal
lback callback))&Pnacl_M19_PPB_HostResolver_Private_Resolve, | 5668 .Resolve = (int32_t (*)(PP_Resource host_resolver, const char* host, uint16_
t port, const struct PP_HostResolver_Private_Hint* hint, struct PP_CompletionCal
lback callback))&Pnacl_M19_PPB_HostResolver_Private_Resolve, |
5596 .GetCanonicalName = (struct PP_Var (*)(PP_Resource host_resolver))&Pnacl_M19
_PPB_HostResolver_Private_GetCanonicalName, | 5669 .GetCanonicalName = (struct PP_Var (*)(PP_Resource host_resolver))&Pnacl_M19
_PPB_HostResolver_Private_GetCanonicalName, |
5597 .GetSize = (uint32_t (*)(PP_Resource host_resolver))&Pnacl_M19_PPB_HostResol
ver_Private_GetSize, | 5670 .GetSize = (uint32_t (*)(PP_Resource host_resolver))&Pnacl_M19_PPB_HostResol
ver_Private_GetSize, |
5598 .GetNetAddress = (PP_Bool (*)(PP_Resource host_resolver, uint32_t index, str
uct PP_NetAddress_Private* addr))&Pnacl_M19_PPB_HostResolver_Private_GetNetAddre
ss | 5671 .GetNetAddress = (PP_Bool (*)(PP_Resource host_resolver, uint32_t index, str
uct PP_NetAddress_Private* addr))&Pnacl_M19_PPB_HostResolver_Private_GetNetAddre
ss |
5599 }; | 5672 }; |
5600 | 5673 |
5601 /* Not generating wrapper interface for PPB_InputEvent_Private_0_1 */ | |
5602 | |
5603 static const struct PPB_Instance_Private_0_1 Pnacl_Wrappers_PPB_Instance_Private
_0_1 = { | 5674 static const struct PPB_Instance_Private_0_1 Pnacl_Wrappers_PPB_Instance_Private
_0_1 = { |
5604 .GetWindowObject = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M13_PPB_I
nstance_Private_GetWindowObject, | 5675 .GetWindowObject = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M13_PPB_I
nstance_Private_GetWindowObject, |
5605 .GetOwnerElementObject = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M13
_PPB_Instance_Private_GetOwnerElementObject, | 5676 .GetOwnerElementObject = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M13
_PPB_Instance_Private_GetOwnerElementObject, |
5606 .ExecuteScript = (struct PP_Var (*)(PP_Instance instance, struct PP_Var scri
pt, struct PP_Var* exception))&Pnacl_M13_PPB_Instance_Private_ExecuteScript | 5677 .ExecuteScript = (struct PP_Var (*)(PP_Instance instance, struct PP_Var scri
pt, struct PP_Var* exception))&Pnacl_M13_PPB_Instance_Private_ExecuteScript |
5607 }; | 5678 }; |
5608 | 5679 |
5609 static const struct PPB_IsolatedFileSystem_Private_0_2 Pnacl_Wrappers_PPB_Isolat
edFileSystem_Private_0_2 = { | 5680 static const struct PPB_IsolatedFileSystem_Private_0_2 Pnacl_Wrappers_PPB_Isolat
edFileSystem_Private_0_2 = { |
5610 .Open = (int32_t (*)(PP_Instance instance, PP_IsolatedFileSystemType_Private
type, PP_Resource* file_system, struct PP_CompletionCallback callback))&Pnacl_M
33_PPB_IsolatedFileSystem_Private_Open | 5681 .Open = (int32_t (*)(PP_Instance instance, PP_IsolatedFileSystemType_Private
type, PP_Resource* file_system, struct PP_CompletionCallback callback))&Pnacl_M
33_PPB_IsolatedFileSystem_Private_Open |
5611 }; | 5682 }; |
5612 | 5683 |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5818 /* Not generating wrapper interface for PPP_Flash_BrowserOperations_1_2 */ | 5889 /* Not generating wrapper interface for PPP_Flash_BrowserOperations_1_2 */ |
5819 | 5890 |
5820 /* Not generating wrapper interface for PPP_Flash_BrowserOperations_1_3 */ | 5891 /* Not generating wrapper interface for PPP_Flash_BrowserOperations_1_3 */ |
5821 | 5892 |
5822 static const struct PPP_Instance_Private_0_1 Pnacl_Wrappers_PPP_Instance_Private
_0_1 = { | 5893 static const struct PPP_Instance_Private_0_1 Pnacl_Wrappers_PPP_Instance_Private
_0_1 = { |
5823 .GetInstanceObject = &Pnacl_M18_PPP_Instance_Private_GetInstanceObject | 5894 .GetInstanceObject = &Pnacl_M18_PPP_Instance_Private_GetInstanceObject |
5824 }; | 5895 }; |
5825 | 5896 |
5826 /* Not generating wrapper interface for PPP_PexeStreamHandler_1_0 */ | 5897 /* Not generating wrapper interface for PPP_PexeStreamHandler_1_0 */ |
5827 | 5898 |
| 5899 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioEncoder_0_1 = { |
| 5900 .iface_macro = PPB_AUDIOENCODER_INTERFACE_0_1, |
| 5901 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_AudioEncoder_0_1, |
| 5902 .real_iface = NULL |
| 5903 }; |
| 5904 |
5828 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Compositor_0_1 = { | 5905 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Compositor_0_1 = { |
5829 .iface_macro = PPB_COMPOSITOR_INTERFACE_0_1, | 5906 .iface_macro = PPB_COMPOSITOR_INTERFACE_0_1, |
5830 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_Compositor_0_1, | 5907 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_Compositor_0_1, |
5831 .real_iface = NULL | 5908 .real_iface = NULL |
5832 }; | 5909 }; |
5833 | 5910 |
5834 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_CompositorLayer_0_1 = { | 5911 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_CompositorLayer_0_1 = { |
5835 .iface_macro = PPB_COMPOSITORLAYER_INTERFACE_0_1, | 5912 .iface_macro = PPB_COMPOSITORLAYER_INTERFACE_0_1, |
5836 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_CompositorLayer_0_1, | 5913 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_CompositorLayer_0_1, |
5837 .real_iface = NULL | 5914 .real_iface = NULL |
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6485 .real_iface = NULL | 6562 .real_iface = NULL |
6486 }; | 6563 }; |
6487 | 6564 |
6488 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Instance_Private_0_1 = { | 6565 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Instance_Private_0_1 = { |
6489 .iface_macro = PPP_INSTANCE_PRIVATE_INTERFACE_0_1, | 6566 .iface_macro = PPP_INSTANCE_PRIVATE_INTERFACE_0_1, |
6490 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPP_Instance_Private_0_1, | 6567 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPP_Instance_Private_0_1, |
6491 .real_iface = NULL | 6568 .real_iface = NULL |
6492 }; | 6569 }; |
6493 | 6570 |
6494 static struct __PnaclWrapperInfo *s_ppb_wrappers[] = { | 6571 static struct __PnaclWrapperInfo *s_ppb_wrappers[] = { |
| 6572 &Pnacl_WrapperInfo_PPB_AudioEncoder_0_1, |
6495 &Pnacl_WrapperInfo_PPB_Compositor_0_1, | 6573 &Pnacl_WrapperInfo_PPB_Compositor_0_1, |
6496 &Pnacl_WrapperInfo_PPB_CompositorLayer_0_1, | 6574 &Pnacl_WrapperInfo_PPB_CompositorLayer_0_1, |
6497 &Pnacl_WrapperInfo_PPB_CompositorLayer_0_2, | 6575 &Pnacl_WrapperInfo_PPB_CompositorLayer_0_2, |
6498 &Pnacl_WrapperInfo_PPB_Console_1_0, | 6576 &Pnacl_WrapperInfo_PPB_Console_1_0, |
6499 &Pnacl_WrapperInfo_PPB_Core_1_0, | 6577 &Pnacl_WrapperInfo_PPB_Core_1_0, |
6500 &Pnacl_WrapperInfo_PPB_FileIO_1_0, | 6578 &Pnacl_WrapperInfo_PPB_FileIO_1_0, |
6501 &Pnacl_WrapperInfo_PPB_FileIO_1_1, | 6579 &Pnacl_WrapperInfo_PPB_FileIO_1_1, |
6502 &Pnacl_WrapperInfo_PPB_FileRef_1_0, | 6580 &Pnacl_WrapperInfo_PPB_FileRef_1_0, |
6503 &Pnacl_WrapperInfo_PPB_FileRef_1_1, | 6581 &Pnacl_WrapperInfo_PPB_FileRef_1_1, |
6504 &Pnacl_WrapperInfo_PPB_FileRef_1_2, | 6582 &Pnacl_WrapperInfo_PPB_FileRef_1_2, |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6671 | 6749 |
6672 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ | 6750 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ |
6673 if (wrapper->real_iface == NULL) { | 6751 if (wrapper->real_iface == NULL) { |
6674 const void *iface = (*__real_PPPGetInterface)(name); | 6752 const void *iface = (*__real_PPPGetInterface)(name); |
6675 if (NULL == iface) return NULL; | 6753 if (NULL == iface) return NULL; |
6676 wrapper->real_iface = iface; | 6754 wrapper->real_iface = iface; |
6677 } | 6755 } |
6678 | 6756 |
6679 return wrapper->wrapped_iface; | 6757 return wrapper->wrapped_iface; |
6680 } | 6758 } |
OLD | NEW |