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

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

Issue 23806003: Use PP_ArrayOutput and PPB_NetAddress in PPB_NetworkList_Private.. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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) 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"
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_Clipboard_5_0; 200 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_Clipboard_5_0;
201 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_DeviceID_1_0; 201 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_DeviceID_1_0;
202 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_DRM_1_0; 202 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_DRM_1_0;
203 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_Menu_0_2; 203 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_Menu_0_2;
204 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_HostResolver_Private_0_1; 204 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_HostResolver_Private_0_1;
205 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Instance_Private_0_1; 205 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Instance_Private_0_1;
206 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NaCl_Private_1_0; 206 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NaCl_Private_1_0;
207 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetAddress_Private_0_1; 207 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetAddress_Private_0_1;
208 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetAddress_Private_1_0; 208 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetAddress_Private_1_0;
209 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetAddress_Private_1_1; 209 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetAddress_Private_1_1;
210 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetworkList_Private_0_2; 210 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetworkList_Private_0_3;
211 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_OutputProtection_Private_ 0_1; 211 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_OutputProtection_Private_ 0_1;
212 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Talk_Private_1_0; 212 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Talk_Private_1_0;
213 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Talk_Private_2_0; 213 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Talk_Private_2_0;
214 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPServerSocket_Private_0 _1; 214 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPServerSocket_Private_0 _1;
215 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPServerSocket_Private_0 _2; 215 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPServerSocket_Private_0 _2;
216 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_Private_0_3; 216 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_Private_0_3;
217 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_Private_0_4; 217 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_Private_0_4;
218 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_Private_0_5; 218 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_Private_0_5;
219 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_2; 219 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_2;
220 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_3; 220 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_3;
(...skipping 2784 matching lines...) Expand 10 before | Expand all | Expand 10 after
3005 iface->CreateFromIPv4Address(ip, port, addr_out); 3005 iface->CreateFromIPv4Address(ip, port, addr_out);
3006 } 3006 }
3007 3007
3008 static void Pnacl_M19_1_PPB_NetAddress_Private_CreateFromIPv6Address(const uint8 _t ip[16], uint32_t scope_id, uint16_t port, struct PP_NetAddress_Private* addr_ out) { 3008 static void Pnacl_M19_1_PPB_NetAddress_Private_CreateFromIPv6Address(const uint8 _t ip[16], uint32_t scope_id, uint16_t port, struct PP_NetAddress_Private* addr_ out) {
3009 const struct PPB_NetAddress_Private_1_1 *iface = Pnacl_WrapperInfo_PPB_NetAddr ess_Private_1_1.real_iface; 3009 const struct PPB_NetAddress_Private_1_1 *iface = Pnacl_WrapperInfo_PPB_NetAddr ess_Private_1_1.real_iface;
3010 iface->CreateFromIPv6Address(ip, scope_id, port, addr_out); 3010 iface->CreateFromIPv6Address(ip, scope_id, port, addr_out);
3011 } 3011 }
3012 3012
3013 /* End wrapper methods for PPB_NetAddress_Private_1_1 */ 3013 /* End wrapper methods for PPB_NetAddress_Private_1_1 */
3014 3014
3015 /* Begin wrapper methods for PPB_NetworkList_Private_0_2 */ 3015 /* Begin wrapper methods for PPB_NetworkList_Private_0_3 */
3016 3016
3017 static PP_Bool Pnacl_M19_PPB_NetworkList_Private_IsNetworkList(PP_Resource resou rce) { 3017 static PP_Bool Pnacl_M31_PPB_NetworkList_Private_IsNetworkList(PP_Resource resou rce) {
3018 const struct PPB_NetworkList_Private_0_2 *iface = Pnacl_WrapperInfo_PPB_Networ kList_Private_0_2.real_iface; 3018 const struct PPB_NetworkList_Private_0_3 *iface = Pnacl_WrapperInfo_PPB_Networ kList_Private_0_3.real_iface;
3019 return iface->IsNetworkList(resource); 3019 return iface->IsNetworkList(resource);
3020 } 3020 }
3021 3021
3022 static uint32_t Pnacl_M19_PPB_NetworkList_Private_GetCount(PP_Resource resource) { 3022 static uint32_t Pnacl_M31_PPB_NetworkList_Private_GetCount(PP_Resource resource) {
3023 const struct PPB_NetworkList_Private_0_2 *iface = Pnacl_WrapperInfo_PPB_Networ kList_Private_0_2.real_iface; 3023 const struct PPB_NetworkList_Private_0_3 *iface = Pnacl_WrapperInfo_PPB_Networ kList_Private_0_3.real_iface;
3024 return iface->GetCount(resource); 3024 return iface->GetCount(resource);
3025 } 3025 }
3026 3026
3027 static void Pnacl_M19_PPB_NetworkList_Private_GetName(struct PP_Var* _struct_res ult, PP_Resource resource, uint32_t index) { 3027 static void Pnacl_M31_PPB_NetworkList_Private_GetName(struct PP_Var* _struct_res ult, PP_Resource resource, uint32_t index) {
3028 const struct PPB_NetworkList_Private_0_2 *iface = Pnacl_WrapperInfo_PPB_Networ kList_Private_0_2.real_iface; 3028 const struct PPB_NetworkList_Private_0_3 *iface = Pnacl_WrapperInfo_PPB_Networ kList_Private_0_3.real_iface;
3029 *_struct_result = iface->GetName(resource, index); 3029 *_struct_result = iface->GetName(resource, index);
3030 } 3030 }
3031 3031
3032 static PP_NetworkListType_Private Pnacl_M19_PPB_NetworkList_Private_GetType(PP_R esource resource, uint32_t index) { 3032 static PP_NetworkListType_Private Pnacl_M31_PPB_NetworkList_Private_GetType(PP_R esource resource, uint32_t index) {
3033 const struct PPB_NetworkList_Private_0_2 *iface = Pnacl_WrapperInfo_PPB_Networ kList_Private_0_2.real_iface; 3033 const struct PPB_NetworkList_Private_0_3 *iface = Pnacl_WrapperInfo_PPB_Networ kList_Private_0_3.real_iface;
3034 return iface->GetType(resource, index); 3034 return iface->GetType(resource, index);
3035 } 3035 }
3036 3036
3037 static PP_NetworkListState_Private Pnacl_M19_PPB_NetworkList_Private_GetState(PP _Resource resource, uint32_t index) { 3037 static PP_NetworkListState_Private Pnacl_M31_PPB_NetworkList_Private_GetState(PP _Resource resource, uint32_t index) {
3038 const struct PPB_NetworkList_Private_0_2 *iface = Pnacl_WrapperInfo_PPB_Networ kList_Private_0_2.real_iface; 3038 const struct PPB_NetworkList_Private_0_3 *iface = Pnacl_WrapperInfo_PPB_Networ kList_Private_0_3.real_iface;
3039 return iface->GetState(resource, index); 3039 return iface->GetState(resource, index);
3040 } 3040 }
3041 3041
3042 static int32_t Pnacl_M19_PPB_NetworkList_Private_GetIpAddresses(PP_Resource reso urce, uint32_t index, struct PP_NetAddress_Private addresses[], uint32_t count) { 3042 static int32_t Pnacl_M31_PPB_NetworkList_Private_GetIpAddresses(PP_Resource reso urce, uint32_t index, struct PP_ArrayOutput* output) {
3043 const struct PPB_NetworkList_Private_0_2 *iface = Pnacl_WrapperInfo_PPB_Networ kList_Private_0_2.real_iface; 3043 const struct PPB_NetworkList_Private_0_3 *iface = Pnacl_WrapperInfo_PPB_Networ kList_Private_0_3.real_iface;
3044 return iface->GetIpAddresses(resource, index, addresses, count); 3044 return iface->GetIpAddresses(resource, index, *output);
3045 } 3045 }
3046 3046
3047 static void Pnacl_M19_PPB_NetworkList_Private_GetDisplayName(struct PP_Var* _str uct_result, PP_Resource resource, uint32_t index) { 3047 static void Pnacl_M31_PPB_NetworkList_Private_GetDisplayName(struct PP_Var* _str uct_result, PP_Resource resource, uint32_t index) {
3048 const struct PPB_NetworkList_Private_0_2 *iface = Pnacl_WrapperInfo_PPB_Networ kList_Private_0_2.real_iface; 3048 const struct PPB_NetworkList_Private_0_3 *iface = Pnacl_WrapperInfo_PPB_Networ kList_Private_0_3.real_iface;
3049 *_struct_result = iface->GetDisplayName(resource, index); 3049 *_struct_result = iface->GetDisplayName(resource, index);
3050 } 3050 }
3051 3051
3052 static uint32_t Pnacl_M19_PPB_NetworkList_Private_GetMTU(PP_Resource resource, u int32_t index) { 3052 static uint32_t Pnacl_M31_PPB_NetworkList_Private_GetMTU(PP_Resource resource, u int32_t index) {
3053 const struct PPB_NetworkList_Private_0_2 *iface = Pnacl_WrapperInfo_PPB_Networ kList_Private_0_2.real_iface; 3053 const struct PPB_NetworkList_Private_0_3 *iface = Pnacl_WrapperInfo_PPB_Networ kList_Private_0_3.real_iface;
3054 return iface->GetMTU(resource, index); 3054 return iface->GetMTU(resource, index);
3055 } 3055 }
3056 3056
3057 /* End wrapper methods for PPB_NetworkList_Private_0_2 */ 3057 /* End wrapper methods for PPB_NetworkList_Private_0_3 */
3058 3058
3059 /* Not generating wrapper methods for PPB_NetworkMonitor_Private_0_2 */ 3059 /* Not generating wrapper methods for PPB_NetworkMonitor_Private_0_2 */
3060 3060
3061 /* Begin wrapper methods for PPB_OutputProtection_Private_0_1 */ 3061 /* Begin wrapper methods for PPB_OutputProtection_Private_0_1 */
3062 3062
3063 static PP_Resource Pnacl_M31_PPB_OutputProtection_Private_Create(PP_Instance ins tance) { 3063 static PP_Resource Pnacl_M31_PPB_OutputProtection_Private_Create(PP_Instance ins tance) {
3064 const struct PPB_OutputProtection_Private_0_1 *iface = Pnacl_WrapperInfo_PPB_O utputProtection_Private_0_1.real_iface; 3064 const struct PPB_OutputProtection_Private_0_1 *iface = Pnacl_WrapperInfo_PPB_O utputProtection_Private_0_1.real_iface;
3065 return iface->Create(instance); 3065 return iface->Create(instance);
3066 } 3066 }
3067 3067
(...skipping 1650 matching lines...) Expand 10 before | Expand all | Expand 10 after
4718 .ReplacePort = (PP_Bool (*)(const struct PP_NetAddress_Private* src_addr, ui nt16_t port, struct PP_NetAddress_Private* addr_out))&Pnacl_M19_1_PPB_NetAddress _Private_ReplacePort, 4718 .ReplacePort = (PP_Bool (*)(const struct PP_NetAddress_Private* src_addr, ui nt16_t port, struct PP_NetAddress_Private* addr_out))&Pnacl_M19_1_PPB_NetAddress _Private_ReplacePort,
4719 .GetAnyAddress = (void (*)(PP_Bool is_ipv6, struct PP_NetAddress_Private* ad dr))&Pnacl_M19_1_PPB_NetAddress_Private_GetAnyAddress, 4719 .GetAnyAddress = (void (*)(PP_Bool is_ipv6, struct PP_NetAddress_Private* ad dr))&Pnacl_M19_1_PPB_NetAddress_Private_GetAnyAddress,
4720 .GetFamily = (PP_NetAddressFamily_Private (*)(const struct PP_NetAddress_Pri vate* addr))&Pnacl_M19_1_PPB_NetAddress_Private_GetFamily, 4720 .GetFamily = (PP_NetAddressFamily_Private (*)(const struct PP_NetAddress_Pri vate* addr))&Pnacl_M19_1_PPB_NetAddress_Private_GetFamily,
4721 .GetPort = (uint16_t (*)(const struct PP_NetAddress_Private* addr))&Pnacl_M1 9_1_PPB_NetAddress_Private_GetPort, 4721 .GetPort = (uint16_t (*)(const struct PP_NetAddress_Private* addr))&Pnacl_M1 9_1_PPB_NetAddress_Private_GetPort,
4722 .GetAddress = (PP_Bool (*)(const struct PP_NetAddress_Private* addr, void* a ddress, uint16_t address_size))&Pnacl_M19_1_PPB_NetAddress_Private_GetAddress, 4722 .GetAddress = (PP_Bool (*)(const struct PP_NetAddress_Private* addr, void* a ddress, uint16_t address_size))&Pnacl_M19_1_PPB_NetAddress_Private_GetAddress,
4723 .GetScopeID = (uint32_t (*)(const struct PP_NetAddress_Private* addr))&Pnacl _M19_1_PPB_NetAddress_Private_GetScopeID, 4723 .GetScopeID = (uint32_t (*)(const struct PP_NetAddress_Private* addr))&Pnacl _M19_1_PPB_NetAddress_Private_GetScopeID,
4724 .CreateFromIPv4Address = (void (*)(const uint8_t ip[4], uint16_t port, struc t PP_NetAddress_Private* addr_out))&Pnacl_M19_1_PPB_NetAddress_Private_CreateFro mIPv4Address, 4724 .CreateFromIPv4Address = (void (*)(const uint8_t ip[4], uint16_t port, struc t PP_NetAddress_Private* addr_out))&Pnacl_M19_1_PPB_NetAddress_Private_CreateFro mIPv4Address,
4725 .CreateFromIPv6Address = (void (*)(const uint8_t ip[16], uint32_t scope_id, uint16_t port, struct PP_NetAddress_Private* addr_out))&Pnacl_M19_1_PPB_NetAddre ss_Private_CreateFromIPv6Address 4725 .CreateFromIPv6Address = (void (*)(const uint8_t ip[16], uint32_t scope_id, uint16_t port, struct PP_NetAddress_Private* addr_out))&Pnacl_M19_1_PPB_NetAddre ss_Private_CreateFromIPv6Address
4726 }; 4726 };
4727 4727
4728 struct PPB_NetworkList_Private_0_2 Pnacl_Wrappers_PPB_NetworkList_Private_0_2 = { 4728 struct PPB_NetworkList_Private_0_3 Pnacl_Wrappers_PPB_NetworkList_Private_0_3 = {
4729 .IsNetworkList = (PP_Bool (*)(PP_Resource resource))&Pnacl_M19_PPB_NetworkLi st_Private_IsNetworkList, 4729 .IsNetworkList = (PP_Bool (*)(PP_Resource resource))&Pnacl_M31_PPB_NetworkLi st_Private_IsNetworkList,
4730 .GetCount = (uint32_t (*)(PP_Resource resource))&Pnacl_M19_PPB_NetworkList_P rivate_GetCount, 4730 .GetCount = (uint32_t (*)(PP_Resource resource))&Pnacl_M31_PPB_NetworkList_P rivate_GetCount,
4731 .GetName = (struct PP_Var (*)(PP_Resource resource, uint32_t index))&Pnacl_M 19_PPB_NetworkList_Private_GetName, 4731 .GetName = (struct PP_Var (*)(PP_Resource resource, uint32_t index))&Pnacl_M 31_PPB_NetworkList_Private_GetName,
4732 .GetType = (PP_NetworkListType_Private (*)(PP_Resource resource, uint32_t in dex))&Pnacl_M19_PPB_NetworkList_Private_GetType, 4732 .GetType = (PP_NetworkListType_Private (*)(PP_Resource resource, uint32_t in dex))&Pnacl_M31_PPB_NetworkList_Private_GetType,
4733 .GetState = (PP_NetworkListState_Private (*)(PP_Resource resource, uint32_t index))&Pnacl_M19_PPB_NetworkList_Private_GetState, 4733 .GetState = (PP_NetworkListState_Private (*)(PP_Resource resource, uint32_t index))&Pnacl_M31_PPB_NetworkList_Private_GetState,
4734 .GetIpAddresses = (int32_t (*)(PP_Resource resource, uint32_t index, struct PP_NetAddress_Private addresses[], uint32_t count))&Pnacl_M19_PPB_NetworkList_Pr ivate_GetIpAddresses, 4734 .GetIpAddresses = (int32_t (*)(PP_Resource resource, uint32_t index, struct PP_ArrayOutput output))&Pnacl_M31_PPB_NetworkList_Private_GetIpAddresses,
4735 .GetDisplayName = (struct PP_Var (*)(PP_Resource resource, uint32_t index))& Pnacl_M19_PPB_NetworkList_Private_GetDisplayName, 4735 .GetDisplayName = (struct PP_Var (*)(PP_Resource resource, uint32_t index))& Pnacl_M31_PPB_NetworkList_Private_GetDisplayName,
4736 .GetMTU = (uint32_t (*)(PP_Resource resource, uint32_t index))&Pnacl_M19_PPB _NetworkList_Private_GetMTU 4736 .GetMTU = (uint32_t (*)(PP_Resource resource, uint32_t index))&Pnacl_M31_PPB _NetworkList_Private_GetMTU
4737 }; 4737 };
4738 4738
4739 /* Not generating wrapper interface for PPB_NetworkMonitor_Private_0_2 */ 4739 /* Not generating wrapper interface for PPB_NetworkMonitor_Private_0_2 */
4740 4740
4741 struct PPB_OutputProtection_Private_0_1 Pnacl_Wrappers_PPB_OutputProtection_Priv ate_0_1 = { 4741 struct PPB_OutputProtection_Private_0_1 Pnacl_Wrappers_PPB_OutputProtection_Priv ate_0_1 = {
4742 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M31_PPB_OutputProtec tion_Private_Create, 4742 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M31_PPB_OutputProtec tion_Private_Create,
4743 .IsOutputProtection = (PP_Bool (*)(PP_Resource resource))&Pnacl_M31_PPB_Outp utProtection_Private_IsOutputProtection, 4743 .IsOutputProtection = (PP_Bool (*)(PP_Resource resource))&Pnacl_M31_PPB_Outp utProtection_Private_IsOutputProtection,
4744 .QueryStatus = (int32_t (*)(PP_Resource resource, uint32_t* link_mask, uint3 2_t* protection_mask, struct PP_CompletionCallback callback))&Pnacl_M31_PPB_Outp utProtection_Private_QueryStatus, 4744 .QueryStatus = (int32_t (*)(PP_Resource resource, uint32_t* link_mask, uint3 2_t* protection_mask, struct PP_CompletionCallback callback))&Pnacl_M31_PPB_Outp utProtection_Private_QueryStatus,
4745 .EnableProtection = (int32_t (*)(PP_Resource resource, uint32_t desired_prot ection_mask, struct PP_CompletionCallback callback))&Pnacl_M31_PPB_OutputProtect ion_Private_EnableProtection 4745 .EnableProtection = (int32_t (*)(PP_Resource resource, uint32_t desired_prot ection_mask, struct PP_CompletionCallback callback))&Pnacl_M31_PPB_OutputProtect ion_Private_EnableProtection
4746 }; 4746 };
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after
5387 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_NetAddress_Private_1_0, 5387 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_NetAddress_Private_1_0,
5388 .real_iface = NULL 5388 .real_iface = NULL
5389 }; 5389 };
5390 5390
5391 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetAddress_Private_1_1 = { 5391 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetAddress_Private_1_1 = {
5392 .iface_macro = PPB_NETADDRESS_PRIVATE_INTERFACE_1_1, 5392 .iface_macro = PPB_NETADDRESS_PRIVATE_INTERFACE_1_1,
5393 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_NetAddress_Private_1_1, 5393 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_NetAddress_Private_1_1,
5394 .real_iface = NULL 5394 .real_iface = NULL
5395 }; 5395 };
5396 5396
5397 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetworkList_Private_0_2 = { 5397 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetworkList_Private_0_3 = {
5398 .iface_macro = PPB_NETWORKLIST_PRIVATE_INTERFACE_0_2, 5398 .iface_macro = PPB_NETWORKLIST_PRIVATE_INTERFACE_0_3,
5399 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_NetworkList_Private_0_2, 5399 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_NetworkList_Private_0_3,
5400 .real_iface = NULL 5400 .real_iface = NULL
5401 }; 5401 };
5402 5402
5403 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_OutputProtection_Private_ 0_1 = { 5403 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_OutputProtection_Private_ 0_1 = {
5404 .iface_macro = PPB_OUTPUTPROTECTION_PRIVATE_INTERFACE_0_1, 5404 .iface_macro = PPB_OUTPUTPROTECTION_PRIVATE_INTERFACE_0_1,
5405 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_OutputProtection_Private_0_1, 5405 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_OutputProtection_Private_0_1,
5406 .real_iface = NULL 5406 .real_iface = NULL
5407 }; 5407 };
5408 5408
5409 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Talk_Private_1_0 = { 5409 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Talk_Private_1_0 = {
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
5591 &Pnacl_WrapperInfo_PPB_Flash_Clipboard_5_0, 5591 &Pnacl_WrapperInfo_PPB_Flash_Clipboard_5_0,
5592 &Pnacl_WrapperInfo_PPB_Flash_DeviceID_1_0, 5592 &Pnacl_WrapperInfo_PPB_Flash_DeviceID_1_0,
5593 &Pnacl_WrapperInfo_PPB_Flash_DRM_1_0, 5593 &Pnacl_WrapperInfo_PPB_Flash_DRM_1_0,
5594 &Pnacl_WrapperInfo_PPB_Flash_Menu_0_2, 5594 &Pnacl_WrapperInfo_PPB_Flash_Menu_0_2,
5595 &Pnacl_WrapperInfo_PPB_HostResolver_Private_0_1, 5595 &Pnacl_WrapperInfo_PPB_HostResolver_Private_0_1,
5596 &Pnacl_WrapperInfo_PPB_Instance_Private_0_1, 5596 &Pnacl_WrapperInfo_PPB_Instance_Private_0_1,
5597 &Pnacl_WrapperInfo_PPB_NaCl_Private_1_0, 5597 &Pnacl_WrapperInfo_PPB_NaCl_Private_1_0,
5598 &Pnacl_WrapperInfo_PPB_NetAddress_Private_0_1, 5598 &Pnacl_WrapperInfo_PPB_NetAddress_Private_0_1,
5599 &Pnacl_WrapperInfo_PPB_NetAddress_Private_1_0, 5599 &Pnacl_WrapperInfo_PPB_NetAddress_Private_1_0,
5600 &Pnacl_WrapperInfo_PPB_NetAddress_Private_1_1, 5600 &Pnacl_WrapperInfo_PPB_NetAddress_Private_1_1,
5601 &Pnacl_WrapperInfo_PPB_NetworkList_Private_0_2, 5601 &Pnacl_WrapperInfo_PPB_NetworkList_Private_0_3,
5602 &Pnacl_WrapperInfo_PPB_OutputProtection_Private_0_1, 5602 &Pnacl_WrapperInfo_PPB_OutputProtection_Private_0_1,
5603 &Pnacl_WrapperInfo_PPB_Talk_Private_1_0, 5603 &Pnacl_WrapperInfo_PPB_Talk_Private_1_0,
5604 &Pnacl_WrapperInfo_PPB_Talk_Private_2_0, 5604 &Pnacl_WrapperInfo_PPB_Talk_Private_2_0,
5605 &Pnacl_WrapperInfo_PPB_TCPServerSocket_Private_0_1, 5605 &Pnacl_WrapperInfo_PPB_TCPServerSocket_Private_0_1,
5606 &Pnacl_WrapperInfo_PPB_TCPServerSocket_Private_0_2, 5606 &Pnacl_WrapperInfo_PPB_TCPServerSocket_Private_0_2,
5607 &Pnacl_WrapperInfo_PPB_TCPSocket_Private_0_3, 5607 &Pnacl_WrapperInfo_PPB_TCPSocket_Private_0_3,
5608 &Pnacl_WrapperInfo_PPB_TCPSocket_Private_0_4, 5608 &Pnacl_WrapperInfo_PPB_TCPSocket_Private_0_4,
5609 &Pnacl_WrapperInfo_PPB_TCPSocket_Private_0_5, 5609 &Pnacl_WrapperInfo_PPB_TCPSocket_Private_0_5,
5610 &Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_2, 5610 &Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_2,
5611 &Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_3, 5611 &Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_3,
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
5698 if (NULL == iface) return NULL; 5698 if (NULL == iface) return NULL;
5699 wrapper->real_iface = iface; 5699 wrapper->real_iface = iface;
5700 } 5700 }
5701 5701
5702 if (wrapper->wrapped_iface) { 5702 if (wrapper->wrapped_iface) {
5703 return wrapper->wrapped_iface; 5703 return wrapper->wrapped_iface;
5704 } else { 5704 } else {
5705 return wrapper->real_iface; 5705 return wrapper->real_iface;
5706 } 5706 }
5707 } 5707 }
OLDNEW
« no previous file with comments | « ppapi/cpp/private/network_list_private.cc ('k') | ppapi/shared_impl/ppb_network_list_private_shared.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698