OLD | NEW |
1 // Copyright (c) 2010 The Native Client Authors. All rights reserved. | 1 // Copyright (c) 2010 The Native Client 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 // WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING | 5 // WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING |
6 // | 6 // |
7 // Automatically generated code. See srpcgen.py | 7 // Automatically generated code. See srpcgen.py |
8 // | 8 // |
9 // NaCl Simple Remote Procedure Call interface abstractions. | 9 // NaCl Simple Remote Procedure Call interface abstractions. |
10 | 10 |
11 #ifndef GEN_PPAPI_PROXY_PPP_RPC_H_ | 11 #ifndef GEN_PPAPI_PROXY_PPP_RPC_H_ |
12 #define GEN_PPAPI_PROXY_PPP_RPC_H_ | 12 #define GEN_PPAPI_PROXY_PPP_RPC_H_ |
13 #ifndef __native_client__ | 13 #ifndef __native_client__ |
14 #include "native_client/src/include/portability.h" | 14 #include "native_client/src/include/portability.h" |
15 #endif // __native_client__ | 15 #endif // __native_client__ |
16 #include "native_client/src/shared/srpc/nacl_srpc.h" | 16 #include "native_client/src/shared/srpc/nacl_srpc.h" |
| 17 #include "ppapi/c/pp_instance.h" |
| 18 #include "ppapi/c/pp_module.h" |
| 19 #include "ppapi/c/pp_resource.h" |
17 class ObjectStubRpcServer { | 20 class ObjectStubRpcServer { |
18 public: | 21 public: |
19 static void HasProperty( | 22 static void HasProperty( |
20 NaClSrpcRpc* rpc, | 23 NaClSrpcRpc* rpc, |
21 NaClSrpcClosure* done, | 24 NaClSrpcClosure* done, |
22 nacl_abi_size_t capability_bytes, char* capability, | 25 nacl_abi_size_t capability_bytes, char* capability, |
23 nacl_abi_size_t name_bytes, char* name, | 26 nacl_abi_size_t name_bytes, char* name, |
24 nacl_abi_size_t exception_in_bytes, char* exception_in, | 27 nacl_abi_size_t exception_in_bytes, char* exception_in, |
25 int32_t* success, | 28 int32_t* success, |
26 nacl_abi_size_t* exception_bytes, char* exception); | 29 nacl_abi_size_t* exception_bytes, char* exception); |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 CompletionCallbackRpcServer(const CompletionCallbackRpcServer&); | 109 CompletionCallbackRpcServer(const CompletionCallbackRpcServer&); |
107 void operator=(const CompletionCallbackRpcServer); | 110 void operator=(const CompletionCallbackRpcServer); |
108 }; // class CompletionCallbackRpcServer | 111 }; // class CompletionCallbackRpcServer |
109 | 112 |
110 class PppRpcServer { | 113 class PppRpcServer { |
111 public: | 114 public: |
112 static void PPP_InitializeModule( | 115 static void PPP_InitializeModule( |
113 NaClSrpcRpc* rpc, | 116 NaClSrpcRpc* rpc, |
114 NaClSrpcClosure* done, | 117 NaClSrpcClosure* done, |
115 int32_t pid, | 118 int32_t pid, |
116 int64_t module, | 119 PP_Module module, |
117 NaClSrpcImcDescType upcall_channel_desc, | 120 NaClSrpcImcDescType upcall_channel_desc, |
118 char* service_description, | 121 char* service_description, |
119 int32_t* nacl_pid, | 122 int32_t* nacl_pid, |
120 int32_t* success); | 123 int32_t* success); |
121 static void PPP_ShutdownModule( | 124 static void PPP_ShutdownModule( |
122 NaClSrpcRpc* rpc, | 125 NaClSrpcRpc* rpc, |
123 NaClSrpcClosure* done); | 126 NaClSrpcClosure* done); |
124 static void PPP_GetInterface( | 127 static void PPP_GetInterface( |
125 NaClSrpcRpc* rpc, | 128 NaClSrpcRpc* rpc, |
126 NaClSrpcClosure* done, | 129 NaClSrpcClosure* done, |
127 char* interface_name, | 130 char* interface_name, |
128 int32_t* exports_interface_name); | 131 int32_t* exports_interface_name); |
129 | 132 |
130 private: | 133 private: |
131 PppRpcServer(); | 134 PppRpcServer(); |
132 PppRpcServer(const PppRpcServer&); | 135 PppRpcServer(const PppRpcServer&); |
133 void operator=(const PppRpcServer); | 136 void operator=(const PppRpcServer); |
134 }; // class PppRpcServer | 137 }; // class PppRpcServer |
135 | 138 |
136 class PppAudioDevRpcServer { | 139 class PppAudioDevRpcServer { |
137 public: | 140 public: |
138 static void PPP_Audio_Dev_StreamCreated( | 141 static void PPP_Audio_Dev_StreamCreated( |
139 NaClSrpcRpc* rpc, | 142 NaClSrpcRpc* rpc, |
140 NaClSrpcClosure* done, | 143 NaClSrpcClosure* done, |
141 int64_t instance, | 144 PP_Instance instance, |
142 NaClSrpcImcDescType out_shm, | 145 NaClSrpcImcDescType out_shm, |
143 int32_t out_shm_size, | 146 int32_t out_shm_size, |
144 NaClSrpcImcDescType out_socket); | 147 NaClSrpcImcDescType out_socket); |
145 | 148 |
146 private: | 149 private: |
147 PppAudioDevRpcServer(); | 150 PppAudioDevRpcServer(); |
148 PppAudioDevRpcServer(const PppAudioDevRpcServer&); | 151 PppAudioDevRpcServer(const PppAudioDevRpcServer&); |
149 void operator=(const PppAudioDevRpcServer); | 152 void operator=(const PppAudioDevRpcServer); |
150 }; // class PppAudioDevRpcServer | 153 }; // class PppAudioDevRpcServer |
151 | 154 |
152 class PppInstanceRpcServer { | 155 class PppInstanceRpcServer { |
153 public: | 156 public: |
154 static void PPP_Instance_DidCreate( | 157 static void PPP_Instance_DidCreate( |
155 NaClSrpcRpc* rpc, | 158 NaClSrpcRpc* rpc, |
156 NaClSrpcClosure* done, | 159 NaClSrpcClosure* done, |
157 int64_t instance, | 160 PP_Instance instance, |
158 int32_t argc, | 161 int32_t argc, |
159 nacl_abi_size_t argn_bytes, char* argn, | 162 nacl_abi_size_t argn_bytes, char* argn, |
160 nacl_abi_size_t argv_bytes, char* argv, | 163 nacl_abi_size_t argv_bytes, char* argv, |
161 int32_t* success); | 164 int32_t* success); |
162 static void PPP_Instance_DidDestroy( | 165 static void PPP_Instance_DidDestroy( |
163 NaClSrpcRpc* rpc, | 166 NaClSrpcRpc* rpc, |
164 NaClSrpcClosure* done, | 167 NaClSrpcClosure* done, |
165 int64_t instance); | 168 PP_Instance instance); |
166 static void PPP_Instance_DidChangeView( | 169 static void PPP_Instance_DidChangeView( |
167 NaClSrpcRpc* rpc, | 170 NaClSrpcRpc* rpc, |
168 NaClSrpcClosure* done, | 171 NaClSrpcClosure* done, |
169 int64_t instance, | 172 PP_Instance instance, |
170 nacl_abi_size_t position_bytes, int32_t* position, | 173 nacl_abi_size_t position_bytes, int32_t* position, |
171 nacl_abi_size_t clip_bytes, int32_t* clip); | 174 nacl_abi_size_t clip_bytes, int32_t* clip); |
172 static void PPP_Instance_DidChangeFocus( | 175 static void PPP_Instance_DidChangeFocus( |
173 NaClSrpcRpc* rpc, | 176 NaClSrpcRpc* rpc, |
174 NaClSrpcClosure* done, | 177 NaClSrpcClosure* done, |
175 int64_t instance, | 178 PP_Instance instance, |
176 bool has_focus); | 179 bool has_focus); |
177 static void PPP_Instance_HandleInputEvent( | 180 static void PPP_Instance_HandleInputEvent( |
178 NaClSrpcRpc* rpc, | 181 NaClSrpcRpc* rpc, |
179 NaClSrpcClosure* done, | 182 NaClSrpcClosure* done, |
180 int64_t instance, | 183 PP_Instance instance, |
181 nacl_abi_size_t event_data_bytes, char* event_data, | 184 nacl_abi_size_t event_data_bytes, char* event_data, |
182 int32_t* success); | 185 int32_t* success); |
183 static void PPP_Instance_HandleDocumentLoad( | 186 static void PPP_Instance_HandleDocumentLoad( |
184 NaClSrpcRpc* rpc, | 187 NaClSrpcRpc* rpc, |
185 NaClSrpcClosure* done, | 188 NaClSrpcClosure* done, |
186 int64_t instance, | 189 PP_Instance instance, |
187 int64_t url_loader, | 190 PP_Resource url_loader, |
188 int32_t* success); | 191 int32_t* success); |
189 static void PPP_Instance_GetInstanceObject( | 192 static void PPP_Instance_GetInstanceObject( |
190 NaClSrpcRpc* rpc, | 193 NaClSrpcRpc* rpc, |
191 NaClSrpcClosure* done, | 194 NaClSrpcClosure* done, |
192 int64_t instance, | 195 PP_Instance instance, |
193 nacl_abi_size_t* capability_bytes, char* capability); | 196 nacl_abi_size_t* capability_bytes, char* capability); |
194 | 197 |
195 private: | 198 private: |
196 PppInstanceRpcServer(); | 199 PppInstanceRpcServer(); |
197 PppInstanceRpcServer(const PppInstanceRpcServer&); | 200 PppInstanceRpcServer(const PppInstanceRpcServer&); |
198 void operator=(const PppInstanceRpcServer); | 201 void operator=(const PppInstanceRpcServer); |
199 }; // class PppInstanceRpcServer | 202 }; // class PppInstanceRpcServer |
200 | 203 |
201 class PppRpcs { | 204 class PppRpcs { |
202 public: | 205 public: |
203 static NaClSrpcHandlerDesc srpc_methods[]; | 206 static NaClSrpcHandlerDesc srpc_methods[]; |
204 }; // class PppRpcs | 207 }; // class PppRpcs |
205 | 208 |
206 #endif // GEN_PPAPI_PROXY_PPP_RPC_H_ | 209 #endif // GEN_PPAPI_PROXY_PPP_RPC_H_ |
207 | 210 |
OLD | NEW |