OLD | NEW |
1 /* Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2014 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" |
(...skipping 1457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1468 | 1468 |
1469 /* Begin wrapper methods for PPB_NetworkProxy_1_0 */ | 1469 /* Begin wrapper methods for PPB_NetworkProxy_1_0 */ |
1470 | 1470 |
1471 static int32_t Pnacl_M29_PPB_NetworkProxy_GetProxyForURL(PP_Instance instance, s
truct PP_Var* url, struct PP_Var* proxy_string, struct PP_CompletionCallback* ca
llback) { | 1471 static int32_t Pnacl_M29_PPB_NetworkProxy_GetProxyForURL(PP_Instance instance, s
truct PP_Var* url, struct PP_Var* proxy_string, struct PP_CompletionCallback* ca
llback) { |
1472 const struct PPB_NetworkProxy_1_0 *iface = Pnacl_WrapperInfo_PPB_NetworkProxy_
1_0.real_iface; | 1472 const struct PPB_NetworkProxy_1_0 *iface = Pnacl_WrapperInfo_PPB_NetworkProxy_
1_0.real_iface; |
1473 return iface->GetProxyForURL(instance, *url, proxy_string, *callback); | 1473 return iface->GetProxyForURL(instance, *url, proxy_string, *callback); |
1474 } | 1474 } |
1475 | 1475 |
1476 /* End wrapper methods for PPB_NetworkProxy_1_0 */ | 1476 /* End wrapper methods for PPB_NetworkProxy_1_0 */ |
1477 | 1477 |
| 1478 /* Not generating wrapper methods for PPB_OpenGLES2_1_0 */ |
| 1479 |
| 1480 /* Not generating wrapper methods for PPB_OpenGLES2InstancedArrays_1_0 */ |
| 1481 |
| 1482 /* Not generating wrapper methods for PPB_OpenGLES2FramebufferBlit_1_0 */ |
| 1483 |
| 1484 /* Not generating wrapper methods for PPB_OpenGLES2FramebufferMultisample_1_0 */ |
| 1485 |
| 1486 /* Not generating wrapper methods for PPB_OpenGLES2ChromiumEnableFeature_1_0 */ |
| 1487 |
| 1488 /* Not generating wrapper methods for PPB_OpenGLES2ChromiumMapSub_1_0 */ |
| 1489 |
| 1490 /* Not generating wrapper methods for PPB_OpenGLES2Query_1_0 */ |
| 1491 |
| 1492 /* Not generating wrapper methods for PPB_OpenGLES2VertexArrayObject_1_0 */ |
| 1493 |
1478 /* Begin wrapper methods for PPB_TCPSocket_1_0 */ | 1494 /* Begin wrapper methods for PPB_TCPSocket_1_0 */ |
1479 | 1495 |
1480 static PP_Resource Pnacl_M29_PPB_TCPSocket_Create(PP_Instance instance) { | 1496 static PP_Resource Pnacl_M29_PPB_TCPSocket_Create(PP_Instance instance) { |
1481 const struct PPB_TCPSocket_1_0 *iface = Pnacl_WrapperInfo_PPB_TCPSocket_1_0.re
al_iface; | 1497 const struct PPB_TCPSocket_1_0 *iface = Pnacl_WrapperInfo_PPB_TCPSocket_1_0.re
al_iface; |
1482 return iface->Create(instance); | 1498 return iface->Create(instance); |
1483 } | 1499 } |
1484 | 1500 |
1485 static PP_Bool Pnacl_M29_PPB_TCPSocket_IsTCPSocket(PP_Resource resource) { | 1501 static PP_Bool Pnacl_M29_PPB_TCPSocket_IsTCPSocket(PP_Resource resource) { |
1486 const struct PPB_TCPSocket_1_0 *iface = Pnacl_WrapperInfo_PPB_TCPSocket_1_0.re
al_iface; | 1502 const struct PPB_TCPSocket_1_0 *iface = Pnacl_WrapperInfo_PPB_TCPSocket_1_0.re
al_iface; |
1487 return iface->IsTCPSocket(resource); | 1503 return iface->IsTCPSocket(resource); |
(...skipping 924 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2412 | 2428 |
2413 static void Pnacl_M21_PPB_IMEInputEvent_Dev_GetSelection(PP_Resource ime_event,
uint32_t* start, uint32_t* end) { | 2429 static void Pnacl_M21_PPB_IMEInputEvent_Dev_GetSelection(PP_Resource ime_event,
uint32_t* start, uint32_t* end) { |
2414 const struct PPB_IMEInputEvent_Dev_0_2 *iface = Pnacl_WrapperInfo_PPB_IMEInput
Event_Dev_0_2.real_iface; | 2430 const struct PPB_IMEInputEvent_Dev_0_2 *iface = Pnacl_WrapperInfo_PPB_IMEInput
Event_Dev_0_2.real_iface; |
2415 iface->GetSelection(ime_event, start, end); | 2431 iface->GetSelection(ime_event, start, end); |
2416 } | 2432 } |
2417 | 2433 |
2418 /* End wrapper methods for PPB_IMEInputEvent_Dev_0_2 */ | 2434 /* End wrapper methods for PPB_IMEInputEvent_Dev_0_2 */ |
2419 | 2435 |
2420 /* Not generating wrapper methods for PPB_Memory_Dev_0_1 */ | 2436 /* Not generating wrapper methods for PPB_Memory_Dev_0_1 */ |
2421 | 2437 |
| 2438 /* Not generating wrapper methods for PPB_OpenGLES2DrawBuffers_Dev_1_0 */ |
| 2439 |
2422 /* Begin wrapper methods for PPB_Printing_Dev_0_7 */ | 2440 /* Begin wrapper methods for PPB_Printing_Dev_0_7 */ |
2423 | 2441 |
2424 static PP_Resource Pnacl_M23_PPB_Printing_Dev_Create(PP_Instance instance) { | 2442 static PP_Resource Pnacl_M23_PPB_Printing_Dev_Create(PP_Instance instance) { |
2425 const struct PPB_Printing_Dev_0_7 *iface = Pnacl_WrapperInfo_PPB_Printing_Dev_
0_7.real_iface; | 2443 const struct PPB_Printing_Dev_0_7 *iface = Pnacl_WrapperInfo_PPB_Printing_Dev_
0_7.real_iface; |
2426 return iface->Create(instance); | 2444 return iface->Create(instance); |
2427 } | 2445 } |
2428 | 2446 |
2429 static int32_t Pnacl_M23_PPB_Printing_Dev_GetDefaultPrintSettings(PP_Resource re
source, struct PP_PrintSettings_Dev* print_settings, struct PP_CompletionCallbac
k* callback) { | 2447 static int32_t Pnacl_M23_PPB_Printing_Dev_GetDefaultPrintSettings(PP_Resource re
source, struct PP_PrintSettings_Dev* print_settings, struct PP_CompletionCallbac
k* callback) { |
2430 const struct PPB_Printing_Dev_0_7 *iface = Pnacl_WrapperInfo_PPB_Printing_Dev_
0_7.real_iface; | 2448 const struct PPB_Printing_Dev_0_7 *iface = Pnacl_WrapperInfo_PPB_Printing_Dev_
0_7.real_iface; |
2431 return iface->GetDefaultPrintSettings(resource, print_settings, *callback); | 2449 return iface->GetDefaultPrintSettings(resource, print_settings, *callback); |
(...skipping 2380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4812 static const struct PPB_NetworkMonitor_1_0 Pnacl_Wrappers_PPB_NetworkMonitor_1_0
= { | 4830 static const struct PPB_NetworkMonitor_1_0 Pnacl_Wrappers_PPB_NetworkMonitor_1_0
= { |
4813 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M31_PPB_NetworkMonit
or_Create, | 4831 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M31_PPB_NetworkMonit
or_Create, |
4814 .UpdateNetworkList = (int32_t (*)(PP_Resource network_monitor, PP_Resource*
network_list, struct PP_CompletionCallback callback))&Pnacl_M31_PPB_NetworkMonit
or_UpdateNetworkList, | 4832 .UpdateNetworkList = (int32_t (*)(PP_Resource network_monitor, PP_Resource*
network_list, struct PP_CompletionCallback callback))&Pnacl_M31_PPB_NetworkMonit
or_UpdateNetworkList, |
4815 .IsNetworkMonitor = (PP_Bool (*)(PP_Resource resource))&Pnacl_M31_PPB_Networ
kMonitor_IsNetworkMonitor | 4833 .IsNetworkMonitor = (PP_Bool (*)(PP_Resource resource))&Pnacl_M31_PPB_Networ
kMonitor_IsNetworkMonitor |
4816 }; | 4834 }; |
4817 | 4835 |
4818 static const struct PPB_NetworkProxy_1_0 Pnacl_Wrappers_PPB_NetworkProxy_1_0 = { | 4836 static const struct PPB_NetworkProxy_1_0 Pnacl_Wrappers_PPB_NetworkProxy_1_0 = { |
4819 .GetProxyForURL = (int32_t (*)(PP_Instance instance, struct PP_Var url, stru
ct PP_Var* proxy_string, struct PP_CompletionCallback callback))&Pnacl_M29_PPB_N
etworkProxy_GetProxyForURL | 4837 .GetProxyForURL = (int32_t (*)(PP_Instance instance, struct PP_Var url, stru
ct PP_Var* proxy_string, struct PP_CompletionCallback callback))&Pnacl_M29_PPB_N
etworkProxy_GetProxyForURL |
4820 }; | 4838 }; |
4821 | 4839 |
| 4840 /* Not generating wrapper interface for PPB_OpenGLES2_1_0 */ |
| 4841 |
| 4842 /* Not generating wrapper interface for PPB_OpenGLES2InstancedArrays_1_0 */ |
| 4843 |
| 4844 /* Not generating wrapper interface for PPB_OpenGLES2FramebufferBlit_1_0 */ |
| 4845 |
| 4846 /* Not generating wrapper interface for PPB_OpenGLES2FramebufferMultisample_1_0
*/ |
| 4847 |
| 4848 /* Not generating wrapper interface for PPB_OpenGLES2ChromiumEnableFeature_1_0 *
/ |
| 4849 |
| 4850 /* Not generating wrapper interface for PPB_OpenGLES2ChromiumMapSub_1_0 */ |
| 4851 |
| 4852 /* Not generating wrapper interface for PPB_OpenGLES2Query_1_0 */ |
| 4853 |
| 4854 /* Not generating wrapper interface for PPB_OpenGLES2VertexArrayObject_1_0 */ |
| 4855 |
4822 static const struct PPB_TCPSocket_1_0 Pnacl_Wrappers_PPB_TCPSocket_1_0 = { | 4856 static const struct PPB_TCPSocket_1_0 Pnacl_Wrappers_PPB_TCPSocket_1_0 = { |
4823 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M29_PPB_TCPSocket_Cr
eate, | 4857 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M29_PPB_TCPSocket_Cr
eate, |
4824 .IsTCPSocket = (PP_Bool (*)(PP_Resource resource))&Pnacl_M29_PPB_TCPSocket_I
sTCPSocket, | 4858 .IsTCPSocket = (PP_Bool (*)(PP_Resource resource))&Pnacl_M29_PPB_TCPSocket_I
sTCPSocket, |
4825 .Connect = (int32_t (*)(PP_Resource tcp_socket, PP_Resource addr, struct PP_
CompletionCallback callback))&Pnacl_M29_PPB_TCPSocket_Connect, | 4859 .Connect = (int32_t (*)(PP_Resource tcp_socket, PP_Resource addr, struct PP_
CompletionCallback callback))&Pnacl_M29_PPB_TCPSocket_Connect, |
4826 .GetLocalAddress = (PP_Resource (*)(PP_Resource tcp_socket))&Pnacl_M29_PPB_T
CPSocket_GetLocalAddress, | 4860 .GetLocalAddress = (PP_Resource (*)(PP_Resource tcp_socket))&Pnacl_M29_PPB_T
CPSocket_GetLocalAddress, |
4827 .GetRemoteAddress = (PP_Resource (*)(PP_Resource tcp_socket))&Pnacl_M29_PPB_
TCPSocket_GetRemoteAddress, | 4861 .GetRemoteAddress = (PP_Resource (*)(PP_Resource tcp_socket))&Pnacl_M29_PPB_
TCPSocket_GetRemoteAddress, |
4828 .Read = (int32_t (*)(PP_Resource tcp_socket, char* buffer, int32_t bytes_to_
read, struct PP_CompletionCallback callback))&Pnacl_M29_PPB_TCPSocket_Read, | 4862 .Read = (int32_t (*)(PP_Resource tcp_socket, char* buffer, int32_t bytes_to_
read, struct PP_CompletionCallback callback))&Pnacl_M29_PPB_TCPSocket_Read, |
4829 .Write = (int32_t (*)(PP_Resource tcp_socket, const char* buffer, int32_t by
tes_to_write, struct PP_CompletionCallback callback))&Pnacl_M29_PPB_TCPSocket_Wr
ite, | 4863 .Write = (int32_t (*)(PP_Resource tcp_socket, const char* buffer, int32_t by
tes_to_write, struct PP_CompletionCallback callback))&Pnacl_M29_PPB_TCPSocket_Wr
ite, |
4830 .Close = (void (*)(PP_Resource tcp_socket))&Pnacl_M29_PPB_TCPSocket_Close, | 4864 .Close = (void (*)(PP_Resource tcp_socket))&Pnacl_M29_PPB_TCPSocket_Close, |
4831 .SetOption = (int32_t (*)(PP_Resource tcp_socket, PP_TCPSocket_Option name,
struct PP_Var value, struct PP_CompletionCallback callback))&Pnacl_M29_PPB_TCPSo
cket_SetOption | 4865 .SetOption = (int32_t (*)(PP_Resource tcp_socket, PP_TCPSocket_Option name,
struct PP_Var value, struct PP_CompletionCallback callback))&Pnacl_M29_PPB_TCPSo
cket_SetOption |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5089 .IsIMEInputEvent = (PP_Bool (*)(PP_Resource resource))&Pnacl_M21_PPB_IMEInpu
tEvent_Dev_IsIMEInputEvent, | 5123 .IsIMEInputEvent = (PP_Bool (*)(PP_Resource resource))&Pnacl_M21_PPB_IMEInpu
tEvent_Dev_IsIMEInputEvent, |
5090 .GetText = (struct PP_Var (*)(PP_Resource ime_event))&Pnacl_M21_PPB_IMEInput
Event_Dev_GetText, | 5124 .GetText = (struct PP_Var (*)(PP_Resource ime_event))&Pnacl_M21_PPB_IMEInput
Event_Dev_GetText, |
5091 .GetSegmentNumber = (uint32_t (*)(PP_Resource ime_event))&Pnacl_M21_PPB_IMEI
nputEvent_Dev_GetSegmentNumber, | 5125 .GetSegmentNumber = (uint32_t (*)(PP_Resource ime_event))&Pnacl_M21_PPB_IMEI
nputEvent_Dev_GetSegmentNumber, |
5092 .GetSegmentOffset = (uint32_t (*)(PP_Resource ime_event, uint32_t index))&Pn
acl_M21_PPB_IMEInputEvent_Dev_GetSegmentOffset, | 5126 .GetSegmentOffset = (uint32_t (*)(PP_Resource ime_event, uint32_t index))&Pn
acl_M21_PPB_IMEInputEvent_Dev_GetSegmentOffset, |
5093 .GetTargetSegment = (int32_t (*)(PP_Resource ime_event))&Pnacl_M21_PPB_IMEIn
putEvent_Dev_GetTargetSegment, | 5127 .GetTargetSegment = (int32_t (*)(PP_Resource ime_event))&Pnacl_M21_PPB_IMEIn
putEvent_Dev_GetTargetSegment, |
5094 .GetSelection = (void (*)(PP_Resource ime_event, uint32_t* start, uint32_t*
end))&Pnacl_M21_PPB_IMEInputEvent_Dev_GetSelection | 5128 .GetSelection = (void (*)(PP_Resource ime_event, uint32_t* start, uint32_t*
end))&Pnacl_M21_PPB_IMEInputEvent_Dev_GetSelection |
5095 }; | 5129 }; |
5096 | 5130 |
5097 /* Not generating wrapper interface for PPB_Memory_Dev_0_1 */ | 5131 /* Not generating wrapper interface for PPB_Memory_Dev_0_1 */ |
5098 | 5132 |
| 5133 /* Not generating wrapper interface for PPB_OpenGLES2DrawBuffers_Dev_1_0 */ |
| 5134 |
5099 static const struct PPB_Printing_Dev_0_7 Pnacl_Wrappers_PPB_Printing_Dev_0_7 = { | 5135 static const struct PPB_Printing_Dev_0_7 Pnacl_Wrappers_PPB_Printing_Dev_0_7 = { |
5100 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M23_PPB_Printing_Dev
_Create, | 5136 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M23_PPB_Printing_Dev
_Create, |
5101 .GetDefaultPrintSettings = (int32_t (*)(PP_Resource resource, struct PP_Prin
tSettings_Dev* print_settings, struct PP_CompletionCallback callback))&Pnacl_M23
_PPB_Printing_Dev_GetDefaultPrintSettings | 5137 .GetDefaultPrintSettings = (int32_t (*)(PP_Resource resource, struct PP_Prin
tSettings_Dev* print_settings, struct PP_CompletionCallback callback))&Pnacl_M23
_PPB_Printing_Dev_GetDefaultPrintSettings |
5102 }; | 5138 }; |
5103 | 5139 |
5104 /* Not generating wrapper interface for PPB_Scrollbar_Dev_0_5 */ | 5140 /* Not generating wrapper interface for PPB_Scrollbar_Dev_0_5 */ |
5105 | 5141 |
5106 /* Not generating wrapper interface for PPB_TextInput_Dev_0_1 */ | 5142 /* Not generating wrapper interface for PPB_TextInput_Dev_0_1 */ |
5107 | 5143 |
5108 /* Not generating wrapper interface for PPB_TextInput_Dev_0_2 */ | 5144 /* Not generating wrapper interface for PPB_TextInput_Dev_0_2 */ |
(...skipping 1385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6494 | 6530 |
6495 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ | 6531 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ |
6496 if (wrapper->real_iface == NULL) { | 6532 if (wrapper->real_iface == NULL) { |
6497 const void *iface = (*__real_PPPGetInterface)(name); | 6533 const void *iface = (*__real_PPPGetInterface)(name); |
6498 if (NULL == iface) return NULL; | 6534 if (NULL == iface) return NULL; |
6499 wrapper->real_iface = iface; | 6535 wrapper->real_iface = iface; |
6500 } | 6536 } |
6501 | 6537 |
6502 return wrapper->wrapped_iface; | 6538 return wrapper->wrapped_iface; |
6503 } | 6539 } |
OLD | NEW |