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

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

Issue 12026008: Add ReadEntries interface for PPB_DirectoryReader (won't commit) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: run generator Created 7 years, 11 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
OLDNEW
1 /* Copyright (c) 2012 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"
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics3DTrusted_1_0; 170 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics3DTrusted_1_0;
171 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ImageDataTrusted_0_4; 171 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ImageDataTrusted_0_4;
172 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLLoaderTrusted_0_3; 172 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLLoaderTrusted_0_3;
173 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_2; 173 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_2;
174 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_3; 174 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_3;
175 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Buffer_Dev_0_4; 175 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Buffer_Dev_0_4;
176 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Crypto_Dev_0_1; 176 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Crypto_Dev_0_1;
177 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_CursorControl_Dev_0_4; 177 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_CursorControl_Dev_0_4;
178 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1; 178 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1;
179 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_DirectoryReader_Dev_0_5; 179 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_DirectoryReader_Dev_0_5;
180 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_DirectoryReader_Dev_0_6;
180 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5; 181 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5;
181 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6; 182 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6;
182 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Find_Dev_0_3; 183 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Find_Dev_0_3;
183 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Font_Dev_0_6; 184 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Font_Dev_0_6;
184 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_Dev_0_1; 185 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_Dev_0_1;
185 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1; 186 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1;
186 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2; 187 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2;
187 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_KeyboardInputEvent_Dev_0_ 1; 188 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_KeyboardInputEvent_Dev_0_ 1;
188 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Memory_Dev_0_1; 189 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Memory_Dev_0_1;
189 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Printing_Dev_0_6; 190 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Printing_Dev_0_6;
(...skipping 1455 matching lines...) Expand 10 before | Expand all | Expand 10 after
1645 } 1646 }
1646 1647
1647 static __attribute__((pnaclcall)) 1648 static __attribute__((pnaclcall))
1648 int32_t Pnacl_M13_PPB_DirectoryReader_Dev_GetNextEntry(PP_Resource directory_rea der, struct PP_DirectoryEntry_Dev* entry, struct PP_CompletionCallback callback) { 1649 int32_t Pnacl_M13_PPB_DirectoryReader_Dev_GetNextEntry(PP_Resource directory_rea der, struct PP_DirectoryEntry_Dev* entry, struct PP_CompletionCallback callback) {
1649 const struct PPB_DirectoryReader_Dev_0_5 *iface = Pnacl_WrapperInfo_PPB_Direct oryReader_Dev_0_5.real_iface; 1650 const struct PPB_DirectoryReader_Dev_0_5 *iface = Pnacl_WrapperInfo_PPB_Direct oryReader_Dev_0_5.real_iface;
1650 return iface->GetNextEntry(directory_reader, entry, callback); 1651 return iface->GetNextEntry(directory_reader, entry, callback);
1651 } 1652 }
1652 1653
1653 /* End wrapper methods for PPB_DirectoryReader_Dev_0_5 */ 1654 /* End wrapper methods for PPB_DirectoryReader_Dev_0_5 */
1654 1655
1656 /* Begin wrapper methods for PPB_DirectoryReader_Dev_0_6 */
1657
1658 static __attribute__((pnaclcall))
1659 PP_Resource Pnacl_M26_PPB_DirectoryReader_Dev_Create(PP_Resource directory_ref) {
1660 const struct PPB_DirectoryReader_Dev_0_6 *iface = Pnacl_WrapperInfo_PPB_Direct oryReader_Dev_0_6.real_iface;
1661 return iface->Create(directory_ref);
1662 }
1663
1664 static __attribute__((pnaclcall))
1665 PP_Bool Pnacl_M26_PPB_DirectoryReader_Dev_IsDirectoryReader(PP_Resource resource ) {
1666 const struct PPB_DirectoryReader_Dev_0_6 *iface = Pnacl_WrapperInfo_PPB_Direct oryReader_Dev_0_6.real_iface;
1667 return iface->IsDirectoryReader(resource);
1668 }
1669
1670 static __attribute__((pnaclcall))
1671 int32_t Pnacl_M26_PPB_DirectoryReader_Dev_ReadEntries(PP_Resource directory_read er, struct PP_ArrayOutput output, struct PP_CompletionCallback callback) {
1672 const struct PPB_DirectoryReader_Dev_0_6 *iface = Pnacl_WrapperInfo_PPB_Direct oryReader_Dev_0_6.real_iface;
1673 return iface->ReadEntries(directory_reader, output, callback);
1674 }
1675
1676 /* End wrapper methods for PPB_DirectoryReader_Dev_0_6 */
1677
1655 /* Begin wrapper methods for PPB_FileChooser_Dev_0_5 */ 1678 /* Begin wrapper methods for PPB_FileChooser_Dev_0_5 */
1656 1679
1657 static __attribute__((pnaclcall)) 1680 static __attribute__((pnaclcall))
1658 PP_Resource Pnacl_M16_PPB_FileChooser_Dev_Create(PP_Instance instance, PP_FileCh ooserMode_Dev mode, struct PP_Var accept_types) { 1681 PP_Resource Pnacl_M16_PPB_FileChooser_Dev_Create(PP_Instance instance, PP_FileCh ooserMode_Dev mode, struct PP_Var accept_types) {
1659 const struct PPB_FileChooser_Dev_0_5 *iface = Pnacl_WrapperInfo_PPB_FileChoose r_Dev_0_5.real_iface; 1682 const struct PPB_FileChooser_Dev_0_5 *iface = Pnacl_WrapperInfo_PPB_FileChoose r_Dev_0_5.real_iface;
1660 return iface->Create(instance, mode, accept_types); 1683 return iface->Create(instance, mode, accept_types);
1661 } 1684 }
1662 1685
1663 static __attribute__((pnaclcall)) 1686 static __attribute__((pnaclcall))
1664 PP_Bool Pnacl_M16_PPB_FileChooser_Dev_IsFileChooser(PP_Resource resource) { 1687 PP_Bool Pnacl_M16_PPB_FileChooser_Dev_IsFileChooser(PP_Resource resource) {
(...skipping 2206 matching lines...) Expand 10 before | Expand all | Expand 10 after
3871 .GetType = (PP_DeviceType_Dev (*)(PP_Resource device_ref))&Pnacl_M18_PPB_Dev iceRef_Dev_GetType, 3894 .GetType = (PP_DeviceType_Dev (*)(PP_Resource device_ref))&Pnacl_M18_PPB_Dev iceRef_Dev_GetType,
3872 .GetName = (struct PP_Var (*)(PP_Resource device_ref))&Pnacl_M18_PPB_DeviceR ef_Dev_GetName 3895 .GetName = (struct PP_Var (*)(PP_Resource device_ref))&Pnacl_M18_PPB_DeviceR ef_Dev_GetName
3873 }; 3896 };
3874 3897
3875 struct PPB_DirectoryReader_Dev_0_5 Pnacl_Wrappers_PPB_DirectoryReader_Dev_0_5 = { 3898 struct PPB_DirectoryReader_Dev_0_5 Pnacl_Wrappers_PPB_DirectoryReader_Dev_0_5 = {
3876 .Create = (PP_Resource (*)(PP_Resource directory_ref))&Pnacl_M13_PPB_Directo ryReader_Dev_Create, 3899 .Create = (PP_Resource (*)(PP_Resource directory_ref))&Pnacl_M13_PPB_Directo ryReader_Dev_Create,
3877 .IsDirectoryReader = (PP_Bool (*)(PP_Resource resource))&Pnacl_M13_PPB_Direc toryReader_Dev_IsDirectoryReader, 3900 .IsDirectoryReader = (PP_Bool (*)(PP_Resource resource))&Pnacl_M13_PPB_Direc toryReader_Dev_IsDirectoryReader,
3878 .GetNextEntry = (int32_t (*)(PP_Resource directory_reader, struct PP_Directo ryEntry_Dev* entry, struct PP_CompletionCallback callback))&Pnacl_M13_PPB_Direct oryReader_Dev_GetNextEntry 3901 .GetNextEntry = (int32_t (*)(PP_Resource directory_reader, struct PP_Directo ryEntry_Dev* entry, struct PP_CompletionCallback callback))&Pnacl_M13_PPB_Direct oryReader_Dev_GetNextEntry
3879 }; 3902 };
3880 3903
3904 struct PPB_DirectoryReader_Dev_0_6 Pnacl_Wrappers_PPB_DirectoryReader_Dev_0_6 = {
3905 .Create = (PP_Resource (*)(PP_Resource directory_ref))&Pnacl_M26_PPB_Directo ryReader_Dev_Create,
3906 .IsDirectoryReader = (PP_Bool (*)(PP_Resource resource))&Pnacl_M26_PPB_Direc toryReader_Dev_IsDirectoryReader,
3907 .ReadEntries = (int32_t (*)(PP_Resource directory_reader, struct PP_ArrayOut put output, struct PP_CompletionCallback callback))&Pnacl_M26_PPB_DirectoryReade r_Dev_ReadEntries
3908 };
3909
3881 struct PPB_FileChooser_Dev_0_5 Pnacl_Wrappers_PPB_FileChooser_Dev_0_5 = { 3910 struct PPB_FileChooser_Dev_0_5 Pnacl_Wrappers_PPB_FileChooser_Dev_0_5 = {
3882 .Create = (PP_Resource (*)(PP_Instance instance, PP_FileChooserMode_Dev mode , struct PP_Var accept_types))&Pnacl_M16_PPB_FileChooser_Dev_Create, 3911 .Create = (PP_Resource (*)(PP_Instance instance, PP_FileChooserMode_Dev mode , struct PP_Var accept_types))&Pnacl_M16_PPB_FileChooser_Dev_Create,
3883 .IsFileChooser = (PP_Bool (*)(PP_Resource resource))&Pnacl_M16_PPB_FileChoos er_Dev_IsFileChooser, 3912 .IsFileChooser = (PP_Bool (*)(PP_Resource resource))&Pnacl_M16_PPB_FileChoos er_Dev_IsFileChooser,
3884 .Show = (int32_t (*)(PP_Resource chooser, struct PP_CompletionCallback callb ack))&Pnacl_M16_PPB_FileChooser_Dev_Show, 3913 .Show = (int32_t (*)(PP_Resource chooser, struct PP_CompletionCallback callb ack))&Pnacl_M16_PPB_FileChooser_Dev_Show,
3885 .GetNextChosenFile = (PP_Resource (*)(PP_Resource chooser))&Pnacl_M16_PPB_Fi leChooser_Dev_GetNextChosenFile 3914 .GetNextChosenFile = (PP_Resource (*)(PP_Resource chooser))&Pnacl_M16_PPB_Fi leChooser_Dev_GetNextChosenFile
3886 }; 3915 };
3887 3916
3888 struct PPB_FileChooser_Dev_0_6 Pnacl_Wrappers_PPB_FileChooser_Dev_0_6 = { 3917 struct PPB_FileChooser_Dev_0_6 Pnacl_Wrappers_PPB_FileChooser_Dev_0_6 = {
3889 .Create = (PP_Resource (*)(PP_Instance instance, PP_FileChooserMode_Dev mode , struct PP_Var accept_types))&Pnacl_M19_PPB_FileChooser_Dev_Create, 3918 .Create = (PP_Resource (*)(PP_Instance instance, PP_FileChooserMode_Dev mode , struct PP_Var accept_types))&Pnacl_M19_PPB_FileChooser_Dev_Create,
3890 .IsFileChooser = (PP_Bool (*)(PP_Resource resource))&Pnacl_M19_PPB_FileChoos er_Dev_IsFileChooser, 3919 .IsFileChooser = (PP_Bool (*)(PP_Resource resource))&Pnacl_M19_PPB_FileChoos er_Dev_IsFileChooser,
(...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after
4686 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_DeviceRef_Dev_0_1, 4715 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_DeviceRef_Dev_0_1,
4687 .real_iface = NULL 4716 .real_iface = NULL
4688 }; 4717 };
4689 4718
4690 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_DirectoryReader_Dev_0_5 = { 4719 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_DirectoryReader_Dev_0_5 = {
4691 .iface_macro = PPB_DIRECTORYREADER_DEV_INTERFACE_0_5, 4720 .iface_macro = PPB_DIRECTORYREADER_DEV_INTERFACE_0_5,
4692 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_DirectoryReader_Dev_0_5, 4721 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_DirectoryReader_Dev_0_5,
4693 .real_iface = NULL 4722 .real_iface = NULL
4694 }; 4723 };
4695 4724
4725 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_DirectoryReader_Dev_0_6 = {
4726 .iface_macro = PPB_DIRECTORYREADER_DEV_INTERFACE_0_6,
4727 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_DirectoryReader_Dev_0_6,
4728 .real_iface = NULL
4729 };
4730
4696 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5 = { 4731 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5 = {
4697 .iface_macro = PPB_FILECHOOSER_DEV_INTERFACE_0_5, 4732 .iface_macro = PPB_FILECHOOSER_DEV_INTERFACE_0_5,
4698 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_FileChooser_Dev_0_5, 4733 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_FileChooser_Dev_0_5,
4699 .real_iface = NULL 4734 .real_iface = NULL
4700 }; 4735 };
4701 4736
4702 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6 = { 4737 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6 = {
4703 .iface_macro = PPB_FILECHOOSER_DEV_INTERFACE_0_6, 4738 .iface_macro = PPB_FILECHOOSER_DEV_INTERFACE_0_6,
4704 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_FileChooser_Dev_0_6, 4739 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_FileChooser_Dev_0_6,
4705 .real_iface = NULL 4740 .real_iface = NULL
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
5201 &Pnacl_WrapperInfo_PPB_Graphics3DTrusted_1_0, 5236 &Pnacl_WrapperInfo_PPB_Graphics3DTrusted_1_0,
5202 &Pnacl_WrapperInfo_PPB_ImageDataTrusted_0_4, 5237 &Pnacl_WrapperInfo_PPB_ImageDataTrusted_0_4,
5203 &Pnacl_WrapperInfo_PPB_URLLoaderTrusted_0_3, 5238 &Pnacl_WrapperInfo_PPB_URLLoaderTrusted_0_3,
5204 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_2, 5239 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_2,
5205 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_3, 5240 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_3,
5206 &Pnacl_WrapperInfo_PPB_Buffer_Dev_0_4, 5241 &Pnacl_WrapperInfo_PPB_Buffer_Dev_0_4,
5207 &Pnacl_WrapperInfo_PPB_Crypto_Dev_0_1, 5242 &Pnacl_WrapperInfo_PPB_Crypto_Dev_0_1,
5208 &Pnacl_WrapperInfo_PPB_CursorControl_Dev_0_4, 5243 &Pnacl_WrapperInfo_PPB_CursorControl_Dev_0_4,
5209 &Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1, 5244 &Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1,
5210 &Pnacl_WrapperInfo_PPB_DirectoryReader_Dev_0_5, 5245 &Pnacl_WrapperInfo_PPB_DirectoryReader_Dev_0_5,
5246 &Pnacl_WrapperInfo_PPB_DirectoryReader_Dev_0_6,
5211 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5, 5247 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5,
5212 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6, 5248 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6,
5213 &Pnacl_WrapperInfo_PPB_Find_Dev_0_3, 5249 &Pnacl_WrapperInfo_PPB_Find_Dev_0_3,
5214 &Pnacl_WrapperInfo_PPB_Font_Dev_0_6, 5250 &Pnacl_WrapperInfo_PPB_Font_Dev_0_6,
5215 &Pnacl_WrapperInfo_PPB_Graphics2D_Dev_0_1, 5251 &Pnacl_WrapperInfo_PPB_Graphics2D_Dev_0_1,
5216 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1, 5252 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1,
5217 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2, 5253 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2,
5218 &Pnacl_WrapperInfo_PPB_KeyboardInputEvent_Dev_0_1, 5254 &Pnacl_WrapperInfo_PPB_KeyboardInputEvent_Dev_0_1,
5219 &Pnacl_WrapperInfo_PPB_Memory_Dev_0_1, 5255 &Pnacl_WrapperInfo_PPB_Memory_Dev_0_1,
5220 &Pnacl_WrapperInfo_PPB_Printing_Dev_0_6, 5256 &Pnacl_WrapperInfo_PPB_Printing_Dev_0_6,
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
5369 } 5405 }
5370 5406
5371 if (wrapper->wrapped_iface) { 5407 if (wrapper->wrapped_iface) {
5372 return wrapper->wrapped_iface; 5408 return wrapper->wrapped_iface;
5373 } else { 5409 } else {
5374 return wrapper->real_iface; 5410 return wrapper->real_iface;
5375 } 5411 }
5376 } 5412 }
5377 5413
5378 #endif 5414 #endif
OLDNEW
« ppapi/api/dev/ppb_directory_reader_dev.idl ('K') | « ppapi/c/pp_macros.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698