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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MessageLoop_1_0; | 125 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MessageLoop_1_0; |
126 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Messaging_1_0; | 126 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Messaging_1_0; |
127 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Messaging_1_2; | 127 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Messaging_1_2; |
128 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseLock_1_0; | 128 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseLock_1_0; |
129 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetAddress_1_0; | 129 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetAddress_1_0; |
130 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetworkList_1_0; | 130 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetworkList_1_0; |
131 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetworkMonitor_1_0; | 131 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetworkMonitor_1_0; |
132 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetworkProxy_1_0; | 132 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetworkProxy_1_0; |
133 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_1_0; | 133 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_1_0; |
134 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_1_1; | 134 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_1_1; |
| 135 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_1_2; |
135 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TextInputController_1_0; | 136 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TextInputController_1_0; |
136 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_1_0; | 137 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_1_0; |
| 138 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_1_1; |
137 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLLoader_1_0; | 139 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLLoader_1_0; |
138 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLRequestInfo_1_0; | 140 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLRequestInfo_1_0; |
139 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0; | 141 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0; |
140 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_0; | 142 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_0; |
141 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_1; | 143 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_1; |
142 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_2; | 144 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_2; |
143 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarArray_1_0; | 145 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarArray_1_0; |
144 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0; | 146 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0; |
145 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarDictionary_1_0; | 147 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarDictionary_1_0; |
146 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_0_1; | 148 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_0_1; |
(...skipping 1451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1598 iface->Close(tcp_socket); | 1600 iface->Close(tcp_socket); |
1599 } | 1601 } |
1600 | 1602 |
1601 static int32_t Pnacl_M31_PPB_TCPSocket_SetOption(PP_Resource tcp_socket, PP_TCPS
ocket_Option name, struct PP_Var* value, struct PP_CompletionCallback* callback)
{ | 1603 static int32_t Pnacl_M31_PPB_TCPSocket_SetOption(PP_Resource tcp_socket, PP_TCPS
ocket_Option name, struct PP_Var* value, struct PP_CompletionCallback* callback)
{ |
1602 const struct PPB_TCPSocket_1_1 *iface = Pnacl_WrapperInfo_PPB_TCPSocket_1_1.re
al_iface; | 1604 const struct PPB_TCPSocket_1_1 *iface = Pnacl_WrapperInfo_PPB_TCPSocket_1_1.re
al_iface; |
1603 return iface->SetOption(tcp_socket, name, *value, *callback); | 1605 return iface->SetOption(tcp_socket, name, *value, *callback); |
1604 } | 1606 } |
1605 | 1607 |
1606 /* End wrapper methods for PPB_TCPSocket_1_1 */ | 1608 /* End wrapper methods for PPB_TCPSocket_1_1 */ |
1607 | 1609 |
| 1610 /* Begin wrapper methods for PPB_TCPSocket_1_2 */ |
| 1611 |
| 1612 static PP_Resource Pnacl_M41_PPB_TCPSocket_Create(PP_Instance instance) { |
| 1613 const struct PPB_TCPSocket_1_2 *iface = Pnacl_WrapperInfo_PPB_TCPSocket_1_2.re
al_iface; |
| 1614 return iface->Create(instance); |
| 1615 } |
| 1616 |
| 1617 static PP_Bool Pnacl_M41_PPB_TCPSocket_IsTCPSocket(PP_Resource resource) { |
| 1618 const struct PPB_TCPSocket_1_2 *iface = Pnacl_WrapperInfo_PPB_TCPSocket_1_2.re
al_iface; |
| 1619 return iface->IsTCPSocket(resource); |
| 1620 } |
| 1621 |
| 1622 static int32_t Pnacl_M41_PPB_TCPSocket_Bind(PP_Resource tcp_socket, PP_Resource
addr, struct PP_CompletionCallback* callback) { |
| 1623 const struct PPB_TCPSocket_1_2 *iface = Pnacl_WrapperInfo_PPB_TCPSocket_1_2.re
al_iface; |
| 1624 return iface->Bind(tcp_socket, addr, *callback); |
| 1625 } |
| 1626 |
| 1627 static int32_t Pnacl_M41_PPB_TCPSocket_Connect(PP_Resource tcp_socket, PP_Resour
ce addr, struct PP_CompletionCallback* callback) { |
| 1628 const struct PPB_TCPSocket_1_2 *iface = Pnacl_WrapperInfo_PPB_TCPSocket_1_2.re
al_iface; |
| 1629 return iface->Connect(tcp_socket, addr, *callback); |
| 1630 } |
| 1631 |
| 1632 static PP_Resource Pnacl_M41_PPB_TCPSocket_GetLocalAddress(PP_Resource tcp_socke
t) { |
| 1633 const struct PPB_TCPSocket_1_2 *iface = Pnacl_WrapperInfo_PPB_TCPSocket_1_2.re
al_iface; |
| 1634 return iface->GetLocalAddress(tcp_socket); |
| 1635 } |
| 1636 |
| 1637 static PP_Resource Pnacl_M41_PPB_TCPSocket_GetRemoteAddress(PP_Resource tcp_sock
et) { |
| 1638 const struct PPB_TCPSocket_1_2 *iface = Pnacl_WrapperInfo_PPB_TCPSocket_1_2.re
al_iface; |
| 1639 return iface->GetRemoteAddress(tcp_socket); |
| 1640 } |
| 1641 |
| 1642 static int32_t Pnacl_M41_PPB_TCPSocket_Read(PP_Resource tcp_socket, char* buffer
, int32_t bytes_to_read, struct PP_CompletionCallback* callback) { |
| 1643 const struct PPB_TCPSocket_1_2 *iface = Pnacl_WrapperInfo_PPB_TCPSocket_1_2.re
al_iface; |
| 1644 return iface->Read(tcp_socket, buffer, bytes_to_read, *callback); |
| 1645 } |
| 1646 |
| 1647 static int32_t Pnacl_M41_PPB_TCPSocket_Write(PP_Resource tcp_socket, const char*
buffer, int32_t bytes_to_write, struct PP_CompletionCallback* callback) { |
| 1648 const struct PPB_TCPSocket_1_2 *iface = Pnacl_WrapperInfo_PPB_TCPSocket_1_2.re
al_iface; |
| 1649 return iface->Write(tcp_socket, buffer, bytes_to_write, *callback); |
| 1650 } |
| 1651 |
| 1652 static int32_t Pnacl_M41_PPB_TCPSocket_Listen(PP_Resource tcp_socket, int32_t ba
cklog, struct PP_CompletionCallback* callback) { |
| 1653 const struct PPB_TCPSocket_1_2 *iface = Pnacl_WrapperInfo_PPB_TCPSocket_1_2.re
al_iface; |
| 1654 return iface->Listen(tcp_socket, backlog, *callback); |
| 1655 } |
| 1656 |
| 1657 static int32_t Pnacl_M41_PPB_TCPSocket_Accept(PP_Resource tcp_socket, PP_Resourc
e* accepted_tcp_socket, struct PP_CompletionCallback* callback) { |
| 1658 const struct PPB_TCPSocket_1_2 *iface = Pnacl_WrapperInfo_PPB_TCPSocket_1_2.re
al_iface; |
| 1659 return iface->Accept(tcp_socket, accepted_tcp_socket, *callback); |
| 1660 } |
| 1661 |
| 1662 static void Pnacl_M41_PPB_TCPSocket_Close(PP_Resource tcp_socket) { |
| 1663 const struct PPB_TCPSocket_1_2 *iface = Pnacl_WrapperInfo_PPB_TCPSocket_1_2.re
al_iface; |
| 1664 iface->Close(tcp_socket); |
| 1665 } |
| 1666 |
| 1667 static int32_t Pnacl_M41_PPB_TCPSocket_SetOption(PP_Resource tcp_socket, PP_TCPS
ocket_Option name, struct PP_Var* value, struct PP_CompletionCallback* callback)
{ |
| 1668 const struct PPB_TCPSocket_1_2 *iface = Pnacl_WrapperInfo_PPB_TCPSocket_1_2.re
al_iface; |
| 1669 return iface->SetOption(tcp_socket, name, *value, *callback); |
| 1670 } |
| 1671 |
| 1672 /* End wrapper methods for PPB_TCPSocket_1_2 */ |
| 1673 |
1608 /* Begin wrapper methods for PPB_TextInputController_1_0 */ | 1674 /* Begin wrapper methods for PPB_TextInputController_1_0 */ |
1609 | 1675 |
1610 static void Pnacl_M30_PPB_TextInputController_SetTextInputType(PP_Instance insta
nce, PP_TextInput_Type type) { | 1676 static void Pnacl_M30_PPB_TextInputController_SetTextInputType(PP_Instance insta
nce, PP_TextInput_Type type) { |
1611 const struct PPB_TextInputController_1_0 *iface = Pnacl_WrapperInfo_PPB_TextIn
putController_1_0.real_iface; | 1677 const struct PPB_TextInputController_1_0 *iface = Pnacl_WrapperInfo_PPB_TextIn
putController_1_0.real_iface; |
1612 iface->SetTextInputType(instance, type); | 1678 iface->SetTextInputType(instance, type); |
1613 } | 1679 } |
1614 | 1680 |
1615 static void Pnacl_M30_PPB_TextInputController_UpdateCaretPosition(PP_Instance in
stance, const struct PP_Rect* caret) { | 1681 static void Pnacl_M30_PPB_TextInputController_UpdateCaretPosition(PP_Instance in
stance, const struct PP_Rect* caret) { |
1616 const struct PPB_TextInputController_1_0 *iface = Pnacl_WrapperInfo_PPB_TextIn
putController_1_0.real_iface; | 1682 const struct PPB_TextInputController_1_0 *iface = Pnacl_WrapperInfo_PPB_TextIn
putController_1_0.real_iface; |
1617 iface->UpdateCaretPosition(instance, caret); | 1683 iface->UpdateCaretPosition(instance, caret); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1666 iface->Close(udp_socket); | 1732 iface->Close(udp_socket); |
1667 } | 1733 } |
1668 | 1734 |
1669 static int32_t Pnacl_M29_PPB_UDPSocket_SetOption(PP_Resource udp_socket, PP_UDPS
ocket_Option name, struct PP_Var* value, struct PP_CompletionCallback* callback)
{ | 1735 static int32_t Pnacl_M29_PPB_UDPSocket_SetOption(PP_Resource udp_socket, PP_UDPS
ocket_Option name, struct PP_Var* value, struct PP_CompletionCallback* callback)
{ |
1670 const struct PPB_UDPSocket_1_0 *iface = Pnacl_WrapperInfo_PPB_UDPSocket_1_0.re
al_iface; | 1736 const struct PPB_UDPSocket_1_0 *iface = Pnacl_WrapperInfo_PPB_UDPSocket_1_0.re
al_iface; |
1671 return iface->SetOption(udp_socket, name, *value, *callback); | 1737 return iface->SetOption(udp_socket, name, *value, *callback); |
1672 } | 1738 } |
1673 | 1739 |
1674 /* End wrapper methods for PPB_UDPSocket_1_0 */ | 1740 /* End wrapper methods for PPB_UDPSocket_1_0 */ |
1675 | 1741 |
| 1742 /* Begin wrapper methods for PPB_UDPSocket_1_1 */ |
| 1743 |
| 1744 static PP_Resource Pnacl_M41_PPB_UDPSocket_Create(PP_Instance instance) { |
| 1745 const struct PPB_UDPSocket_1_1 *iface = Pnacl_WrapperInfo_PPB_UDPSocket_1_1.re
al_iface; |
| 1746 return iface->Create(instance); |
| 1747 } |
| 1748 |
| 1749 static PP_Bool Pnacl_M41_PPB_UDPSocket_IsUDPSocket(PP_Resource resource) { |
| 1750 const struct PPB_UDPSocket_1_1 *iface = Pnacl_WrapperInfo_PPB_UDPSocket_1_1.re
al_iface; |
| 1751 return iface->IsUDPSocket(resource); |
| 1752 } |
| 1753 |
| 1754 static int32_t Pnacl_M41_PPB_UDPSocket_Bind(PP_Resource udp_socket, PP_Resource
addr, struct PP_CompletionCallback* callback) { |
| 1755 const struct PPB_UDPSocket_1_1 *iface = Pnacl_WrapperInfo_PPB_UDPSocket_1_1.re
al_iface; |
| 1756 return iface->Bind(udp_socket, addr, *callback); |
| 1757 } |
| 1758 |
| 1759 static PP_Resource Pnacl_M41_PPB_UDPSocket_GetBoundAddress(PP_Resource udp_socke
t) { |
| 1760 const struct PPB_UDPSocket_1_1 *iface = Pnacl_WrapperInfo_PPB_UDPSocket_1_1.re
al_iface; |
| 1761 return iface->GetBoundAddress(udp_socket); |
| 1762 } |
| 1763 |
| 1764 static int32_t Pnacl_M41_PPB_UDPSocket_RecvFrom(PP_Resource udp_socket, char* bu
ffer, int32_t num_bytes, PP_Resource* addr, struct PP_CompletionCallback* callba
ck) { |
| 1765 const struct PPB_UDPSocket_1_1 *iface = Pnacl_WrapperInfo_PPB_UDPSocket_1_1.re
al_iface; |
| 1766 return iface->RecvFrom(udp_socket, buffer, num_bytes, addr, *callback); |
| 1767 } |
| 1768 |
| 1769 static int32_t Pnacl_M41_PPB_UDPSocket_SendTo(PP_Resource udp_socket, const char
* buffer, int32_t num_bytes, PP_Resource addr, struct PP_CompletionCallback* cal
lback) { |
| 1770 const struct PPB_UDPSocket_1_1 *iface = Pnacl_WrapperInfo_PPB_UDPSocket_1_1.re
al_iface; |
| 1771 return iface->SendTo(udp_socket, buffer, num_bytes, addr, *callback); |
| 1772 } |
| 1773 |
| 1774 static void Pnacl_M41_PPB_UDPSocket_Close(PP_Resource udp_socket) { |
| 1775 const struct PPB_UDPSocket_1_1 *iface = Pnacl_WrapperInfo_PPB_UDPSocket_1_1.re
al_iface; |
| 1776 iface->Close(udp_socket); |
| 1777 } |
| 1778 |
| 1779 static int32_t Pnacl_M41_PPB_UDPSocket_SetOption(PP_Resource udp_socket, PP_UDPS
ocket_Option name, struct PP_Var* value, struct PP_CompletionCallback* callback)
{ |
| 1780 const struct PPB_UDPSocket_1_1 *iface = Pnacl_WrapperInfo_PPB_UDPSocket_1_1.re
al_iface; |
| 1781 return iface->SetOption(udp_socket, name, *value, *callback); |
| 1782 } |
| 1783 |
| 1784 /* End wrapper methods for PPB_UDPSocket_1_1 */ |
| 1785 |
1676 /* Begin wrapper methods for PPB_URLLoader_1_0 */ | 1786 /* Begin wrapper methods for PPB_URLLoader_1_0 */ |
1677 | 1787 |
1678 static PP_Resource Pnacl_M14_PPB_URLLoader_Create(PP_Instance instance) { | 1788 static PP_Resource Pnacl_M14_PPB_URLLoader_Create(PP_Instance instance) { |
1679 const struct PPB_URLLoader_1_0 *iface = Pnacl_WrapperInfo_PPB_URLLoader_1_0.re
al_iface; | 1789 const struct PPB_URLLoader_1_0 *iface = Pnacl_WrapperInfo_PPB_URLLoader_1_0.re
al_iface; |
1680 return iface->Create(instance); | 1790 return iface->Create(instance); |
1681 } | 1791 } |
1682 | 1792 |
1683 static PP_Bool Pnacl_M14_PPB_URLLoader_IsURLLoader(PP_Resource resource) { | 1793 static PP_Bool Pnacl_M14_PPB_URLLoader_IsURLLoader(PP_Resource resource) { |
1684 const struct PPB_URLLoader_1_0 *iface = Pnacl_WrapperInfo_PPB_URLLoader_1_0.re
al_iface; | 1794 const struct PPB_URLLoader_1_0 *iface = Pnacl_WrapperInfo_PPB_URLLoader_1_0.re
al_iface; |
1685 return iface->IsURLLoader(resource); | 1795 return iface->IsURLLoader(resource); |
(...skipping 3258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4944 .GetLocalAddress = (PP_Resource (*)(PP_Resource tcp_socket))&Pnacl_M31_PPB_T
CPSocket_GetLocalAddress, | 5054 .GetLocalAddress = (PP_Resource (*)(PP_Resource tcp_socket))&Pnacl_M31_PPB_T
CPSocket_GetLocalAddress, |
4945 .GetRemoteAddress = (PP_Resource (*)(PP_Resource tcp_socket))&Pnacl_M31_PPB_
TCPSocket_GetRemoteAddress, | 5055 .GetRemoteAddress = (PP_Resource (*)(PP_Resource tcp_socket))&Pnacl_M31_PPB_
TCPSocket_GetRemoteAddress, |
4946 .Read = (int32_t (*)(PP_Resource tcp_socket, char* buffer, int32_t bytes_to_
read, struct PP_CompletionCallback callback))&Pnacl_M31_PPB_TCPSocket_Read, | 5056 .Read = (int32_t (*)(PP_Resource tcp_socket, char* buffer, int32_t bytes_to_
read, struct PP_CompletionCallback callback))&Pnacl_M31_PPB_TCPSocket_Read, |
4947 .Write = (int32_t (*)(PP_Resource tcp_socket, const char* buffer, int32_t by
tes_to_write, struct PP_CompletionCallback callback))&Pnacl_M31_PPB_TCPSocket_Wr
ite, | 5057 .Write = (int32_t (*)(PP_Resource tcp_socket, const char* buffer, int32_t by
tes_to_write, struct PP_CompletionCallback callback))&Pnacl_M31_PPB_TCPSocket_Wr
ite, |
4948 .Listen = (int32_t (*)(PP_Resource tcp_socket, int32_t backlog, struct PP_Co
mpletionCallback callback))&Pnacl_M31_PPB_TCPSocket_Listen, | 5058 .Listen = (int32_t (*)(PP_Resource tcp_socket, int32_t backlog, struct PP_Co
mpletionCallback callback))&Pnacl_M31_PPB_TCPSocket_Listen, |
4949 .Accept = (int32_t (*)(PP_Resource tcp_socket, PP_Resource* accepted_tcp_soc
ket, struct PP_CompletionCallback callback))&Pnacl_M31_PPB_TCPSocket_Accept, | 5059 .Accept = (int32_t (*)(PP_Resource tcp_socket, PP_Resource* accepted_tcp_soc
ket, struct PP_CompletionCallback callback))&Pnacl_M31_PPB_TCPSocket_Accept, |
4950 .Close = (void (*)(PP_Resource tcp_socket))&Pnacl_M31_PPB_TCPSocket_Close, | 5060 .Close = (void (*)(PP_Resource tcp_socket))&Pnacl_M31_PPB_TCPSocket_Close, |
4951 .SetOption = (int32_t (*)(PP_Resource tcp_socket, PP_TCPSocket_Option name,
struct PP_Var value, struct PP_CompletionCallback callback))&Pnacl_M31_PPB_TCPSo
cket_SetOption | 5061 .SetOption = (int32_t (*)(PP_Resource tcp_socket, PP_TCPSocket_Option name,
struct PP_Var value, struct PP_CompletionCallback callback))&Pnacl_M31_PPB_TCPSo
cket_SetOption |
4952 }; | 5062 }; |
4953 | 5063 |
| 5064 static const struct PPB_TCPSocket_1_2 Pnacl_Wrappers_PPB_TCPSocket_1_2 = { |
| 5065 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M41_PPB_TCPSocket_Cr
eate, |
| 5066 .IsTCPSocket = (PP_Bool (*)(PP_Resource resource))&Pnacl_M41_PPB_TCPSocket_I
sTCPSocket, |
| 5067 .Bind = (int32_t (*)(PP_Resource tcp_socket, PP_Resource addr, struct PP_Com
pletionCallback callback))&Pnacl_M41_PPB_TCPSocket_Bind, |
| 5068 .Connect = (int32_t (*)(PP_Resource tcp_socket, PP_Resource addr, struct PP_
CompletionCallback callback))&Pnacl_M41_PPB_TCPSocket_Connect, |
| 5069 .GetLocalAddress = (PP_Resource (*)(PP_Resource tcp_socket))&Pnacl_M41_PPB_T
CPSocket_GetLocalAddress, |
| 5070 .GetRemoteAddress = (PP_Resource (*)(PP_Resource tcp_socket))&Pnacl_M41_PPB_
TCPSocket_GetRemoteAddress, |
| 5071 .Read = (int32_t (*)(PP_Resource tcp_socket, char* buffer, int32_t bytes_to_
read, struct PP_CompletionCallback callback))&Pnacl_M41_PPB_TCPSocket_Read, |
| 5072 .Write = (int32_t (*)(PP_Resource tcp_socket, const char* buffer, int32_t by
tes_to_write, struct PP_CompletionCallback callback))&Pnacl_M41_PPB_TCPSocket_Wr
ite, |
| 5073 .Listen = (int32_t (*)(PP_Resource tcp_socket, int32_t backlog, struct PP_Co
mpletionCallback callback))&Pnacl_M41_PPB_TCPSocket_Listen, |
| 5074 .Accept = (int32_t (*)(PP_Resource tcp_socket, PP_Resource* accepted_tcp_soc
ket, struct PP_CompletionCallback callback))&Pnacl_M41_PPB_TCPSocket_Accept, |
| 5075 .Close = (void (*)(PP_Resource tcp_socket))&Pnacl_M41_PPB_TCPSocket_Close, |
| 5076 .SetOption = (int32_t (*)(PP_Resource tcp_socket, PP_TCPSocket_Option name,
struct PP_Var value, struct PP_CompletionCallback callback))&Pnacl_M41_PPB_TCPSo
cket_SetOption |
| 5077 }; |
| 5078 |
4954 static const struct PPB_TextInputController_1_0 Pnacl_Wrappers_PPB_TextInputCont
roller_1_0 = { | 5079 static const struct PPB_TextInputController_1_0 Pnacl_Wrappers_PPB_TextInputCont
roller_1_0 = { |
4955 .SetTextInputType = (void (*)(PP_Instance instance, PP_TextInput_Type type))
&Pnacl_M30_PPB_TextInputController_SetTextInputType, | 5080 .SetTextInputType = (void (*)(PP_Instance instance, PP_TextInput_Type type))
&Pnacl_M30_PPB_TextInputController_SetTextInputType, |
4956 .UpdateCaretPosition = (void (*)(PP_Instance instance, const struct PP_Rect*
caret))&Pnacl_M30_PPB_TextInputController_UpdateCaretPosition, | 5081 .UpdateCaretPosition = (void (*)(PP_Instance instance, const struct PP_Rect*
caret))&Pnacl_M30_PPB_TextInputController_UpdateCaretPosition, |
4957 .CancelCompositionText = (void (*)(PP_Instance instance))&Pnacl_M30_PPB_Text
InputController_CancelCompositionText, | 5082 .CancelCompositionText = (void (*)(PP_Instance instance))&Pnacl_M30_PPB_Text
InputController_CancelCompositionText, |
4958 .UpdateSurroundingText = (void (*)(PP_Instance instance, struct PP_Var text,
uint32_t caret, uint32_t anchor))&Pnacl_M30_PPB_TextInputController_UpdateSurro
undingText | 5083 .UpdateSurroundingText = (void (*)(PP_Instance instance, struct PP_Var text,
uint32_t caret, uint32_t anchor))&Pnacl_M30_PPB_TextInputController_UpdateSurro
undingText |
4959 }; | 5084 }; |
4960 | 5085 |
4961 static const struct PPB_UDPSocket_1_0 Pnacl_Wrappers_PPB_UDPSocket_1_0 = { | 5086 static const struct PPB_UDPSocket_1_0 Pnacl_Wrappers_PPB_UDPSocket_1_0 = { |
4962 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M29_PPB_UDPSocket_Cr
eate, | 5087 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M29_PPB_UDPSocket_Cr
eate, |
4963 .IsUDPSocket = (PP_Bool (*)(PP_Resource resource))&Pnacl_M29_PPB_UDPSocket_I
sUDPSocket, | 5088 .IsUDPSocket = (PP_Bool (*)(PP_Resource resource))&Pnacl_M29_PPB_UDPSocket_I
sUDPSocket, |
4964 .Bind = (int32_t (*)(PP_Resource udp_socket, PP_Resource addr, struct PP_Com
pletionCallback callback))&Pnacl_M29_PPB_UDPSocket_Bind, | 5089 .Bind = (int32_t (*)(PP_Resource udp_socket, PP_Resource addr, struct PP_Com
pletionCallback callback))&Pnacl_M29_PPB_UDPSocket_Bind, |
4965 .GetBoundAddress = (PP_Resource (*)(PP_Resource udp_socket))&Pnacl_M29_PPB_U
DPSocket_GetBoundAddress, | 5090 .GetBoundAddress = (PP_Resource (*)(PP_Resource udp_socket))&Pnacl_M29_PPB_U
DPSocket_GetBoundAddress, |
4966 .RecvFrom = (int32_t (*)(PP_Resource udp_socket, char* buffer, int32_t num_b
ytes, PP_Resource* addr, struct PP_CompletionCallback callback))&Pnacl_M29_PPB_U
DPSocket_RecvFrom, | 5091 .RecvFrom = (int32_t (*)(PP_Resource udp_socket, char* buffer, int32_t num_b
ytes, PP_Resource* addr, struct PP_CompletionCallback callback))&Pnacl_M29_PPB_U
DPSocket_RecvFrom, |
4967 .SendTo = (int32_t (*)(PP_Resource udp_socket, const char* buffer, int32_t n
um_bytes, PP_Resource addr, struct PP_CompletionCallback callback))&Pnacl_M29_PP
B_UDPSocket_SendTo, | 5092 .SendTo = (int32_t (*)(PP_Resource udp_socket, const char* buffer, int32_t n
um_bytes, PP_Resource addr, struct PP_CompletionCallback callback))&Pnacl_M29_PP
B_UDPSocket_SendTo, |
4968 .Close = (void (*)(PP_Resource udp_socket))&Pnacl_M29_PPB_UDPSocket_Close, | 5093 .Close = (void (*)(PP_Resource udp_socket))&Pnacl_M29_PPB_UDPSocket_Close, |
4969 .SetOption = (int32_t (*)(PP_Resource udp_socket, PP_UDPSocket_Option name,
struct PP_Var value, struct PP_CompletionCallback callback))&Pnacl_M29_PPB_UDPSo
cket_SetOption | 5094 .SetOption = (int32_t (*)(PP_Resource udp_socket, PP_UDPSocket_Option name,
struct PP_Var value, struct PP_CompletionCallback callback))&Pnacl_M29_PPB_UDPSo
cket_SetOption |
4970 }; | 5095 }; |
4971 | 5096 |
| 5097 static const struct PPB_UDPSocket_1_1 Pnacl_Wrappers_PPB_UDPSocket_1_1 = { |
| 5098 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M41_PPB_UDPSocket_Cr
eate, |
| 5099 .IsUDPSocket = (PP_Bool (*)(PP_Resource resource))&Pnacl_M41_PPB_UDPSocket_I
sUDPSocket, |
| 5100 .Bind = (int32_t (*)(PP_Resource udp_socket, PP_Resource addr, struct PP_Com
pletionCallback callback))&Pnacl_M41_PPB_UDPSocket_Bind, |
| 5101 .GetBoundAddress = (PP_Resource (*)(PP_Resource udp_socket))&Pnacl_M41_PPB_U
DPSocket_GetBoundAddress, |
| 5102 .RecvFrom = (int32_t (*)(PP_Resource udp_socket, char* buffer, int32_t num_b
ytes, PP_Resource* addr, struct PP_CompletionCallback callback))&Pnacl_M41_PPB_U
DPSocket_RecvFrom, |
| 5103 .SendTo = (int32_t (*)(PP_Resource udp_socket, const char* buffer, int32_t n
um_bytes, PP_Resource addr, struct PP_CompletionCallback callback))&Pnacl_M41_PP
B_UDPSocket_SendTo, |
| 5104 .Close = (void (*)(PP_Resource udp_socket))&Pnacl_M41_PPB_UDPSocket_Close, |
| 5105 .SetOption = (int32_t (*)(PP_Resource udp_socket, PP_UDPSocket_Option name,
struct PP_Var value, struct PP_CompletionCallback callback))&Pnacl_M41_PPB_UDPSo
cket_SetOption |
| 5106 }; |
| 5107 |
4972 static const struct PPB_URLLoader_1_0 Pnacl_Wrappers_PPB_URLLoader_1_0 = { | 5108 static const struct PPB_URLLoader_1_0 Pnacl_Wrappers_PPB_URLLoader_1_0 = { |
4973 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M14_PPB_URLLoader_Cr
eate, | 5109 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M14_PPB_URLLoader_Cr
eate, |
4974 .IsURLLoader = (PP_Bool (*)(PP_Resource resource))&Pnacl_M14_PPB_URLLoader_I
sURLLoader, | 5110 .IsURLLoader = (PP_Bool (*)(PP_Resource resource))&Pnacl_M14_PPB_URLLoader_I
sURLLoader, |
4975 .Open = (int32_t (*)(PP_Resource loader, PP_Resource request_info, struct PP
_CompletionCallback callback))&Pnacl_M14_PPB_URLLoader_Open, | 5111 .Open = (int32_t (*)(PP_Resource loader, PP_Resource request_info, struct PP
_CompletionCallback callback))&Pnacl_M14_PPB_URLLoader_Open, |
4976 .FollowRedirect = (int32_t (*)(PP_Resource loader, struct PP_CompletionCallb
ack callback))&Pnacl_M14_PPB_URLLoader_FollowRedirect, | 5112 .FollowRedirect = (int32_t (*)(PP_Resource loader, struct PP_CompletionCallb
ack callback))&Pnacl_M14_PPB_URLLoader_FollowRedirect, |
4977 .GetUploadProgress = (PP_Bool (*)(PP_Resource loader, int64_t* bytes_sent, i
nt64_t* total_bytes_to_be_sent))&Pnacl_M14_PPB_URLLoader_GetUploadProgress, | 5113 .GetUploadProgress = (PP_Bool (*)(PP_Resource loader, int64_t* bytes_sent, i
nt64_t* total_bytes_to_be_sent))&Pnacl_M14_PPB_URLLoader_GetUploadProgress, |
4978 .GetDownloadProgress = (PP_Bool (*)(PP_Resource loader, int64_t* bytes_recei
ved, int64_t* total_bytes_to_be_received))&Pnacl_M14_PPB_URLLoader_GetDownloadPr
ogress, | 5114 .GetDownloadProgress = (PP_Bool (*)(PP_Resource loader, int64_t* bytes_recei
ved, int64_t* total_bytes_to_be_received))&Pnacl_M14_PPB_URLLoader_GetDownloadPr
ogress, |
4979 .GetResponseInfo = (PP_Resource (*)(PP_Resource loader))&Pnacl_M14_PPB_URLLo
ader_GetResponseInfo, | 5115 .GetResponseInfo = (PP_Resource (*)(PP_Resource loader))&Pnacl_M14_PPB_URLLo
ader_GetResponseInfo, |
4980 .ReadResponseBody = (int32_t (*)(PP_Resource loader, void* buffer, int32_t b
ytes_to_read, struct PP_CompletionCallback callback))&Pnacl_M14_PPB_URLLoader_Re
adResponseBody, | 5116 .ReadResponseBody = (int32_t (*)(PP_Resource loader, void* buffer, int32_t b
ytes_to_read, struct PP_CompletionCallback callback))&Pnacl_M14_PPB_URLLoader_Re
adResponseBody, |
4981 .FinishStreamingToFile = (int32_t (*)(PP_Resource loader, struct PP_Completi
onCallback callback))&Pnacl_M14_PPB_URLLoader_FinishStreamingToFile, | 5117 .FinishStreamingToFile = (int32_t (*)(PP_Resource loader, struct PP_Completi
onCallback callback))&Pnacl_M14_PPB_URLLoader_FinishStreamingToFile, |
(...skipping 1011 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5993 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_TCPSocket_1_0, | 6129 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_TCPSocket_1_0, |
5994 .real_iface = NULL | 6130 .real_iface = NULL |
5995 }; | 6131 }; |
5996 | 6132 |
5997 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_1_1 = { | 6133 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_1_1 = { |
5998 .iface_macro = PPB_TCPSOCKET_INTERFACE_1_1, | 6134 .iface_macro = PPB_TCPSOCKET_INTERFACE_1_1, |
5999 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_TCPSocket_1_1, | 6135 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_TCPSocket_1_1, |
6000 .real_iface = NULL | 6136 .real_iface = NULL |
6001 }; | 6137 }; |
6002 | 6138 |
| 6139 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_1_2 = { |
| 6140 .iface_macro = PPB_TCPSOCKET_INTERFACE_1_2, |
| 6141 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_TCPSocket_1_2, |
| 6142 .real_iface = NULL |
| 6143 }; |
| 6144 |
6003 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TextInputController_1_0 =
{ | 6145 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TextInputController_1_0 =
{ |
6004 .iface_macro = PPB_TEXTINPUTCONTROLLER_INTERFACE_1_0, | 6146 .iface_macro = PPB_TEXTINPUTCONTROLLER_INTERFACE_1_0, |
6005 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_TextInputController_1_0, | 6147 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_TextInputController_1_0, |
6006 .real_iface = NULL | 6148 .real_iface = NULL |
6007 }; | 6149 }; |
6008 | 6150 |
6009 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_1_0 = { | 6151 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_1_0 = { |
6010 .iface_macro = PPB_UDPSOCKET_INTERFACE_1_0, | 6152 .iface_macro = PPB_UDPSOCKET_INTERFACE_1_0, |
6011 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_UDPSocket_1_0, | 6153 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_UDPSocket_1_0, |
6012 .real_iface = NULL | 6154 .real_iface = NULL |
6013 }; | 6155 }; |
6014 | 6156 |
| 6157 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_1_1 = { |
| 6158 .iface_macro = PPB_UDPSOCKET_INTERFACE_1_1, |
| 6159 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_UDPSocket_1_1, |
| 6160 .real_iface = NULL |
| 6161 }; |
| 6162 |
6015 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLLoader_1_0 = { | 6163 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLLoader_1_0 = { |
6016 .iface_macro = PPB_URLLOADER_INTERFACE_1_0, | 6164 .iface_macro = PPB_URLLOADER_INTERFACE_1_0, |
6017 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_URLLoader_1_0, | 6165 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_URLLoader_1_0, |
6018 .real_iface = NULL | 6166 .real_iface = NULL |
6019 }; | 6167 }; |
6020 | 6168 |
6021 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLRequestInfo_1_0 = { | 6169 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLRequestInfo_1_0 = { |
6022 .iface_macro = PPB_URLREQUESTINFO_INTERFACE_1_0, | 6170 .iface_macro = PPB_URLREQUESTINFO_INTERFACE_1_0, |
6023 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_URLRequestInfo_1_0, | 6171 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_URLRequestInfo_1_0, |
6024 .real_iface = NULL | 6172 .real_iface = NULL |
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6474 &Pnacl_WrapperInfo_PPB_MessageLoop_1_0, | 6622 &Pnacl_WrapperInfo_PPB_MessageLoop_1_0, |
6475 &Pnacl_WrapperInfo_PPB_Messaging_1_0, | 6623 &Pnacl_WrapperInfo_PPB_Messaging_1_0, |
6476 &Pnacl_WrapperInfo_PPB_Messaging_1_2, | 6624 &Pnacl_WrapperInfo_PPB_Messaging_1_2, |
6477 &Pnacl_WrapperInfo_PPB_MouseLock_1_0, | 6625 &Pnacl_WrapperInfo_PPB_MouseLock_1_0, |
6478 &Pnacl_WrapperInfo_PPB_NetAddress_1_0, | 6626 &Pnacl_WrapperInfo_PPB_NetAddress_1_0, |
6479 &Pnacl_WrapperInfo_PPB_NetworkList_1_0, | 6627 &Pnacl_WrapperInfo_PPB_NetworkList_1_0, |
6480 &Pnacl_WrapperInfo_PPB_NetworkMonitor_1_0, | 6628 &Pnacl_WrapperInfo_PPB_NetworkMonitor_1_0, |
6481 &Pnacl_WrapperInfo_PPB_NetworkProxy_1_0, | 6629 &Pnacl_WrapperInfo_PPB_NetworkProxy_1_0, |
6482 &Pnacl_WrapperInfo_PPB_TCPSocket_1_0, | 6630 &Pnacl_WrapperInfo_PPB_TCPSocket_1_0, |
6483 &Pnacl_WrapperInfo_PPB_TCPSocket_1_1, | 6631 &Pnacl_WrapperInfo_PPB_TCPSocket_1_1, |
| 6632 &Pnacl_WrapperInfo_PPB_TCPSocket_1_2, |
6484 &Pnacl_WrapperInfo_PPB_TextInputController_1_0, | 6633 &Pnacl_WrapperInfo_PPB_TextInputController_1_0, |
6485 &Pnacl_WrapperInfo_PPB_UDPSocket_1_0, | 6634 &Pnacl_WrapperInfo_PPB_UDPSocket_1_0, |
| 6635 &Pnacl_WrapperInfo_PPB_UDPSocket_1_1, |
6486 &Pnacl_WrapperInfo_PPB_URLLoader_1_0, | 6636 &Pnacl_WrapperInfo_PPB_URLLoader_1_0, |
6487 &Pnacl_WrapperInfo_PPB_URLRequestInfo_1_0, | 6637 &Pnacl_WrapperInfo_PPB_URLRequestInfo_1_0, |
6488 &Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0, | 6638 &Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0, |
6489 &Pnacl_WrapperInfo_PPB_Var_1_0, | 6639 &Pnacl_WrapperInfo_PPB_Var_1_0, |
6490 &Pnacl_WrapperInfo_PPB_Var_1_1, | 6640 &Pnacl_WrapperInfo_PPB_Var_1_1, |
6491 &Pnacl_WrapperInfo_PPB_Var_1_2, | 6641 &Pnacl_WrapperInfo_PPB_Var_1_2, |
6492 &Pnacl_WrapperInfo_PPB_VarArray_1_0, | 6642 &Pnacl_WrapperInfo_PPB_VarArray_1_0, |
6493 &Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0, | 6643 &Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0, |
6494 &Pnacl_WrapperInfo_PPB_VarDictionary_1_0, | 6644 &Pnacl_WrapperInfo_PPB_VarDictionary_1_0, |
6495 &Pnacl_WrapperInfo_PPB_VideoDecoder_0_1, | 6645 &Pnacl_WrapperInfo_PPB_VideoDecoder_0_1, |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6623 | 6773 |
6624 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ | 6774 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ |
6625 if (wrapper->real_iface == NULL) { | 6775 if (wrapper->real_iface == NULL) { |
6626 const void *iface = (*__real_PPPGetInterface)(name); | 6776 const void *iface = (*__real_PPPGetInterface)(name); |
6627 if (NULL == iface) return NULL; | 6777 if (NULL == iface) return NULL; |
6628 wrapper->real_iface = iface; | 6778 wrapper->real_iface = iface; |
6629 } | 6779 } |
6630 | 6780 |
6631 return wrapper->wrapped_iface; | 6781 return wrapper->wrapped_iface; |
6632 } | 6782 } |
OLD | NEW |