Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(518)

Side by Side Diff: ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c

Issue 1128023009: ppapi: define PPB_AudioEncoder API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add GetNumberOfSamples() for Speex Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/dev/ppp_selection_dev.h" 20 #include "ppapi/c/dev/ppp_selection_dev.h"
21 #include "ppapi/c/ppb_audio_encoder.h"
21 #include "ppapi/c/ppb_compositor.h" 22 #include "ppapi/c/ppb_compositor.h"
22 #include "ppapi/c/ppb_compositor_layer.h" 23 #include "ppapi/c/ppb_compositor_layer.h"
23 #include "ppapi/c/ppb_console.h" 24 #include "ppapi/c/ppb_console.h"
24 #include "ppapi/c/ppb_core.h" 25 #include "ppapi/c/ppb_core.h"
25 #include "ppapi/c/ppb_file_io.h" 26 #include "ppapi/c/ppb_file_io.h"
26 #include "ppapi/c/ppb_file_ref.h" 27 #include "ppapi/c/ppb_file_ref.h"
27 #include "ppapi/c/ppb_file_system.h" 28 #include "ppapi/c/ppb_file_system.h"
28 #include "ppapi/c/ppb_graphics_2d.h" 29 #include "ppapi/c/ppb_graphics_2d.h"
29 #include "ppapi/c/ppb_graphics_3d.h" 30 #include "ppapi/c/ppb_graphics_3d.h"
30 #include "ppapi/c/ppb_host_resolver.h" 31 #include "ppapi/c/ppb_host_resolver.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 if (*s2 == 0) break; 88 if (*s2 == 0) break;
88 if (*s1 != *s2) break; 89 if (*s1 != *s2) break;
89 ++s1; 90 ++s1;
90 ++s2; 91 ++s2;
91 } 92 }
92 return (int)(*s1) - (int)(*s2); 93 return (int)(*s1) - (int)(*s2);
93 } 94 }
94 95
95 /* BEGIN Declarations for all Wrapper Infos */ 96 /* BEGIN Declarations for all Wrapper Infos */
96 97
98 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioEncoder_0_1;
97 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Compositor_0_1; 99 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Compositor_0_1;
98 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_CompositorLayer_0_1; 100 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_CompositorLayer_0_1;
99 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_CompositorLayer_0_2; 101 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_CompositorLayer_0_2;
100 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Console_1_0; 102 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Console_1_0;
101 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Core_1_0; 103 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Core_1_0;
102 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_1_0; 104 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_1_0;
103 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_1_1; 105 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_1_1;
104 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_0; 106 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_0;
105 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_1; 107 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_1;
106 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_2; 108 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_2;
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 /* Not generating wrapper methods for PPB_Audio_1_0 */ 212 /* Not generating wrapper methods for PPB_Audio_1_0 */
211 213
212 /* Not generating wrapper methods for PPB_Audio_1_1 */ 214 /* Not generating wrapper methods for PPB_Audio_1_1 */
213 215
214 /* Not generating wrapper methods for PPB_AudioBuffer_0_1 */ 216 /* Not generating wrapper methods for PPB_AudioBuffer_0_1 */
215 217
216 /* Not generating wrapper methods for PPB_AudioConfig_1_0 */ 218 /* Not generating wrapper methods for PPB_AudioConfig_1_0 */
217 219
218 /* Not generating wrapper methods for PPB_AudioConfig_1_1 */ 220 /* Not generating wrapper methods for PPB_AudioConfig_1_1 */
219 221
222 /* Begin wrapper methods for PPB_AudioEncoder_0_1 */
223
224 static PP_Resource Pnacl_M44_PPB_AudioEncoder_Create(PP_Instance instance) {
225 const struct PPB_AudioEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_AudioEncoder_ 0_1.real_iface;
226 return iface->Create(instance);
227 }
228
229 static PP_Bool Pnacl_M44_PPB_AudioEncoder_IsAudioEncoder(PP_Resource resource) {
230 const struct PPB_AudioEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_AudioEncoder_ 0_1.real_iface;
231 return iface->IsAudioEncoder(resource);
232 }
233
234 static int32_t Pnacl_M44_PPB_AudioEncoder_GetSupportedProfiles(PP_Resource audio _encoder, struct PP_ArrayOutput* output, struct PP_CompletionCallback* callback) {
235 const struct PPB_AudioEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_AudioEncoder_ 0_1.real_iface;
236 return iface->GetSupportedProfiles(audio_encoder, *output, *callback);
237 }
238
239 static int32_t Pnacl_M44_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) {
240 const struct PPB_AudioEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_AudioEncoder_ 0_1.real_iface;
241 return iface->Initialize(audio_encoder, channels, input_sample_rate, input_sam ple_size, output_profile, initial_bitrate, acceleration, *callback);
242 }
243
244 static int32_t Pnacl_M44_PPB_AudioEncoder_GetNumberOfSamples(PP_Resource audio_e ncoder) {
245 const struct PPB_AudioEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_AudioEncoder_ 0_1.real_iface;
246 return iface->GetNumberOfSamples(audio_encoder);
247 }
248
249 static int32_t Pnacl_M44_PPB_AudioEncoder_GetBuffer(PP_Resource audio_encoder, P P_Resource* audio_buffer, struct PP_CompletionCallback* callback) {
250 const struct PPB_AudioEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_AudioEncoder_ 0_1.real_iface;
251 return iface->GetBuffer(audio_encoder, audio_buffer, *callback);
252 }
253
254 static int32_t Pnacl_M44_PPB_AudioEncoder_Encode(PP_Resource audio_encoder, PP_R esource audio_buffer, struct PP_CompletionCallback* callback) {
255 const struct PPB_AudioEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_AudioEncoder_ 0_1.real_iface;
256 return iface->Encode(audio_encoder, audio_buffer, *callback);
257 }
258
259 static int32_t Pnacl_M44_PPB_AudioEncoder_GetBitstreamBuffer(PP_Resource audio_e ncoder, struct PP_AudioBitstreamBuffer* bitstream_buffer, struct PP_CompletionCa llback* callback) {
260 const struct PPB_AudioEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_AudioEncoder_ 0_1.real_iface;
261 return iface->GetBitstreamBuffer(audio_encoder, bitstream_buffer, *callback);
262 }
263
264 static void Pnacl_M44_PPB_AudioEncoder_RecycleBitstreamBuffer(PP_Resource audio_ encoder, const struct PP_AudioBitstreamBuffer* bitstream_buffer) {
265 const struct PPB_AudioEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_AudioEncoder_ 0_1.real_iface;
266 iface->RecycleBitstreamBuffer(audio_encoder, bitstream_buffer);
267 }
268
269 static void Pnacl_M44_PPB_AudioEncoder_RequestBitrateChange(PP_Resource audio_en coder, uint32_t bitrate) {
270 const struct PPB_AudioEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_AudioEncoder_ 0_1.real_iface;
271 iface->RequestBitrateChange(audio_encoder, bitrate);
272 }
273
274 static void Pnacl_M44_PPB_AudioEncoder_Close(PP_Resource audio_encoder) {
275 const struct PPB_AudioEncoder_0_1 *iface = Pnacl_WrapperInfo_PPB_AudioEncoder_ 0_1.real_iface;
276 iface->Close(audio_encoder);
277 }
278
279 /* End wrapper methods for PPB_AudioEncoder_0_1 */
280
220 /* Begin wrapper methods for PPB_Compositor_0_1 */ 281 /* Begin wrapper methods for PPB_Compositor_0_1 */
221 282
222 static PP_Bool Pnacl_M37_PPB_Compositor_IsCompositor(PP_Resource resource) { 283 static PP_Bool Pnacl_M37_PPB_Compositor_IsCompositor(PP_Resource resource) {
223 const struct PPB_Compositor_0_1 *iface = Pnacl_WrapperInfo_PPB_Compositor_0_1. real_iface; 284 const struct PPB_Compositor_0_1 *iface = Pnacl_WrapperInfo_PPB_Compositor_0_1. real_iface;
224 return iface->IsCompositor(resource); 285 return iface->IsCompositor(resource);
225 } 286 }
226 287
227 static PP_Resource Pnacl_M37_PPB_Compositor_Create(PP_Instance instance) { 288 static PP_Resource Pnacl_M37_PPB_Compositor_Create(PP_Instance instance) {
228 const struct PPB_Compositor_0_1 *iface = Pnacl_WrapperInfo_PPB_Compositor_0_1. real_iface; 289 const struct PPB_Compositor_0_1 *iface = Pnacl_WrapperInfo_PPB_Compositor_0_1. real_iface;
229 return iface->Create(instance); 290 return iface->Create(instance);
(...skipping 4364 matching lines...) Expand 10 before | Expand all | Expand 10 after
4594 /* Not generating wrapper interface for PPB_Audio_1_0 */ 4655 /* Not generating wrapper interface for PPB_Audio_1_0 */
4595 4656
4596 /* Not generating wrapper interface for PPB_Audio_1_1 */ 4657 /* Not generating wrapper interface for PPB_Audio_1_1 */
4597 4658
4598 /* Not generating wrapper interface for PPB_AudioBuffer_0_1 */ 4659 /* Not generating wrapper interface for PPB_AudioBuffer_0_1 */
4599 4660
4600 /* Not generating wrapper interface for PPB_AudioConfig_1_0 */ 4661 /* Not generating wrapper interface for PPB_AudioConfig_1_0 */
4601 4662
4602 /* Not generating wrapper interface for PPB_AudioConfig_1_1 */ 4663 /* Not generating wrapper interface for PPB_AudioConfig_1_1 */
4603 4664
4665 static const struct PPB_AudioEncoder_0_1 Pnacl_Wrappers_PPB_AudioEncoder_0_1 = {
4666 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M44_PPB_AudioEncoder _Create,
4667 .IsAudioEncoder = (PP_Bool (*)(PP_Resource resource))&Pnacl_M44_PPB_AudioEnc oder_IsAudioEncoder,
4668 .GetSupportedProfiles = (int32_t (*)(PP_Resource audio_encoder, struct PP_Ar rayOutput output, struct PP_CompletionCallback callback))&Pnacl_M44_PPB_AudioEnc oder_GetSupportedProfiles,
4669 .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_M44_PPB_Aud ioEncoder_Initialize,
4670 .GetNumberOfSamples = (int32_t (*)(PP_Resource audio_encoder))&Pnacl_M44_PPB _AudioEncoder_GetNumberOfSamples,
4671 .GetBuffer = (int32_t (*)(PP_Resource audio_encoder, PP_Resource* audio_buff er, struct PP_CompletionCallback callback))&Pnacl_M44_PPB_AudioEncoder_GetBuffer ,
4672 .Encode = (int32_t (*)(PP_Resource audio_encoder, PP_Resource audio_buffer, struct PP_CompletionCallback callback))&Pnacl_M44_PPB_AudioEncoder_Encode,
4673 .GetBitstreamBuffer = (int32_t (*)(PP_Resource audio_encoder, struct PP_Audi oBitstreamBuffer* bitstream_buffer, struct PP_CompletionCallback callback))&Pnac l_M44_PPB_AudioEncoder_GetBitstreamBuffer,
4674 .RecycleBitstreamBuffer = (void (*)(PP_Resource audio_encoder, const struct PP_AudioBitstreamBuffer* bitstream_buffer))&Pnacl_M44_PPB_AudioEncoder_RecycleBi tstreamBuffer,
4675 .RequestBitrateChange = (void (*)(PP_Resource audio_encoder, uint32_t bitrat e))&Pnacl_M44_PPB_AudioEncoder_RequestBitrateChange,
4676 .Close = (void (*)(PP_Resource audio_encoder))&Pnacl_M44_PPB_AudioEncoder_Cl ose
4677 };
4678
4604 static const struct PPB_Compositor_0_1 Pnacl_Wrappers_PPB_Compositor_0_1 = { 4679 static const struct PPB_Compositor_0_1 Pnacl_Wrappers_PPB_Compositor_0_1 = {
4605 .IsCompositor = (PP_Bool (*)(PP_Resource resource))&Pnacl_M37_PPB_Compositor _IsCompositor, 4680 .IsCompositor = (PP_Bool (*)(PP_Resource resource))&Pnacl_M37_PPB_Compositor _IsCompositor,
4606 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M37_PPB_Compositor_C reate, 4681 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M37_PPB_Compositor_C reate,
4607 .AddLayer = (PP_Resource (*)(PP_Resource compositor))&Pnacl_M37_PPB_Composit or_AddLayer, 4682 .AddLayer = (PP_Resource (*)(PP_Resource compositor))&Pnacl_M37_PPB_Composit or_AddLayer,
4608 .CommitLayers = (int32_t (*)(PP_Resource compositor, struct PP_CompletionCal lback cc))&Pnacl_M37_PPB_Compositor_CommitLayers, 4683 .CommitLayers = (int32_t (*)(PP_Resource compositor, struct PP_CompletionCal lback cc))&Pnacl_M37_PPB_Compositor_CommitLayers,
4609 .ResetLayers = (int32_t (*)(PP_Resource compositor))&Pnacl_M37_PPB_Composito r_ResetLayers 4684 .ResetLayers = (int32_t (*)(PP_Resource compositor))&Pnacl_M37_PPB_Composito r_ResetLayers
4610 }; 4685 };
4611 4686
4612 static const struct PPB_CompositorLayer_0_1 Pnacl_Wrappers_PPB_CompositorLayer_0 _1 = { 4687 static const struct PPB_CompositorLayer_0_1 Pnacl_Wrappers_PPB_CompositorLayer_0 _1 = {
4613 .IsCompositorLayer = (PP_Bool (*)(PP_Resource resource))&Pnacl_M37_PPB_Compo sitorLayer_IsCompositorLayer, 4688 .IsCompositorLayer = (PP_Bool (*)(PP_Resource resource))&Pnacl_M37_PPB_Compo sitorLayer_IsCompositorLayer,
(...skipping 1199 matching lines...) Expand 10 before | Expand all | Expand 10 after
5813 /* Not generating wrapper interface for PPP_Flash_BrowserOperations_1_2 */ 5888 /* Not generating wrapper interface for PPP_Flash_BrowserOperations_1_2 */
5814 5889
5815 /* Not generating wrapper interface for PPP_Flash_BrowserOperations_1_3 */ 5890 /* Not generating wrapper interface for PPP_Flash_BrowserOperations_1_3 */
5816 5891
5817 static const struct PPP_Instance_Private_0_1 Pnacl_Wrappers_PPP_Instance_Private _0_1 = { 5892 static const struct PPP_Instance_Private_0_1 Pnacl_Wrappers_PPP_Instance_Private _0_1 = {
5818 .GetInstanceObject = &Pnacl_M18_PPP_Instance_Private_GetInstanceObject 5893 .GetInstanceObject = &Pnacl_M18_PPP_Instance_Private_GetInstanceObject
5819 }; 5894 };
5820 5895
5821 /* Not generating wrapper interface for PPP_PexeStreamHandler_1_0 */ 5896 /* Not generating wrapper interface for PPP_PexeStreamHandler_1_0 */
5822 5897
5898 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioEncoder_0_1 = {
5899 .iface_macro = PPB_AUDIOENCODER_INTERFACE_0_1,
5900 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_AudioEncoder_0_1,
5901 .real_iface = NULL
5902 };
5903
5823 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Compositor_0_1 = { 5904 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Compositor_0_1 = {
5824 .iface_macro = PPB_COMPOSITOR_INTERFACE_0_1, 5905 .iface_macro = PPB_COMPOSITOR_INTERFACE_0_1,
5825 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_Compositor_0_1, 5906 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_Compositor_0_1,
5826 .real_iface = NULL 5907 .real_iface = NULL
5827 }; 5908 };
5828 5909
5829 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_CompositorLayer_0_1 = { 5910 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_CompositorLayer_0_1 = {
5830 .iface_macro = PPB_COMPOSITORLAYER_INTERFACE_0_1, 5911 .iface_macro = PPB_COMPOSITORLAYER_INTERFACE_0_1,
5831 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_CompositorLayer_0_1, 5912 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_CompositorLayer_0_1,
5832 .real_iface = NULL 5913 .real_iface = NULL
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
6480 .real_iface = NULL 6561 .real_iface = NULL
6481 }; 6562 };
6482 6563
6483 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Instance_Private_0_1 = { 6564 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Instance_Private_0_1 = {
6484 .iface_macro = PPP_INSTANCE_PRIVATE_INTERFACE_0_1, 6565 .iface_macro = PPP_INSTANCE_PRIVATE_INTERFACE_0_1,
6485 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPP_Instance_Private_0_1, 6566 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPP_Instance_Private_0_1,
6486 .real_iface = NULL 6567 .real_iface = NULL
6487 }; 6568 };
6488 6569
6489 static struct __PnaclWrapperInfo *s_ppb_wrappers[] = { 6570 static struct __PnaclWrapperInfo *s_ppb_wrappers[] = {
6571 &Pnacl_WrapperInfo_PPB_AudioEncoder_0_1,
6490 &Pnacl_WrapperInfo_PPB_Compositor_0_1, 6572 &Pnacl_WrapperInfo_PPB_Compositor_0_1,
6491 &Pnacl_WrapperInfo_PPB_CompositorLayer_0_1, 6573 &Pnacl_WrapperInfo_PPB_CompositorLayer_0_1,
6492 &Pnacl_WrapperInfo_PPB_CompositorLayer_0_2, 6574 &Pnacl_WrapperInfo_PPB_CompositorLayer_0_2,
6493 &Pnacl_WrapperInfo_PPB_Console_1_0, 6575 &Pnacl_WrapperInfo_PPB_Console_1_0,
6494 &Pnacl_WrapperInfo_PPB_Core_1_0, 6576 &Pnacl_WrapperInfo_PPB_Core_1_0,
6495 &Pnacl_WrapperInfo_PPB_FileIO_1_0, 6577 &Pnacl_WrapperInfo_PPB_FileIO_1_0,
6496 &Pnacl_WrapperInfo_PPB_FileIO_1_1, 6578 &Pnacl_WrapperInfo_PPB_FileIO_1_1,
6497 &Pnacl_WrapperInfo_PPB_FileRef_1_0, 6579 &Pnacl_WrapperInfo_PPB_FileRef_1_0,
6498 &Pnacl_WrapperInfo_PPB_FileRef_1_1, 6580 &Pnacl_WrapperInfo_PPB_FileRef_1_1,
6499 &Pnacl_WrapperInfo_PPB_FileRef_1_2, 6581 &Pnacl_WrapperInfo_PPB_FileRef_1_2,
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
6666 6748
6667 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ 6749 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */
6668 if (wrapper->real_iface == NULL) { 6750 if (wrapper->real_iface == NULL) {
6669 const void *iface = (*__real_PPPGetInterface)(name); 6751 const void *iface = (*__real_PPPGetInterface)(name);
6670 if (NULL == iface) return NULL; 6752 if (NULL == iface) return NULL;
6671 wrapper->real_iface = iface; 6753 wrapper->real_iface = iface;
6672 } 6754 }
6673 6755
6674 return wrapper->wrapped_iface; 6756 return wrapper->wrapped_iface;
6675 } 6757 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698