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 #include "trusted/srpcgen/ppp_rpc.h" | 11 #include "trusted/srpcgen/ppp_rpc.h" |
12 #ifdef __native_client__ | 12 #ifdef __native_client__ |
13 #ifndef UNREFERENCED_PARAMETER | 13 #ifndef UNREFERENCED_PARAMETER |
14 #define UNREFERENCED_PARAMETER(P) do { (void) P; } while (0) | 14 #define UNREFERENCED_PARAMETER(P) do { (void) P; } while (0) |
15 #endif // UNREFERENCED_PARAMETER | 15 #endif // UNREFERENCED_PARAMETER |
16 #else | 16 #else |
17 #include "native_client/src/include/portability.h" | 17 #include "native_client/src/include/portability.h" |
18 #endif // __native_client__ | 18 #endif // __native_client__ |
19 #include "native_client/src/shared/srpc/nacl_srpc.h" | 19 #include "native_client/src/shared/srpc/nacl_srpc.h" |
| 20 #include "ppapi/c/pp_instance.h" |
| 21 #include "ppapi/c/pp_module.h" |
| 22 #include "ppapi/c/pp_resource.h" |
20 | 23 |
21 NaClSrpcError ObjectStubRpcClient::HasProperty( | 24 NaClSrpcError ObjectStubRpcClient::HasProperty( |
22 NaClSrpcChannel* channel, | 25 NaClSrpcChannel* channel, |
23 nacl_abi_size_t capability_bytes, char* capability, | 26 nacl_abi_size_t capability_bytes, char* capability, |
24 nacl_abi_size_t name_bytes, char* name, | 27 nacl_abi_size_t name_bytes, char* name, |
25 nacl_abi_size_t exception_in_bytes, char* exception_in, | 28 nacl_abi_size_t exception_in_bytes, char* exception_in, |
26 int32_t* success, | 29 int32_t* success, |
27 nacl_abi_size_t* exception_bytes, char* exception) { | 30 nacl_abi_size_t* exception_bytes, char* exception) { |
28 NaClSrpcError retval; | 31 NaClSrpcError retval; |
29 retval = NaClSrpcInvokeBySignature( | 32 retval = NaClSrpcInvokeBySignature( |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 "InvokeCompletionCallback:ii:", | 207 "InvokeCompletionCallback:ii:", |
205 callback_id, | 208 callback_id, |
206 result | 209 result |
207 ); | 210 ); |
208 return retval; | 211 return retval; |
209 } | 212 } |
210 | 213 |
211 NaClSrpcError PppRpcClient::PPP_InitializeModule( | 214 NaClSrpcError PppRpcClient::PPP_InitializeModule( |
212 NaClSrpcChannel* channel, | 215 NaClSrpcChannel* channel, |
213 int32_t pid, | 216 int32_t pid, |
214 int64_t module, | 217 PP_Module module, |
215 NaClSrpcImcDescType upcall_channel_desc, | 218 NaClSrpcImcDescType upcall_channel_desc, |
216 char* service_description, | 219 char* service_description, |
217 int32_t* nacl_pid, | 220 int32_t* nacl_pid, |
218 int32_t* success) { | 221 int32_t* success) { |
219 NaClSrpcError retval; | 222 NaClSrpcError retval; |
220 retval = NaClSrpcInvokeBySignature( | 223 retval = NaClSrpcInvokeBySignature( |
221 channel, | 224 channel, |
222 "PPP_InitializeModule:ilhs:ii", | 225 "PPP_InitializeModule:ilhs:ii", |
223 pid, | 226 pid, |
224 module, | 227 module, |
(...skipping 24 matching lines...) Expand all Loading... |
249 channel, | 252 channel, |
250 "PPP_GetInterface:s:i", | 253 "PPP_GetInterface:s:i", |
251 interface_name, | 254 interface_name, |
252 exports_interface_name | 255 exports_interface_name |
253 ); | 256 ); |
254 return retval; | 257 return retval; |
255 } | 258 } |
256 | 259 |
257 NaClSrpcError PppAudioDevRpcClient::PPP_Audio_Dev_StreamCreated( | 260 NaClSrpcError PppAudioDevRpcClient::PPP_Audio_Dev_StreamCreated( |
258 NaClSrpcChannel* channel, | 261 NaClSrpcChannel* channel, |
259 int64_t instance, | 262 PP_Instance instance, |
260 NaClSrpcImcDescType out_shm, | 263 NaClSrpcImcDescType out_shm, |
261 int32_t out_shm_size, | 264 int32_t out_shm_size, |
262 NaClSrpcImcDescType out_socket) { | 265 NaClSrpcImcDescType out_socket) { |
263 NaClSrpcError retval; | 266 NaClSrpcError retval; |
264 retval = NaClSrpcInvokeBySignature( | 267 retval = NaClSrpcInvokeBySignature( |
265 channel, | 268 channel, |
266 "PPP_Audio_Dev_StreamCreated:lhih:", | 269 "PPP_Audio_Dev_StreamCreated:lhih:", |
267 instance, | 270 instance, |
268 out_shm, | 271 out_shm, |
269 out_shm_size, | 272 out_shm_size, |
270 out_socket | 273 out_socket |
271 ); | 274 ); |
272 return retval; | 275 return retval; |
273 } | 276 } |
274 | 277 |
275 NaClSrpcError PppInstanceRpcClient::PPP_Instance_DidCreate( | 278 NaClSrpcError PppInstanceRpcClient::PPP_Instance_DidCreate( |
276 NaClSrpcChannel* channel, | 279 NaClSrpcChannel* channel, |
277 int64_t instance, | 280 PP_Instance instance, |
278 int32_t argc, | 281 int32_t argc, |
279 nacl_abi_size_t argn_bytes, char* argn, | 282 nacl_abi_size_t argn_bytes, char* argn, |
280 nacl_abi_size_t argv_bytes, char* argv, | 283 nacl_abi_size_t argv_bytes, char* argv, |
281 int32_t* success) { | 284 int32_t* success) { |
282 NaClSrpcError retval; | 285 NaClSrpcError retval; |
283 retval = NaClSrpcInvokeBySignature( | 286 retval = NaClSrpcInvokeBySignature( |
284 channel, | 287 channel, |
285 "PPP_Instance_DidCreate:liCC:i", | 288 "PPP_Instance_DidCreate:liCC:i", |
286 instance, | 289 instance, |
287 argc, | 290 argc, |
288 argn_bytes, argn, | 291 argn_bytes, argn, |
289 argv_bytes, argv, | 292 argv_bytes, argv, |
290 success | 293 success |
291 ); | 294 ); |
292 return retval; | 295 return retval; |
293 } | 296 } |
294 | 297 |
295 NaClSrpcError PppInstanceRpcClient::PPP_Instance_DidDestroy( | 298 NaClSrpcError PppInstanceRpcClient::PPP_Instance_DidDestroy( |
296 NaClSrpcChannel* channel, | 299 NaClSrpcChannel* channel, |
297 int64_t instance) { | 300 PP_Instance instance) { |
298 NaClSrpcError retval; | 301 NaClSrpcError retval; |
299 retval = NaClSrpcInvokeBySignature( | 302 retval = NaClSrpcInvokeBySignature( |
300 channel, | 303 channel, |
301 "PPP_Instance_DidDestroy:l:", | 304 "PPP_Instance_DidDestroy:l:", |
302 instance | 305 instance |
303 ); | 306 ); |
304 return retval; | 307 return retval; |
305 } | 308 } |
306 | 309 |
307 NaClSrpcError PppInstanceRpcClient::PPP_Instance_DidChangeView( | 310 NaClSrpcError PppInstanceRpcClient::PPP_Instance_DidChangeView( |
308 NaClSrpcChannel* channel, | 311 NaClSrpcChannel* channel, |
309 int64_t instance, | 312 PP_Instance instance, |
310 nacl_abi_size_t position_bytes, int32_t* position, | 313 nacl_abi_size_t position_bytes, int32_t* position, |
311 nacl_abi_size_t clip_bytes, int32_t* clip) { | 314 nacl_abi_size_t clip_bytes, int32_t* clip) { |
312 NaClSrpcError retval; | 315 NaClSrpcError retval; |
313 retval = NaClSrpcInvokeBySignature( | 316 retval = NaClSrpcInvokeBySignature( |
314 channel, | 317 channel, |
315 "PPP_Instance_DidChangeView:lII:", | 318 "PPP_Instance_DidChangeView:lII:", |
316 instance, | 319 instance, |
317 position_bytes, position, | 320 position_bytes, position, |
318 clip_bytes, clip | 321 clip_bytes, clip |
319 ); | 322 ); |
320 return retval; | 323 return retval; |
321 } | 324 } |
322 | 325 |
323 NaClSrpcError PppInstanceRpcClient::PPP_Instance_DidChangeFocus( | 326 NaClSrpcError PppInstanceRpcClient::PPP_Instance_DidChangeFocus( |
324 NaClSrpcChannel* channel, | 327 NaClSrpcChannel* channel, |
325 int64_t instance, | 328 PP_Instance instance, |
326 bool has_focus) { | 329 bool has_focus) { |
327 NaClSrpcError retval; | 330 NaClSrpcError retval; |
328 retval = NaClSrpcInvokeBySignature( | 331 retval = NaClSrpcInvokeBySignature( |
329 channel, | 332 channel, |
330 "PPP_Instance_DidChangeFocus:lb:", | 333 "PPP_Instance_DidChangeFocus:lb:", |
331 instance, | 334 instance, |
332 has_focus | 335 has_focus |
333 ); | 336 ); |
334 return retval; | 337 return retval; |
335 } | 338 } |
336 | 339 |
337 NaClSrpcError PppInstanceRpcClient::PPP_Instance_HandleInputEvent( | 340 NaClSrpcError PppInstanceRpcClient::PPP_Instance_HandleInputEvent( |
338 NaClSrpcChannel* channel, | 341 NaClSrpcChannel* channel, |
339 int64_t instance, | 342 PP_Instance instance, |
340 nacl_abi_size_t event_data_bytes, char* event_data, | 343 nacl_abi_size_t event_data_bytes, char* event_data, |
341 int32_t* success) { | 344 int32_t* success) { |
342 NaClSrpcError retval; | 345 NaClSrpcError retval; |
343 retval = NaClSrpcInvokeBySignature( | 346 retval = NaClSrpcInvokeBySignature( |
344 channel, | 347 channel, |
345 "PPP_Instance_HandleInputEvent:lC:i", | 348 "PPP_Instance_HandleInputEvent:lC:i", |
346 instance, | 349 instance, |
347 event_data_bytes, event_data, | 350 event_data_bytes, event_data, |
348 success | 351 success |
349 ); | 352 ); |
350 return retval; | 353 return retval; |
351 } | 354 } |
352 | 355 |
353 NaClSrpcError PppInstanceRpcClient::PPP_Instance_HandleDocumentLoad( | 356 NaClSrpcError PppInstanceRpcClient::PPP_Instance_HandleDocumentLoad( |
354 NaClSrpcChannel* channel, | 357 NaClSrpcChannel* channel, |
355 int64_t instance, | 358 PP_Instance instance, |
356 int64_t url_loader, | 359 PP_Resource url_loader, |
357 int32_t* success) { | 360 int32_t* success) { |
358 NaClSrpcError retval; | 361 NaClSrpcError retval; |
359 retval = NaClSrpcInvokeBySignature( | 362 retval = NaClSrpcInvokeBySignature( |
360 channel, | 363 channel, |
361 "PPP_Instance_HandleDocumentLoad:ll:i", | 364 "PPP_Instance_HandleDocumentLoad:ll:i", |
362 instance, | 365 instance, |
363 url_loader, | 366 url_loader, |
364 success | 367 success |
365 ); | 368 ); |
366 return retval; | 369 return retval; |
367 } | 370 } |
368 | 371 |
369 NaClSrpcError PppInstanceRpcClient::PPP_Instance_GetInstanceObject( | 372 NaClSrpcError PppInstanceRpcClient::PPP_Instance_GetInstanceObject( |
370 NaClSrpcChannel* channel, | 373 NaClSrpcChannel* channel, |
371 int64_t instance, | 374 PP_Instance instance, |
372 nacl_abi_size_t* capability_bytes, char* capability) { | 375 nacl_abi_size_t* capability_bytes, char* capability) { |
373 NaClSrpcError retval; | 376 NaClSrpcError retval; |
374 retval = NaClSrpcInvokeBySignature( | 377 retval = NaClSrpcInvokeBySignature( |
375 channel, | 378 channel, |
376 "PPP_Instance_GetInstanceObject:l:C", | 379 "PPP_Instance_GetInstanceObject:l:C", |
377 instance, | 380 instance, |
378 capability_bytes, capability | 381 capability_bytes, capability |
379 ); | 382 ); |
380 return retval; | 383 return retval; |
381 } | 384 } |
382 | 385 |
383 | 386 |
OLD | NEW |