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

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

Issue 14419003: PPAPI: Move PPB_DirectoryReader_Dev to stable (won't commit) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fix Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/cpp/output_traits.h ('k') | ppapi/ppapi_sources.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2013 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/generators/pnacl_shim.h" 7 #include "ppapi/generators/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_buffer_dev.h" 11 #include "ppapi/c/dev/ppb_buffer_dev.h"
12 #include "ppapi/c/dev/ppb_crypto_dev.h" 12 #include "ppapi/c/dev/ppb_crypto_dev.h"
13 #include "ppapi/c/dev/ppb_cursor_control_dev.h" 13 #include "ppapi/c/dev/ppb_cursor_control_dev.h"
14 #include "ppapi/c/dev/ppb_device_ref_dev.h" 14 #include "ppapi/c/dev/ppb_device_ref_dev.h"
15 #include "ppapi/c/dev/ppb_directory_reader_dev.h"
16 #include "ppapi/c/dev/ppb_file_chooser_dev.h" 15 #include "ppapi/c/dev/ppb_file_chooser_dev.h"
17 #include "ppapi/c/dev/ppb_find_dev.h" 16 #include "ppapi/c/dev/ppb_find_dev.h"
18 #include "ppapi/c/dev/ppb_font_dev.h" 17 #include "ppapi/c/dev/ppb_font_dev.h"
19 #include "ppapi/c/dev/ppb_graphics_2d_dev.h" 18 #include "ppapi/c/dev/ppb_graphics_2d_dev.h"
20 #include "ppapi/c/dev/ppb_ime_input_event_dev.h" 19 #include "ppapi/c/dev/ppb_ime_input_event_dev.h"
21 #include "ppapi/c/dev/ppb_keyboard_input_event_dev.h" 20 #include "ppapi/c/dev/ppb_keyboard_input_event_dev.h"
22 #include "ppapi/c/dev/ppb_memory_dev.h" 21 #include "ppapi/c/dev/ppb_memory_dev.h"
23 #include "ppapi/c/dev/ppb_printing_dev.h" 22 #include "ppapi/c/dev/ppb_printing_dev.h"
24 #include "ppapi/c/dev/ppb_resource_array_dev.h" 23 #include "ppapi/c/dev/ppb_resource_array_dev.h"
25 #include "ppapi/c/dev/ppb_scrollbar_dev.h" 24 #include "ppapi/c/dev/ppb_scrollbar_dev.h"
(...skipping 18 matching lines...) Expand all
44 #include "ppapi/c/dev/ppp_video_decoder_dev.h" 43 #include "ppapi/c/dev/ppp_video_decoder_dev.h"
45 #include "ppapi/c/dev/ppp_widget_dev.h" 44 #include "ppapi/c/dev/ppp_widget_dev.h"
46 #include "ppapi/c/dev/ppp_zoom_dev.h" 45 #include "ppapi/c/dev/ppp_zoom_dev.h"
47 #include "ppapi/c/extensions/dev/ppb_ext_alarms_dev.h" 46 #include "ppapi/c/extensions/dev/ppb_ext_alarms_dev.h"
48 #include "ppapi/c/extensions/dev/ppb_ext_events_dev.h" 47 #include "ppapi/c/extensions/dev/ppb_ext_events_dev.h"
49 #include "ppapi/c/extensions/dev/ppb_ext_socket_dev.h" 48 #include "ppapi/c/extensions/dev/ppb_ext_socket_dev.h"
50 #include "ppapi/c/ppb_audio.h" 49 #include "ppapi/c/ppb_audio.h"
51 #include "ppapi/c/ppb_audio_config.h" 50 #include "ppapi/c/ppb_audio_config.h"
52 #include "ppapi/c/ppb_console.h" 51 #include "ppapi/c/ppb_console.h"
53 #include "ppapi/c/ppb_core.h" 52 #include "ppapi/c/ppb_core.h"
53 #include "ppapi/c/ppb_directory_reader.h"
54 #include "ppapi/c/ppb_file_io.h" 54 #include "ppapi/c/ppb_file_io.h"
55 #include "ppapi/c/ppb_file_ref.h" 55 #include "ppapi/c/ppb_file_ref.h"
56 #include "ppapi/c/ppb_file_system.h" 56 #include "ppapi/c/ppb_file_system.h"
57 #include "ppapi/c/ppb_fullscreen.h" 57 #include "ppapi/c/ppb_fullscreen.h"
58 #include "ppapi/c/ppb_gamepad.h" 58 #include "ppapi/c/ppb_gamepad.h"
59 #include "ppapi/c/ppb_graphics_2d.h" 59 #include "ppapi/c/ppb_graphics_2d.h"
60 #include "ppapi/c/ppb_graphics_3d.h" 60 #include "ppapi/c/ppb_graphics_3d.h"
61 #include "ppapi/c/ppb_image_data.h" 61 #include "ppapi/c/ppb_image_data.h"
62 #include "ppapi/c/ppb_input_event.h" 62 #include "ppapi/c/ppb_input_event.h"
63 #include "ppapi/c/ppb_instance.h" 63 #include "ppapi/c/ppb_instance.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 return (int)(*s1) - (int)(*s2); 133 return (int)(*s1) - (int)(*s2);
134 } 134 }
135 135
136 /* BEGIN Declarations for all Wrapper Infos */ 136 /* BEGIN Declarations for all Wrapper Infos */
137 137
138 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Audio_1_0; 138 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Audio_1_0;
139 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioConfig_1_0; 139 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioConfig_1_0;
140 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioConfig_1_1; 140 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioConfig_1_1;
141 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Console_1_0; 141 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Console_1_0;
142 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Core_1_0; 142 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Core_1_0;
143 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_DirectoryReader_1_0;
143 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_1_0; 144 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_1_0;
144 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_1_1; 145 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_1_1;
145 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_0; 146 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_0;
146 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_1; 147 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_1;
147 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileSystem_1_0; 148 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileSystem_1_0;
148 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Fullscreen_1_0; 149 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Fullscreen_1_0;
149 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Gamepad_1_0; 150 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Gamepad_1_0;
150 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_1_0; 151 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_1_0;
151 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_1_1; 152 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_1_1;
152 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics3D_1_0; 153 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics3D_1_0;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIOTrusted_0_4; 191 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIOTrusted_0_4;
191 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics3DTrusted_1_0; 192 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics3DTrusted_1_0;
192 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ImageDataTrusted_0_4; 193 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ImageDataTrusted_0_4;
193 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLLoaderTrusted_0_3; 194 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLLoaderTrusted_0_3;
194 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_2; 195 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_2;
195 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_3; 196 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_3;
196 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Buffer_Dev_0_4; 197 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Buffer_Dev_0_4;
197 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Crypto_Dev_0_1; 198 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Crypto_Dev_0_1;
198 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_CursorControl_Dev_0_4; 199 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_CursorControl_Dev_0_4;
199 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1; 200 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1;
200 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_DirectoryReader_Dev_0_6;
201 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5; 201 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5;
202 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6; 202 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6;
203 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Find_Dev_0_3; 203 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Find_Dev_0_3;
204 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Font_Dev_0_6; 204 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Font_Dev_0_6;
205 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_Dev_0_1; 205 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_Dev_0_1;
206 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1; 206 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1;
207 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2; 207 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2;
208 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_KeyboardInputEvent_Dev_0_ 1; 208 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_KeyboardInputEvent_Dev_0_ 1;
209 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Memory_Dev_0_1; 209 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Memory_Dev_0_1;
210 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Printing_Dev_0_6; 210 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Printing_Dev_0_6;
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 } 342 }
343 343
344 static __attribute__((pnaclcall)) 344 static __attribute__((pnaclcall))
345 PP_Bool Pnacl_M14_PPB_Core_IsMainThread(void) { 345 PP_Bool Pnacl_M14_PPB_Core_IsMainThread(void) {
346 const struct PPB_Core_1_0 *iface = Pnacl_WrapperInfo_PPB_Core_1_0.real_iface; 346 const struct PPB_Core_1_0 *iface = Pnacl_WrapperInfo_PPB_Core_1_0.real_iface;
347 return iface->IsMainThread(); 347 return iface->IsMainThread();
348 } 348 }
349 349
350 /* End wrapper methods for PPB_Core_1_0 */ 350 /* End wrapper methods for PPB_Core_1_0 */
351 351
352 /* Begin wrapper methods for PPB_DirectoryReader_1_0 */
353
354 static __attribute__((pnaclcall))
355 PP_Resource Pnacl_M28_PPB_DirectoryReader_Create(PP_Resource directory_ref) {
356 const struct PPB_DirectoryReader_1_0 *iface = Pnacl_WrapperInfo_PPB_DirectoryR eader_1_0.real_iface;
357 return iface->Create(directory_ref);
358 }
359
360 static __attribute__((pnaclcall))
361 PP_Bool Pnacl_M28_PPB_DirectoryReader_IsDirectoryReader(PP_Resource resource) {
362 const struct PPB_DirectoryReader_1_0 *iface = Pnacl_WrapperInfo_PPB_DirectoryR eader_1_0.real_iface;
363 return iface->IsDirectoryReader(resource);
364 }
365
366 static __attribute__((pnaclcall))
367 int32_t Pnacl_M28_PPB_DirectoryReader_ReadEntries(PP_Resource directory_reader, struct PP_ArrayOutput output, struct PP_CompletionCallback callback) {
368 const struct PPB_DirectoryReader_1_0 *iface = Pnacl_WrapperInfo_PPB_DirectoryR eader_1_0.real_iface;
369 return iface->ReadEntries(directory_reader, output, callback);
370 }
371
372 /* End wrapper methods for PPB_DirectoryReader_1_0 */
373
352 /* Begin wrapper methods for PPB_FileIO_1_0 */ 374 /* Begin wrapper methods for PPB_FileIO_1_0 */
353 375
354 static __attribute__((pnaclcall)) 376 static __attribute__((pnaclcall))
355 PP_Resource Pnacl_M14_PPB_FileIO_Create(PP_Instance instance) { 377 PP_Resource Pnacl_M14_PPB_FileIO_Create(PP_Instance instance) {
356 const struct PPB_FileIO_1_0 *iface = Pnacl_WrapperInfo_PPB_FileIO_1_0.real_ifa ce; 378 const struct PPB_FileIO_1_0 *iface = Pnacl_WrapperInfo_PPB_FileIO_1_0.real_ifa ce;
357 return iface->Create(instance); 379 return iface->Create(instance);
358 } 380 }
359 381
360 static __attribute__((pnaclcall)) 382 static __attribute__((pnaclcall))
361 PP_Bool Pnacl_M14_PPB_FileIO_IsFileIO(PP_Resource resource) { 383 PP_Bool Pnacl_M14_PPB_FileIO_IsFileIO(PP_Resource resource) {
(...skipping 1490 matching lines...) Expand 10 before | Expand all | Expand 10 after
1852 } 1874 }
1853 1875
1854 static __attribute__((pnaclcall)) 1876 static __attribute__((pnaclcall))
1855 struct PP_Var Pnacl_M18_PPB_DeviceRef_Dev_GetName(PP_Resource device_ref) { 1877 struct PP_Var Pnacl_M18_PPB_DeviceRef_Dev_GetName(PP_Resource device_ref) {
1856 const struct PPB_DeviceRef_Dev_0_1 *iface = Pnacl_WrapperInfo_PPB_DeviceRef_De v_0_1.real_iface; 1878 const struct PPB_DeviceRef_Dev_0_1 *iface = Pnacl_WrapperInfo_PPB_DeviceRef_De v_0_1.real_iface;
1857 return iface->GetName(device_ref); 1879 return iface->GetName(device_ref);
1858 } 1880 }
1859 1881
1860 /* End wrapper methods for PPB_DeviceRef_Dev_0_1 */ 1882 /* End wrapper methods for PPB_DeviceRef_Dev_0_1 */
1861 1883
1862 /* Begin wrapper methods for PPB_DirectoryReader_Dev_0_6 */
1863
1864 static __attribute__((pnaclcall))
1865 PP_Resource Pnacl_M27_PPB_DirectoryReader_Dev_Create(PP_Resource directory_ref) {
1866 const struct PPB_DirectoryReader_Dev_0_6 *iface = Pnacl_WrapperInfo_PPB_Direct oryReader_Dev_0_6.real_iface;
1867 return iface->Create(directory_ref);
1868 }
1869
1870 static __attribute__((pnaclcall))
1871 PP_Bool Pnacl_M27_PPB_DirectoryReader_Dev_IsDirectoryReader(PP_Resource resource ) {
1872 const struct PPB_DirectoryReader_Dev_0_6 *iface = Pnacl_WrapperInfo_PPB_Direct oryReader_Dev_0_6.real_iface;
1873 return iface->IsDirectoryReader(resource);
1874 }
1875
1876 static __attribute__((pnaclcall))
1877 int32_t Pnacl_M27_PPB_DirectoryReader_Dev_ReadEntries(PP_Resource directory_read er, struct PP_ArrayOutput output, struct PP_CompletionCallback callback) {
1878 const struct PPB_DirectoryReader_Dev_0_6 *iface = Pnacl_WrapperInfo_PPB_Direct oryReader_Dev_0_6.real_iface;
1879 return iface->ReadEntries(directory_reader, output, callback);
1880 }
1881
1882 /* End wrapper methods for PPB_DirectoryReader_Dev_0_6 */
1883
1884 /* Begin wrapper methods for PPB_FileChooser_Dev_0_5 */ 1884 /* Begin wrapper methods for PPB_FileChooser_Dev_0_5 */
1885 1885
1886 static __attribute__((pnaclcall)) 1886 static __attribute__((pnaclcall))
1887 PP_Resource Pnacl_M16_PPB_FileChooser_Dev_Create(PP_Instance instance, PP_FileCh ooserMode_Dev mode, struct PP_Var accept_types) { 1887 PP_Resource Pnacl_M16_PPB_FileChooser_Dev_Create(PP_Instance instance, PP_FileCh ooserMode_Dev mode, struct PP_Var accept_types) {
1888 const struct PPB_FileChooser_Dev_0_5 *iface = Pnacl_WrapperInfo_PPB_FileChoose r_Dev_0_5.real_iface; 1888 const struct PPB_FileChooser_Dev_0_5 *iface = Pnacl_WrapperInfo_PPB_FileChoose r_Dev_0_5.real_iface;
1889 return iface->Create(instance, mode, accept_types); 1889 return iface->Create(instance, mode, accept_types);
1890 } 1890 }
1891 1891
1892 static __attribute__((pnaclcall)) 1892 static __attribute__((pnaclcall))
1893 PP_Bool Pnacl_M16_PPB_FileChooser_Dev_IsFileChooser(PP_Resource resource) { 1893 PP_Bool Pnacl_M16_PPB_FileChooser_Dev_IsFileChooser(PP_Resource resource) {
(...skipping 2288 matching lines...) Expand 10 before | Expand all | Expand 10 after
4182 4182
4183 struct PPB_Core_1_0 Pnacl_Wrappers_PPB_Core_1_0 = { 4183 struct PPB_Core_1_0 Pnacl_Wrappers_PPB_Core_1_0 = {
4184 .AddRefResource = (void (*)(PP_Resource resource))&Pnacl_M14_PPB_Core_AddRef Resource, 4184 .AddRefResource = (void (*)(PP_Resource resource))&Pnacl_M14_PPB_Core_AddRef Resource,
4185 .ReleaseResource = (void (*)(PP_Resource resource))&Pnacl_M14_PPB_Core_Relea seResource, 4185 .ReleaseResource = (void (*)(PP_Resource resource))&Pnacl_M14_PPB_Core_Relea seResource,
4186 .GetTime = (PP_Time (*)(void))&Pnacl_M14_PPB_Core_GetTime, 4186 .GetTime = (PP_Time (*)(void))&Pnacl_M14_PPB_Core_GetTime,
4187 .GetTimeTicks = (PP_TimeTicks (*)(void))&Pnacl_M14_PPB_Core_GetTimeTicks, 4187 .GetTimeTicks = (PP_TimeTicks (*)(void))&Pnacl_M14_PPB_Core_GetTimeTicks,
4188 .CallOnMainThread = (void (*)(int32_t delay_in_milliseconds, struct PP_Compl etionCallback callback, int32_t result))&Pnacl_M14_PPB_Core_CallOnMainThread, 4188 .CallOnMainThread = (void (*)(int32_t delay_in_milliseconds, struct PP_Compl etionCallback callback, int32_t result))&Pnacl_M14_PPB_Core_CallOnMainThread,
4189 .IsMainThread = (PP_Bool (*)(void))&Pnacl_M14_PPB_Core_IsMainThread 4189 .IsMainThread = (PP_Bool (*)(void))&Pnacl_M14_PPB_Core_IsMainThread
4190 }; 4190 };
4191 4191
4192 struct PPB_DirectoryReader_1_0 Pnacl_Wrappers_PPB_DirectoryReader_1_0 = {
4193 .Create = (PP_Resource (*)(PP_Resource directory_ref))&Pnacl_M28_PPB_Directo ryReader_Create,
4194 .IsDirectoryReader = (PP_Bool (*)(PP_Resource resource))&Pnacl_M28_PPB_Direc toryReader_IsDirectoryReader,
4195 .ReadEntries = (int32_t (*)(PP_Resource directory_reader, struct PP_ArrayOut put output, struct PP_CompletionCallback callback))&Pnacl_M28_PPB_DirectoryReade r_ReadEntries
4196 };
4197
4192 struct PPB_FileIO_1_0 Pnacl_Wrappers_PPB_FileIO_1_0 = { 4198 struct PPB_FileIO_1_0 Pnacl_Wrappers_PPB_FileIO_1_0 = {
4193 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M14_PPB_FileIO_Creat e, 4199 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M14_PPB_FileIO_Creat e,
4194 .IsFileIO = (PP_Bool (*)(PP_Resource resource))&Pnacl_M14_PPB_FileIO_IsFileI O, 4200 .IsFileIO = (PP_Bool (*)(PP_Resource resource))&Pnacl_M14_PPB_FileIO_IsFileI O,
4195 .Open = (int32_t (*)(PP_Resource file_io, PP_Resource file_ref, int32_t open _flags, struct PP_CompletionCallback callback))&Pnacl_M14_PPB_FileIO_Open, 4201 .Open = (int32_t (*)(PP_Resource file_io, PP_Resource file_ref, int32_t open _flags, struct PP_CompletionCallback callback))&Pnacl_M14_PPB_FileIO_Open,
4196 .Query = (int32_t (*)(PP_Resource file_io, struct PP_FileInfo* info, struct PP_CompletionCallback callback))&Pnacl_M14_PPB_FileIO_Query, 4202 .Query = (int32_t (*)(PP_Resource file_io, struct PP_FileInfo* info, struct PP_CompletionCallback callback))&Pnacl_M14_PPB_FileIO_Query,
4197 .Touch = (int32_t (*)(PP_Resource file_io, PP_Time last_access_time, PP_Time last_modified_time, struct PP_CompletionCallback callback))&Pnacl_M14_PPB_FileI O_Touch, 4203 .Touch = (int32_t (*)(PP_Resource file_io, PP_Time last_access_time, PP_Time last_modified_time, struct PP_CompletionCallback callback))&Pnacl_M14_PPB_FileI O_Touch,
4198 .Read = (int32_t (*)(PP_Resource file_io, int64_t offset, char* buffer, int3 2_t bytes_to_read, struct PP_CompletionCallback callback))&Pnacl_M14_PPB_FileIO_ Read, 4204 .Read = (int32_t (*)(PP_Resource file_io, int64_t offset, char* buffer, int3 2_t bytes_to_read, struct PP_CompletionCallback callback))&Pnacl_M14_PPB_FileIO_ Read,
4199 .Write = (int32_t (*)(PP_Resource file_io, int64_t offset, const char* buffe r, int32_t bytes_to_write, struct PP_CompletionCallback callback))&Pnacl_M14_PPB _FileIO_Write, 4205 .Write = (int32_t (*)(PP_Resource file_io, int64_t offset, const char* buffe r, int32_t bytes_to_write, struct PP_CompletionCallback callback))&Pnacl_M14_PPB _FileIO_Write,
4200 .SetLength = (int32_t (*)(PP_Resource file_io, int64_t length, struct PP_Com pletionCallback callback))&Pnacl_M14_PPB_FileIO_SetLength, 4206 .SetLength = (int32_t (*)(PP_Resource file_io, int64_t length, struct PP_Com pletionCallback callback))&Pnacl_M14_PPB_FileIO_SetLength,
4201 .Flush = (int32_t (*)(PP_Resource file_io, struct PP_CompletionCallback call back))&Pnacl_M14_PPB_FileIO_Flush, 4207 .Flush = (int32_t (*)(PP_Resource file_io, struct PP_CompletionCallback call back))&Pnacl_M14_PPB_FileIO_Flush,
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
4554 /* Not generating wrapper interface for PPB_Crypto_Dev_0_1 */ 4560 /* Not generating wrapper interface for PPB_Crypto_Dev_0_1 */
4555 4561
4556 /* Not generating wrapper interface for PPB_CursorControl_Dev_0_4 */ 4562 /* Not generating wrapper interface for PPB_CursorControl_Dev_0_4 */
4557 4563
4558 struct PPB_DeviceRef_Dev_0_1 Pnacl_Wrappers_PPB_DeviceRef_Dev_0_1 = { 4564 struct PPB_DeviceRef_Dev_0_1 Pnacl_Wrappers_PPB_DeviceRef_Dev_0_1 = {
4559 .IsDeviceRef = (PP_Bool (*)(PP_Resource resource))&Pnacl_M18_PPB_DeviceRef_D ev_IsDeviceRef, 4565 .IsDeviceRef = (PP_Bool (*)(PP_Resource resource))&Pnacl_M18_PPB_DeviceRef_D ev_IsDeviceRef,
4560 .GetType = (PP_DeviceType_Dev (*)(PP_Resource device_ref))&Pnacl_M18_PPB_Dev iceRef_Dev_GetType, 4566 .GetType = (PP_DeviceType_Dev (*)(PP_Resource device_ref))&Pnacl_M18_PPB_Dev iceRef_Dev_GetType,
4561 .GetName = (struct PP_Var (*)(PP_Resource device_ref))&Pnacl_M18_PPB_DeviceR ef_Dev_GetName 4567 .GetName = (struct PP_Var (*)(PP_Resource device_ref))&Pnacl_M18_PPB_DeviceR ef_Dev_GetName
4562 }; 4568 };
4563 4569
4564 struct PPB_DirectoryReader_Dev_0_6 Pnacl_Wrappers_PPB_DirectoryReader_Dev_0_6 = {
4565 .Create = (PP_Resource (*)(PP_Resource directory_ref))&Pnacl_M27_PPB_Directo ryReader_Dev_Create,
4566 .IsDirectoryReader = (PP_Bool (*)(PP_Resource resource))&Pnacl_M27_PPB_Direc toryReader_Dev_IsDirectoryReader,
4567 .ReadEntries = (int32_t (*)(PP_Resource directory_reader, struct PP_ArrayOut put output, struct PP_CompletionCallback callback))&Pnacl_M27_PPB_DirectoryReade r_Dev_ReadEntries
4568 };
4569
4570 struct PPB_FileChooser_Dev_0_5 Pnacl_Wrappers_PPB_FileChooser_Dev_0_5 = { 4570 struct PPB_FileChooser_Dev_0_5 Pnacl_Wrappers_PPB_FileChooser_Dev_0_5 = {
4571 .Create = (PP_Resource (*)(PP_Instance instance, PP_FileChooserMode_Dev mode , struct PP_Var accept_types))&Pnacl_M16_PPB_FileChooser_Dev_Create, 4571 .Create = (PP_Resource (*)(PP_Instance instance, PP_FileChooserMode_Dev mode , struct PP_Var accept_types))&Pnacl_M16_PPB_FileChooser_Dev_Create,
4572 .IsFileChooser = (PP_Bool (*)(PP_Resource resource))&Pnacl_M16_PPB_FileChoos er_Dev_IsFileChooser, 4572 .IsFileChooser = (PP_Bool (*)(PP_Resource resource))&Pnacl_M16_PPB_FileChoos er_Dev_IsFileChooser,
4573 .Show = (int32_t (*)(PP_Resource chooser, struct PP_CompletionCallback callb ack))&Pnacl_M16_PPB_FileChooser_Dev_Show, 4573 .Show = (int32_t (*)(PP_Resource chooser, struct PP_CompletionCallback callb ack))&Pnacl_M16_PPB_FileChooser_Dev_Show,
4574 .GetNextChosenFile = (PP_Resource (*)(PP_Resource chooser))&Pnacl_M16_PPB_Fi leChooser_Dev_GetNextChosenFile 4574 .GetNextChosenFile = (PP_Resource (*)(PP_Resource chooser))&Pnacl_M16_PPB_Fi leChooser_Dev_GetNextChosenFile
4575 }; 4575 };
4576 4576
4577 struct PPB_FileChooser_Dev_0_6 Pnacl_Wrappers_PPB_FileChooser_Dev_0_6 = { 4577 struct PPB_FileChooser_Dev_0_6 Pnacl_Wrappers_PPB_FileChooser_Dev_0_6 = {
4578 .Create = (PP_Resource (*)(PP_Instance instance, PP_FileChooserMode_Dev mode , struct PP_Var accept_types))&Pnacl_M19_PPB_FileChooser_Dev_Create, 4578 .Create = (PP_Resource (*)(PP_Instance instance, PP_FileChooserMode_Dev mode , struct PP_Var accept_types))&Pnacl_M19_PPB_FileChooser_Dev_Create,
4579 .IsFileChooser = (PP_Bool (*)(PP_Resource resource))&Pnacl_M19_PPB_FileChoos er_Dev_IsFileChooser, 4579 .IsFileChooser = (PP_Bool (*)(PP_Resource resource))&Pnacl_M19_PPB_FileChoos er_Dev_IsFileChooser,
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after
5149 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_Console_1_0, 5149 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_Console_1_0,
5150 .real_iface = NULL 5150 .real_iface = NULL
5151 }; 5151 };
5152 5152
5153 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Core_1_0 = { 5153 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Core_1_0 = {
5154 .iface_macro = PPB_CORE_INTERFACE_1_0, 5154 .iface_macro = PPB_CORE_INTERFACE_1_0,
5155 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_Core_1_0, 5155 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_Core_1_0,
5156 .real_iface = NULL 5156 .real_iface = NULL
5157 }; 5157 };
5158 5158
5159 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_DirectoryReader_1_0 = {
5160 .iface_macro = PPB_DIRECTORYREADER_INTERFACE_1_0,
5161 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_DirectoryReader_1_0,
5162 .real_iface = NULL
5163 };
5164
5159 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_1_0 = { 5165 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_1_0 = {
5160 .iface_macro = PPB_FILEIO_INTERFACE_1_0, 5166 .iface_macro = PPB_FILEIO_INTERFACE_1_0,
5161 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_FileIO_1_0, 5167 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_FileIO_1_0,
5162 .real_iface = NULL 5168 .real_iface = NULL
5163 }; 5169 };
5164 5170
5165 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_1_1 = { 5171 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_1_1 = {
5166 .iface_macro = PPB_FILEIO_INTERFACE_1_1, 5172 .iface_macro = PPB_FILEIO_INTERFACE_1_1,
5167 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_FileIO_1_1, 5173 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_FileIO_1_1,
5168 .real_iface = NULL 5174 .real_iface = NULL
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
5491 .wrapped_iface = NULL /* Still need slot for real_iface */, 5497 .wrapped_iface = NULL /* Still need slot for real_iface */,
5492 .real_iface = NULL 5498 .real_iface = NULL
5493 }; 5499 };
5494 5500
5495 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1 = { 5501 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1 = {
5496 .iface_macro = PPB_DEVICEREF_DEV_INTERFACE_0_1, 5502 .iface_macro = PPB_DEVICEREF_DEV_INTERFACE_0_1,
5497 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_DeviceRef_Dev_0_1, 5503 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_DeviceRef_Dev_0_1,
5498 .real_iface = NULL 5504 .real_iface = NULL
5499 }; 5505 };
5500 5506
5501 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_DirectoryReader_Dev_0_6 = {
5502 .iface_macro = PPB_DIRECTORYREADER_DEV_INTERFACE_0_6,
5503 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_DirectoryReader_Dev_0_6,
5504 .real_iface = NULL
5505 };
5506
5507 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5 = { 5507 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5 = {
5508 .iface_macro = PPB_FILECHOOSER_DEV_INTERFACE_0_5, 5508 .iface_macro = PPB_FILECHOOSER_DEV_INTERFACE_0_5,
5509 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_FileChooser_Dev_0_5, 5509 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_FileChooser_Dev_0_5,
5510 .real_iface = NULL 5510 .real_iface = NULL
5511 }; 5511 };
5512 5512
5513 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6 = { 5513 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6 = {
5514 .iface_macro = PPB_FILECHOOSER_DEV_INTERFACE_0_6, 5514 .iface_macro = PPB_FILECHOOSER_DEV_INTERFACE_0_6,
5515 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_FileChooser_Dev_0_6, 5515 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_FileChooser_Dev_0_6,
5516 .real_iface = NULL 5516 .real_iface = NULL
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
6025 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_Ext_Socket_Dev_0_1, 6025 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_Ext_Socket_Dev_0_1,
6026 .real_iface = NULL 6026 .real_iface = NULL
6027 }; 6027 };
6028 6028
6029 static struct __PnaclWrapperInfo *s_ppb_wrappers[] = { 6029 static struct __PnaclWrapperInfo *s_ppb_wrappers[] = {
6030 &Pnacl_WrapperInfo_PPB_Audio_1_0, 6030 &Pnacl_WrapperInfo_PPB_Audio_1_0,
6031 &Pnacl_WrapperInfo_PPB_AudioConfig_1_0, 6031 &Pnacl_WrapperInfo_PPB_AudioConfig_1_0,
6032 &Pnacl_WrapperInfo_PPB_AudioConfig_1_1, 6032 &Pnacl_WrapperInfo_PPB_AudioConfig_1_1,
6033 &Pnacl_WrapperInfo_PPB_Console_1_0, 6033 &Pnacl_WrapperInfo_PPB_Console_1_0,
6034 &Pnacl_WrapperInfo_PPB_Core_1_0, 6034 &Pnacl_WrapperInfo_PPB_Core_1_0,
6035 &Pnacl_WrapperInfo_PPB_DirectoryReader_1_0,
6035 &Pnacl_WrapperInfo_PPB_FileIO_1_0, 6036 &Pnacl_WrapperInfo_PPB_FileIO_1_0,
6036 &Pnacl_WrapperInfo_PPB_FileIO_1_1, 6037 &Pnacl_WrapperInfo_PPB_FileIO_1_1,
6037 &Pnacl_WrapperInfo_PPB_FileRef_1_0, 6038 &Pnacl_WrapperInfo_PPB_FileRef_1_0,
6038 &Pnacl_WrapperInfo_PPB_FileRef_1_1, 6039 &Pnacl_WrapperInfo_PPB_FileRef_1_1,
6039 &Pnacl_WrapperInfo_PPB_FileSystem_1_0, 6040 &Pnacl_WrapperInfo_PPB_FileSystem_1_0,
6040 &Pnacl_WrapperInfo_PPB_Fullscreen_1_0, 6041 &Pnacl_WrapperInfo_PPB_Fullscreen_1_0,
6041 &Pnacl_WrapperInfo_PPB_Gamepad_1_0, 6042 &Pnacl_WrapperInfo_PPB_Gamepad_1_0,
6042 &Pnacl_WrapperInfo_PPB_Graphics2D_1_0, 6043 &Pnacl_WrapperInfo_PPB_Graphics2D_1_0,
6043 &Pnacl_WrapperInfo_PPB_Graphics2D_1_1, 6044 &Pnacl_WrapperInfo_PPB_Graphics2D_1_1,
6044 &Pnacl_WrapperInfo_PPB_Graphics3D_1_0, 6045 &Pnacl_WrapperInfo_PPB_Graphics3D_1_0,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
6076 &Pnacl_WrapperInfo_PPB_FileIOTrusted_0_4, 6077 &Pnacl_WrapperInfo_PPB_FileIOTrusted_0_4,
6077 &Pnacl_WrapperInfo_PPB_Graphics3DTrusted_1_0, 6078 &Pnacl_WrapperInfo_PPB_Graphics3DTrusted_1_0,
6078 &Pnacl_WrapperInfo_PPB_ImageDataTrusted_0_4, 6079 &Pnacl_WrapperInfo_PPB_ImageDataTrusted_0_4,
6079 &Pnacl_WrapperInfo_PPB_URLLoaderTrusted_0_3, 6080 &Pnacl_WrapperInfo_PPB_URLLoaderTrusted_0_3,
6080 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_2, 6081 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_2,
6081 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_3, 6082 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_3,
6082 &Pnacl_WrapperInfo_PPB_Buffer_Dev_0_4, 6083 &Pnacl_WrapperInfo_PPB_Buffer_Dev_0_4,
6083 &Pnacl_WrapperInfo_PPB_Crypto_Dev_0_1, 6084 &Pnacl_WrapperInfo_PPB_Crypto_Dev_0_1,
6084 &Pnacl_WrapperInfo_PPB_CursorControl_Dev_0_4, 6085 &Pnacl_WrapperInfo_PPB_CursorControl_Dev_0_4,
6085 &Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1, 6086 &Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1,
6086 &Pnacl_WrapperInfo_PPB_DirectoryReader_Dev_0_6,
6087 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5, 6087 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5,
6088 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6, 6088 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6,
6089 &Pnacl_WrapperInfo_PPB_Find_Dev_0_3, 6089 &Pnacl_WrapperInfo_PPB_Find_Dev_0_3,
6090 &Pnacl_WrapperInfo_PPB_Font_Dev_0_6, 6090 &Pnacl_WrapperInfo_PPB_Font_Dev_0_6,
6091 &Pnacl_WrapperInfo_PPB_Graphics2D_Dev_0_1, 6091 &Pnacl_WrapperInfo_PPB_Graphics2D_Dev_0_1,
6092 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1, 6092 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1,
6093 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2, 6093 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2,
6094 &Pnacl_WrapperInfo_PPB_KeyboardInputEvent_Dev_0_1, 6094 &Pnacl_WrapperInfo_PPB_KeyboardInputEvent_Dev_0_1,
6095 &Pnacl_WrapperInfo_PPB_Memory_Dev_0_1, 6095 &Pnacl_WrapperInfo_PPB_Memory_Dev_0_1,
6096 &Pnacl_WrapperInfo_PPB_Printing_Dev_0_6, 6096 &Pnacl_WrapperInfo_PPB_Printing_Dev_0_6,
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
6255 } 6255 }
6256 6256
6257 if (wrapper->wrapped_iface) { 6257 if (wrapper->wrapped_iface) {
6258 return wrapper->wrapped_iface; 6258 return wrapper->wrapped_iface;
6259 } else { 6259 } else {
6260 return wrapper->real_iface; 6260 return wrapper->real_iface;
6261 } 6261 }
6262 } 6262 }
6263 6263
6264 #endif 6264 #endif
OLDNEW
« no previous file with comments | « ppapi/cpp/output_traits.h ('k') | ppapi/ppapi_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698