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 |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 | 191 |
192 static void PPB_Audio_Dev_CreateDispatcher( | 192 static void PPB_Audio_Dev_CreateDispatcher( |
193 NaClSrpcRpc* rpc, | 193 NaClSrpcRpc* rpc, |
194 NaClSrpcArg** inputs, | 194 NaClSrpcArg** inputs, |
195 NaClSrpcArg** outputs, | 195 NaClSrpcArg** outputs, |
196 NaClSrpcClosure* done | 196 NaClSrpcClosure* done |
197 ) { | 197 ) { |
198 PpbAudioDevRpcServer::PPB_Audio_Dev_Create( | 198 PpbAudioDevRpcServer::PPB_Audio_Dev_Create( |
199 rpc, | 199 rpc, |
200 done, | 200 done, |
201 inputs[0]->u.lval, | 201 inputs[0]->u.ival, |
202 inputs[1]->u.lval, | 202 inputs[1]->u.ival, |
203 &(outputs[0]->u.lval) | 203 &(outputs[0]->u.ival) |
204 ); | 204 ); |
205 } | 205 } |
206 | 206 |
207 static void PPB_Audio_Dev_IsAudioDispatcher( | 207 static void PPB_Audio_Dev_IsAudioDispatcher( |
208 NaClSrpcRpc* rpc, | 208 NaClSrpcRpc* rpc, |
209 NaClSrpcArg** inputs, | 209 NaClSrpcArg** inputs, |
210 NaClSrpcArg** outputs, | 210 NaClSrpcArg** outputs, |
211 NaClSrpcClosure* done | 211 NaClSrpcClosure* done |
212 ) { | 212 ) { |
213 PpbAudioDevRpcServer::PPB_Audio_Dev_IsAudio( | 213 PpbAudioDevRpcServer::PPB_Audio_Dev_IsAudio( |
214 rpc, | 214 rpc, |
215 done, | 215 done, |
216 inputs[0]->u.lval, | 216 inputs[0]->u.ival, |
217 &(outputs[0]->u.ival) | 217 &(outputs[0]->u.ival) |
218 ); | 218 ); |
219 } | 219 } |
220 | 220 |
221 static void PPB_Audio_Dev_GetCurrentConfigDispatcher( | 221 static void PPB_Audio_Dev_GetCurrentConfigDispatcher( |
222 NaClSrpcRpc* rpc, | 222 NaClSrpcRpc* rpc, |
223 NaClSrpcArg** inputs, | 223 NaClSrpcArg** inputs, |
224 NaClSrpcArg** outputs, | 224 NaClSrpcArg** outputs, |
225 NaClSrpcClosure* done | 225 NaClSrpcClosure* done |
226 ) { | 226 ) { |
227 PpbAudioDevRpcServer::PPB_Audio_Dev_GetCurrentConfig( | 227 PpbAudioDevRpcServer::PPB_Audio_Dev_GetCurrentConfig( |
228 rpc, | 228 rpc, |
229 done, | 229 done, |
230 inputs[0]->u.lval, | 230 inputs[0]->u.ival, |
231 &(outputs[0]->u.lval) | 231 &(outputs[0]->u.ival) |
232 ); | 232 ); |
233 } | 233 } |
234 | 234 |
235 static void PPB_Audio_Dev_StopPlaybackDispatcher( | 235 static void PPB_Audio_Dev_StopPlaybackDispatcher( |
236 NaClSrpcRpc* rpc, | 236 NaClSrpcRpc* rpc, |
237 NaClSrpcArg** inputs, | 237 NaClSrpcArg** inputs, |
238 NaClSrpcArg** outputs, | 238 NaClSrpcArg** outputs, |
239 NaClSrpcClosure* done | 239 NaClSrpcClosure* done |
240 ) { | 240 ) { |
241 PpbAudioDevRpcServer::PPB_Audio_Dev_StopPlayback( | 241 PpbAudioDevRpcServer::PPB_Audio_Dev_StopPlayback( |
242 rpc, | 242 rpc, |
243 done, | 243 done, |
244 inputs[0]->u.lval, | 244 inputs[0]->u.ival, |
245 &(outputs[0]->u.ival) | 245 &(outputs[0]->u.ival) |
246 ); | 246 ); |
247 } | 247 } |
248 | 248 |
249 static void PPB_Audio_Dev_StartPlaybackDispatcher( | 249 static void PPB_Audio_Dev_StartPlaybackDispatcher( |
250 NaClSrpcRpc* rpc, | 250 NaClSrpcRpc* rpc, |
251 NaClSrpcArg** inputs, | 251 NaClSrpcArg** inputs, |
252 NaClSrpcArg** outputs, | 252 NaClSrpcArg** outputs, |
253 NaClSrpcClosure* done | 253 NaClSrpcClosure* done |
254 ) { | 254 ) { |
255 PpbAudioDevRpcServer::PPB_Audio_Dev_StartPlayback( | 255 PpbAudioDevRpcServer::PPB_Audio_Dev_StartPlayback( |
256 rpc, | 256 rpc, |
257 done, | 257 done, |
258 inputs[0]->u.lval, | 258 inputs[0]->u.ival, |
259 &(outputs[0]->u.ival) | 259 &(outputs[0]->u.ival) |
260 ); | 260 ); |
261 } | 261 } |
262 | 262 |
263 static void PPB_AudioConfig_Dev_CreateStereo16BitDispatcher( | 263 static void PPB_AudioConfig_Dev_CreateStereo16BitDispatcher( |
264 NaClSrpcRpc* rpc, | 264 NaClSrpcRpc* rpc, |
265 NaClSrpcArg** inputs, | 265 NaClSrpcArg** inputs, |
266 NaClSrpcArg** outputs, | 266 NaClSrpcArg** outputs, |
267 NaClSrpcClosure* done | 267 NaClSrpcClosure* done |
268 ) { | 268 ) { |
269 PpbAudioConfigDevRpcServer::PPB_AudioConfig_Dev_CreateStereo16Bit( | 269 PpbAudioConfigDevRpcServer::PPB_AudioConfig_Dev_CreateStereo16Bit( |
270 rpc, | 270 rpc, |
271 done, | 271 done, |
272 inputs[0]->u.lval, | 272 inputs[0]->u.ival, |
273 inputs[1]->u.ival, | 273 inputs[1]->u.ival, |
274 inputs[2]->u.ival, | 274 inputs[2]->u.ival, |
275 &(outputs[0]->u.lval) | 275 &(outputs[0]->u.ival) |
276 ); | 276 ); |
277 } | 277 } |
278 | 278 |
279 static void PPB_AudioConfig_Dev_IsAudioConfigDispatcher( | 279 static void PPB_AudioConfig_Dev_IsAudioConfigDispatcher( |
280 NaClSrpcRpc* rpc, | 280 NaClSrpcRpc* rpc, |
281 NaClSrpcArg** inputs, | 281 NaClSrpcArg** inputs, |
282 NaClSrpcArg** outputs, | 282 NaClSrpcArg** outputs, |
283 NaClSrpcClosure* done | 283 NaClSrpcClosure* done |
284 ) { | 284 ) { |
285 PpbAudioConfigDevRpcServer::PPB_AudioConfig_Dev_IsAudioConfig( | 285 PpbAudioConfigDevRpcServer::PPB_AudioConfig_Dev_IsAudioConfig( |
286 rpc, | 286 rpc, |
287 done, | 287 done, |
288 inputs[0]->u.lval, | 288 inputs[0]->u.ival, |
289 &(outputs[0]->u.ival) | 289 &(outputs[0]->u.ival) |
290 ); | 290 ); |
291 } | 291 } |
292 | 292 |
293 static void PPB_AudioConfig_Dev_RecommendSampleFrameCountDispatcher( | 293 static void PPB_AudioConfig_Dev_RecommendSampleFrameCountDispatcher( |
294 NaClSrpcRpc* rpc, | 294 NaClSrpcRpc* rpc, |
295 NaClSrpcArg** inputs, | 295 NaClSrpcArg** inputs, |
296 NaClSrpcArg** outputs, | 296 NaClSrpcArg** outputs, |
297 NaClSrpcClosure* done | 297 NaClSrpcClosure* done |
298 ) { | 298 ) { |
299 PpbAudioConfigDevRpcServer::PPB_AudioConfig_Dev_RecommendSampleFrameCount( | 299 PpbAudioConfigDevRpcServer::PPB_AudioConfig_Dev_RecommendSampleFrameCount( |
300 rpc, | 300 rpc, |
301 done, | 301 done, |
302 inputs[0]->u.ival, | 302 inputs[0]->u.ival, |
303 &(outputs[0]->u.ival) | 303 &(outputs[0]->u.ival) |
304 ); | 304 ); |
305 } | 305 } |
306 | 306 |
307 static void PPB_AudioConfig_Dev_GetSampleRateDispatcher( | 307 static void PPB_AudioConfig_Dev_GetSampleRateDispatcher( |
308 NaClSrpcRpc* rpc, | 308 NaClSrpcRpc* rpc, |
309 NaClSrpcArg** inputs, | 309 NaClSrpcArg** inputs, |
310 NaClSrpcArg** outputs, | 310 NaClSrpcArg** outputs, |
311 NaClSrpcClosure* done | 311 NaClSrpcClosure* done |
312 ) { | 312 ) { |
313 PpbAudioConfigDevRpcServer::PPB_AudioConfig_Dev_GetSampleRate( | 313 PpbAudioConfigDevRpcServer::PPB_AudioConfig_Dev_GetSampleRate( |
314 rpc, | 314 rpc, |
315 done, | 315 done, |
316 inputs[0]->u.lval, | 316 inputs[0]->u.ival, |
317 &(outputs[0]->u.ival) | 317 &(outputs[0]->u.ival) |
318 ); | 318 ); |
319 } | 319 } |
320 | 320 |
321 static void PPB_AudioConfig_Dev_GetSampleFrameCountDispatcher( | 321 static void PPB_AudioConfig_Dev_GetSampleFrameCountDispatcher( |
322 NaClSrpcRpc* rpc, | 322 NaClSrpcRpc* rpc, |
323 NaClSrpcArg** inputs, | 323 NaClSrpcArg** inputs, |
324 NaClSrpcArg** outputs, | 324 NaClSrpcArg** outputs, |
325 NaClSrpcClosure* done | 325 NaClSrpcClosure* done |
326 ) { | 326 ) { |
327 PpbAudioConfigDevRpcServer::PPB_AudioConfig_Dev_GetSampleFrameCount( | 327 PpbAudioConfigDevRpcServer::PPB_AudioConfig_Dev_GetSampleFrameCount( |
328 rpc, | 328 rpc, |
329 done, | 329 done, |
330 inputs[0]->u.lval, | 330 inputs[0]->u.ival, |
331 &(outputs[0]->u.ival) | 331 &(outputs[0]->u.ival) |
332 ); | 332 ); |
333 } | 333 } |
334 | 334 |
335 static void PPB_Core_AddRefResourceDispatcher( | 335 static void PPB_Core_AddRefResourceDispatcher( |
336 NaClSrpcRpc* rpc, | 336 NaClSrpcRpc* rpc, |
337 NaClSrpcArg** inputs, | 337 NaClSrpcArg** inputs, |
338 NaClSrpcArg** outputs, | 338 NaClSrpcArg** outputs, |
339 NaClSrpcClosure* done | 339 NaClSrpcClosure* done |
340 ) { | 340 ) { |
341 UNREFERENCED_PARAMETER(outputs); | 341 UNREFERENCED_PARAMETER(outputs); |
342 PpbCoreRpcServer::PPB_Core_AddRefResource( | 342 PpbCoreRpcServer::PPB_Core_AddRefResource( |
343 rpc, | 343 rpc, |
344 done, | 344 done, |
345 inputs[0]->u.lval | 345 inputs[0]->u.ival |
346 ); | 346 ); |
347 } | 347 } |
348 | 348 |
349 static void PPB_Core_ReleaseResourceDispatcher( | 349 static void PPB_Core_ReleaseResourceDispatcher( |
350 NaClSrpcRpc* rpc, | 350 NaClSrpcRpc* rpc, |
351 NaClSrpcArg** inputs, | 351 NaClSrpcArg** inputs, |
352 NaClSrpcArg** outputs, | 352 NaClSrpcArg** outputs, |
353 NaClSrpcClosure* done | 353 NaClSrpcClosure* done |
354 ) { | 354 ) { |
355 UNREFERENCED_PARAMETER(outputs); | 355 UNREFERENCED_PARAMETER(outputs); |
356 PpbCoreRpcServer::PPB_Core_ReleaseResource( | 356 PpbCoreRpcServer::PPB_Core_ReleaseResource( |
357 rpc, | 357 rpc, |
358 done, | 358 done, |
359 inputs[0]->u.lval | 359 inputs[0]->u.ival |
360 ); | 360 ); |
361 } | 361 } |
362 | 362 |
363 static void ReleaseResourceMultipleTimesDispatcher( | 363 static void ReleaseResourceMultipleTimesDispatcher( |
364 NaClSrpcRpc* rpc, | 364 NaClSrpcRpc* rpc, |
365 NaClSrpcArg** inputs, | 365 NaClSrpcArg** inputs, |
366 NaClSrpcArg** outputs, | 366 NaClSrpcArg** outputs, |
367 NaClSrpcClosure* done | 367 NaClSrpcClosure* done |
368 ) { | 368 ) { |
369 UNREFERENCED_PARAMETER(outputs); | 369 UNREFERENCED_PARAMETER(outputs); |
370 PpbCoreRpcServer::ReleaseResourceMultipleTimes( | 370 PpbCoreRpcServer::ReleaseResourceMultipleTimes( |
371 rpc, | 371 rpc, |
372 done, | 372 done, |
373 inputs[0]->u.lval, | 373 inputs[0]->u.ival, |
374 inputs[1]->u.ival | 374 inputs[1]->u.ival |
375 ); | 375 ); |
376 } | 376 } |
377 | 377 |
378 static void PPB_Core_GetTimeDispatcher( | 378 static void PPB_Core_GetTimeDispatcher( |
379 NaClSrpcRpc* rpc, | 379 NaClSrpcRpc* rpc, |
380 NaClSrpcArg** inputs, | 380 NaClSrpcArg** inputs, |
381 NaClSrpcArg** outputs, | 381 NaClSrpcArg** outputs, |
382 NaClSrpcClosure* done | 382 NaClSrpcClosure* done |
383 ) { | 383 ) { |
384 UNREFERENCED_PARAMETER(inputs); | 384 UNREFERENCED_PARAMETER(inputs); |
385 PpbCoreRpcServer::PPB_Core_GetTime( | 385 PpbCoreRpcServer::PPB_Core_GetTime( |
386 rpc, | 386 rpc, |
387 done, | 387 done, |
388 &(outputs[0]->u.dval) | 388 &(outputs[0]->u.dval) |
389 ); | 389 ); |
390 } | 390 } |
391 | 391 |
392 static void PPB_Graphics2D_CreateDispatcher( | 392 static void PPB_Graphics2D_CreateDispatcher( |
393 NaClSrpcRpc* rpc, | 393 NaClSrpcRpc* rpc, |
394 NaClSrpcArg** inputs, | 394 NaClSrpcArg** inputs, |
395 NaClSrpcArg** outputs, | 395 NaClSrpcArg** outputs, |
396 NaClSrpcClosure* done | 396 NaClSrpcClosure* done |
397 ) { | 397 ) { |
398 PpbGraphics2DRpcServer::PPB_Graphics2D_Create( | 398 PpbGraphics2DRpcServer::PPB_Graphics2D_Create( |
399 rpc, | 399 rpc, |
400 done, | 400 done, |
401 inputs[0]->u.lval, | 401 inputs[0]->u.ival, |
402 inputs[1]->u.count, inputs[1]->arrays.carr, | 402 inputs[1]->u.count, inputs[1]->arrays.carr, |
403 inputs[2]->u.ival, | 403 inputs[2]->u.ival, |
404 &(outputs[0]->u.lval) | 404 &(outputs[0]->u.ival) |
405 ); | 405 ); |
406 } | 406 } |
407 | 407 |
408 static void PPB_Graphics2D_IsGraphics2DDispatcher( | 408 static void PPB_Graphics2D_IsGraphics2DDispatcher( |
409 NaClSrpcRpc* rpc, | 409 NaClSrpcRpc* rpc, |
410 NaClSrpcArg** inputs, | 410 NaClSrpcArg** inputs, |
411 NaClSrpcArg** outputs, | 411 NaClSrpcArg** outputs, |
412 NaClSrpcClosure* done | 412 NaClSrpcClosure* done |
413 ) { | 413 ) { |
414 PpbGraphics2DRpcServer::PPB_Graphics2D_IsGraphics2D( | 414 PpbGraphics2DRpcServer::PPB_Graphics2D_IsGraphics2D( |
415 rpc, | 415 rpc, |
416 done, | 416 done, |
417 inputs[0]->u.lval, | 417 inputs[0]->u.ival, |
418 &(outputs[0]->u.ival) | 418 &(outputs[0]->u.ival) |
419 ); | 419 ); |
420 } | 420 } |
421 | 421 |
422 static void PPB_Graphics2D_DescribeDispatcher( | 422 static void PPB_Graphics2D_DescribeDispatcher( |
423 NaClSrpcRpc* rpc, | 423 NaClSrpcRpc* rpc, |
424 NaClSrpcArg** inputs, | 424 NaClSrpcArg** inputs, |
425 NaClSrpcArg** outputs, | 425 NaClSrpcArg** outputs, |
426 NaClSrpcClosure* done | 426 NaClSrpcClosure* done |
427 ) { | 427 ) { |
428 PpbGraphics2DRpcServer::PPB_Graphics2D_Describe( | 428 PpbGraphics2DRpcServer::PPB_Graphics2D_Describe( |
429 rpc, | 429 rpc, |
430 done, | 430 done, |
431 inputs[0]->u.lval, | 431 inputs[0]->u.ival, |
432 &(outputs[0]->u.count), outputs[0]->arrays.carr, | 432 &(outputs[0]->u.count), outputs[0]->arrays.carr, |
433 &(outputs[1]->u.ival), | 433 &(outputs[1]->u.ival), |
434 &(outputs[2]->u.ival) | 434 &(outputs[2]->u.ival) |
435 ); | 435 ); |
436 } | 436 } |
437 | 437 |
438 static void PPB_Graphics2D_PaintImageDataDispatcher( | 438 static void PPB_Graphics2D_PaintImageDataDispatcher( |
439 NaClSrpcRpc* rpc, | 439 NaClSrpcRpc* rpc, |
440 NaClSrpcArg** inputs, | 440 NaClSrpcArg** inputs, |
441 NaClSrpcArg** outputs, | 441 NaClSrpcArg** outputs, |
442 NaClSrpcClosure* done | 442 NaClSrpcClosure* done |
443 ) { | 443 ) { |
444 UNREFERENCED_PARAMETER(outputs); | 444 UNREFERENCED_PARAMETER(outputs); |
445 PpbGraphics2DRpcServer::PPB_Graphics2D_PaintImageData( | 445 PpbGraphics2DRpcServer::PPB_Graphics2D_PaintImageData( |
446 rpc, | 446 rpc, |
447 done, | 447 done, |
448 inputs[0]->u.lval, | 448 inputs[0]->u.ival, |
449 inputs[1]->u.lval, | 449 inputs[1]->u.ival, |
450 inputs[2]->u.count, inputs[2]->arrays.carr, | 450 inputs[2]->u.count, inputs[2]->arrays.carr, |
451 inputs[3]->u.count, inputs[3]->arrays.carr | 451 inputs[3]->u.count, inputs[3]->arrays.carr |
452 ); | 452 ); |
453 } | 453 } |
454 | 454 |
455 static void PPB_Graphics2D_ScrollDispatcher( | 455 static void PPB_Graphics2D_ScrollDispatcher( |
456 NaClSrpcRpc* rpc, | 456 NaClSrpcRpc* rpc, |
457 NaClSrpcArg** inputs, | 457 NaClSrpcArg** inputs, |
458 NaClSrpcArg** outputs, | 458 NaClSrpcArg** outputs, |
459 NaClSrpcClosure* done | 459 NaClSrpcClosure* done |
460 ) { | 460 ) { |
461 UNREFERENCED_PARAMETER(outputs); | 461 UNREFERENCED_PARAMETER(outputs); |
462 PpbGraphics2DRpcServer::PPB_Graphics2D_Scroll( | 462 PpbGraphics2DRpcServer::PPB_Graphics2D_Scroll( |
463 rpc, | 463 rpc, |
464 done, | 464 done, |
465 inputs[0]->u.lval, | 465 inputs[0]->u.ival, |
466 inputs[1]->u.count, inputs[1]->arrays.carr, | 466 inputs[1]->u.count, inputs[1]->arrays.carr, |
467 inputs[2]->u.count, inputs[2]->arrays.carr | 467 inputs[2]->u.count, inputs[2]->arrays.carr |
468 ); | 468 ); |
469 } | 469 } |
470 | 470 |
471 static void PPB_Graphics2D_ReplaceContentsDispatcher( | 471 static void PPB_Graphics2D_ReplaceContentsDispatcher( |
472 NaClSrpcRpc* rpc, | 472 NaClSrpcRpc* rpc, |
473 NaClSrpcArg** inputs, | 473 NaClSrpcArg** inputs, |
474 NaClSrpcArg** outputs, | 474 NaClSrpcArg** outputs, |
475 NaClSrpcClosure* done | 475 NaClSrpcClosure* done |
476 ) { | 476 ) { |
477 UNREFERENCED_PARAMETER(outputs); | 477 UNREFERENCED_PARAMETER(outputs); |
478 PpbGraphics2DRpcServer::PPB_Graphics2D_ReplaceContents( | 478 PpbGraphics2DRpcServer::PPB_Graphics2D_ReplaceContents( |
479 rpc, | 479 rpc, |
480 done, | 480 done, |
481 inputs[0]->u.lval, | 481 inputs[0]->u.ival, |
482 inputs[1]->u.lval | 482 inputs[1]->u.ival |
483 ); | 483 ); |
484 } | 484 } |
485 | 485 |
486 static void PPB_Graphics2D_FlushDispatcher( | 486 static void PPB_Graphics2D_FlushDispatcher( |
487 NaClSrpcRpc* rpc, | 487 NaClSrpcRpc* rpc, |
488 NaClSrpcArg** inputs, | 488 NaClSrpcArg** inputs, |
489 NaClSrpcArg** outputs, | 489 NaClSrpcArg** outputs, |
490 NaClSrpcClosure* done | 490 NaClSrpcClosure* done |
491 ) { | 491 ) { |
492 PpbGraphics2DRpcServer::PPB_Graphics2D_Flush( | 492 PpbGraphics2DRpcServer::PPB_Graphics2D_Flush( |
493 rpc, | 493 rpc, |
494 done, | 494 done, |
495 inputs[0]->u.lval, | 495 inputs[0]->u.ival, |
496 inputs[1]->u.ival, | 496 inputs[1]->u.ival, |
497 &(outputs[0]->u.ival) | 497 &(outputs[0]->u.ival) |
498 ); | 498 ); |
499 } | 499 } |
500 | 500 |
501 static void PPB_ImageData_GetNativeImageDataFormatDispatcher( | 501 static void PPB_ImageData_GetNativeImageDataFormatDispatcher( |
502 NaClSrpcRpc* rpc, | 502 NaClSrpcRpc* rpc, |
503 NaClSrpcArg** inputs, | 503 NaClSrpcArg** inputs, |
504 NaClSrpcArg** outputs, | 504 NaClSrpcArg** outputs, |
505 NaClSrpcClosure* done | 505 NaClSrpcClosure* done |
(...skipping 22 matching lines...) Expand all Loading... |
528 | 528 |
529 static void PPB_ImageData_CreateDispatcher( | 529 static void PPB_ImageData_CreateDispatcher( |
530 NaClSrpcRpc* rpc, | 530 NaClSrpcRpc* rpc, |
531 NaClSrpcArg** inputs, | 531 NaClSrpcArg** inputs, |
532 NaClSrpcArg** outputs, | 532 NaClSrpcArg** outputs, |
533 NaClSrpcClosure* done | 533 NaClSrpcClosure* done |
534 ) { | 534 ) { |
535 PpbImageDataRpcServer::PPB_ImageData_Create( | 535 PpbImageDataRpcServer::PPB_ImageData_Create( |
536 rpc, | 536 rpc, |
537 done, | 537 done, |
538 inputs[0]->u.lval, | 538 inputs[0]->u.ival, |
539 inputs[1]->u.ival, | 539 inputs[1]->u.ival, |
540 inputs[2]->u.count, inputs[2]->arrays.carr, | 540 inputs[2]->u.count, inputs[2]->arrays.carr, |
541 inputs[3]->u.ival, | 541 inputs[3]->u.ival, |
542 &(outputs[0]->u.lval) | 542 &(outputs[0]->u.ival) |
543 ); | 543 ); |
544 } | 544 } |
545 | 545 |
546 static void PPB_ImageData_IsImageDataDispatcher( | 546 static void PPB_ImageData_IsImageDataDispatcher( |
547 NaClSrpcRpc* rpc, | 547 NaClSrpcRpc* rpc, |
548 NaClSrpcArg** inputs, | 548 NaClSrpcArg** inputs, |
549 NaClSrpcArg** outputs, | 549 NaClSrpcArg** outputs, |
550 NaClSrpcClosure* done | 550 NaClSrpcClosure* done |
551 ) { | 551 ) { |
552 PpbImageDataRpcServer::PPB_ImageData_IsImageData( | 552 PpbImageDataRpcServer::PPB_ImageData_IsImageData( |
553 rpc, | 553 rpc, |
554 done, | 554 done, |
555 inputs[0]->u.lval, | 555 inputs[0]->u.ival, |
556 &(outputs[0]->u.ival) | 556 &(outputs[0]->u.ival) |
557 ); | 557 ); |
558 } | 558 } |
559 | 559 |
560 static void PPB_ImageData_DescribeDispatcher( | 560 static void PPB_ImageData_DescribeDispatcher( |
561 NaClSrpcRpc* rpc, | 561 NaClSrpcRpc* rpc, |
562 NaClSrpcArg** inputs, | 562 NaClSrpcArg** inputs, |
563 NaClSrpcArg** outputs, | 563 NaClSrpcArg** outputs, |
564 NaClSrpcClosure* done | 564 NaClSrpcClosure* done |
565 ) { | 565 ) { |
566 PpbImageDataRpcServer::PPB_ImageData_Describe( | 566 PpbImageDataRpcServer::PPB_ImageData_Describe( |
567 rpc, | 567 rpc, |
568 done, | 568 done, |
569 inputs[0]->u.lval, | 569 inputs[0]->u.ival, |
570 &(outputs[0]->u.count), outputs[0]->arrays.carr, | 570 &(outputs[0]->u.count), outputs[0]->arrays.carr, |
571 &(outputs[1]->u.hval), | 571 &(outputs[1]->u.hval), |
572 &(outputs[2]->u.ival), | 572 &(outputs[2]->u.ival), |
573 &(outputs[3]->u.ival) | 573 &(outputs[3]->u.ival) |
574 ); | 574 ); |
575 } | 575 } |
576 | 576 |
577 static void PPB_Instance_GetWindowObjectDispatcher( | 577 static void PPB_Instance_GetWindowObjectDispatcher( |
578 NaClSrpcRpc* rpc, | 578 NaClSrpcRpc* rpc, |
579 NaClSrpcArg** inputs, | 579 NaClSrpcArg** inputs, |
580 NaClSrpcArg** outputs, | 580 NaClSrpcArg** outputs, |
581 NaClSrpcClosure* done | 581 NaClSrpcClosure* done |
582 ) { | 582 ) { |
583 PpbInstanceRpcServer::PPB_Instance_GetWindowObject( | 583 PpbInstanceRpcServer::PPB_Instance_GetWindowObject( |
584 rpc, | 584 rpc, |
585 done, | 585 done, |
586 inputs[0]->u.lval, | 586 inputs[0]->u.ival, |
587 &(outputs[0]->u.count), outputs[0]->arrays.carr | 587 &(outputs[0]->u.count), outputs[0]->arrays.carr |
588 ); | 588 ); |
589 } | 589 } |
590 | 590 |
591 static void PPB_Instance_GetOwnerElementObjectDispatcher( | 591 static void PPB_Instance_GetOwnerElementObjectDispatcher( |
592 NaClSrpcRpc* rpc, | 592 NaClSrpcRpc* rpc, |
593 NaClSrpcArg** inputs, | 593 NaClSrpcArg** inputs, |
594 NaClSrpcArg** outputs, | 594 NaClSrpcArg** outputs, |
595 NaClSrpcClosure* done | 595 NaClSrpcClosure* done |
596 ) { | 596 ) { |
597 PpbInstanceRpcServer::PPB_Instance_GetOwnerElementObject( | 597 PpbInstanceRpcServer::PPB_Instance_GetOwnerElementObject( |
598 rpc, | 598 rpc, |
599 done, | 599 done, |
600 inputs[0]->u.lval, | 600 inputs[0]->u.ival, |
601 &(outputs[0]->u.count), outputs[0]->arrays.carr | 601 &(outputs[0]->u.count), outputs[0]->arrays.carr |
602 ); | 602 ); |
603 } | 603 } |
604 | 604 |
605 static void PPB_Instance_BindGraphicsDispatcher( | 605 static void PPB_Instance_BindGraphicsDispatcher( |
606 NaClSrpcRpc* rpc, | 606 NaClSrpcRpc* rpc, |
607 NaClSrpcArg** inputs, | 607 NaClSrpcArg** inputs, |
608 NaClSrpcArg** outputs, | 608 NaClSrpcArg** outputs, |
609 NaClSrpcClosure* done | 609 NaClSrpcClosure* done |
610 ) { | 610 ) { |
611 PpbInstanceRpcServer::PPB_Instance_BindGraphics( | 611 PpbInstanceRpcServer::PPB_Instance_BindGraphics( |
612 rpc, | 612 rpc, |
613 done, | 613 done, |
614 inputs[0]->u.lval, | 614 inputs[0]->u.ival, |
615 inputs[1]->u.lval, | 615 inputs[1]->u.ival, |
616 &(outputs[0]->u.ival) | 616 &(outputs[0]->u.ival) |
617 ); | 617 ); |
618 } | 618 } |
619 | 619 |
620 static void PPB_Instance_IsFullFrameDispatcher( | 620 static void PPB_Instance_IsFullFrameDispatcher( |
621 NaClSrpcRpc* rpc, | 621 NaClSrpcRpc* rpc, |
622 NaClSrpcArg** inputs, | 622 NaClSrpcArg** inputs, |
623 NaClSrpcArg** outputs, | 623 NaClSrpcArg** outputs, |
624 NaClSrpcClosure* done | 624 NaClSrpcClosure* done |
625 ) { | 625 ) { |
626 PpbInstanceRpcServer::PPB_Instance_IsFullFrame( | 626 PpbInstanceRpcServer::PPB_Instance_IsFullFrame( |
627 rpc, | 627 rpc, |
628 done, | 628 done, |
629 inputs[0]->u.lval, | 629 inputs[0]->u.ival, |
630 &(outputs[0]->u.ival) | 630 &(outputs[0]->u.ival) |
631 ); | 631 ); |
632 } | 632 } |
633 | 633 |
634 static void PPB_Instance_ExecuteScriptDispatcher( | 634 static void PPB_Instance_ExecuteScriptDispatcher( |
635 NaClSrpcRpc* rpc, | 635 NaClSrpcRpc* rpc, |
636 NaClSrpcArg** inputs, | 636 NaClSrpcArg** inputs, |
637 NaClSrpcArg** outputs, | 637 NaClSrpcArg** outputs, |
638 NaClSrpcClosure* done | 638 NaClSrpcClosure* done |
639 ) { | 639 ) { |
640 PpbInstanceRpcServer::PPB_Instance_ExecuteScript( | 640 PpbInstanceRpcServer::PPB_Instance_ExecuteScript( |
641 rpc, | 641 rpc, |
642 done, | 642 done, |
643 inputs[0]->u.lval, | 643 inputs[0]->u.ival, |
644 inputs[1]->u.count, inputs[1]->arrays.carr, | 644 inputs[1]->u.count, inputs[1]->arrays.carr, |
645 inputs[2]->u.count, inputs[2]->arrays.carr, | 645 inputs[2]->u.count, inputs[2]->arrays.carr, |
646 &(outputs[0]->u.count), outputs[0]->arrays.carr, | 646 &(outputs[0]->u.count), outputs[0]->arrays.carr, |
647 &(outputs[1]->u.count), outputs[1]->arrays.carr | 647 &(outputs[1]->u.count), outputs[1]->arrays.carr |
648 ); | 648 ); |
649 } | 649 } |
650 | 650 |
651 static void PPB_URLRequestInfo_CreateDispatcher( | 651 static void PPB_URLRequestInfo_CreateDispatcher( |
652 NaClSrpcRpc* rpc, | 652 NaClSrpcRpc* rpc, |
653 NaClSrpcArg** inputs, | 653 NaClSrpcArg** inputs, |
654 NaClSrpcArg** outputs, | 654 NaClSrpcArg** outputs, |
655 NaClSrpcClosure* done | 655 NaClSrpcClosure* done |
656 ) { | 656 ) { |
657 PpbURLRequestInfoRpcServer::PPB_URLRequestInfo_Create( | 657 PpbURLRequestInfoRpcServer::PPB_URLRequestInfo_Create( |
658 rpc, | 658 rpc, |
659 done, | 659 done, |
660 inputs[0]->u.lval, | 660 inputs[0]->u.ival, |
661 &(outputs[0]->u.lval) | 661 &(outputs[0]->u.ival) |
662 ); | 662 ); |
663 } | 663 } |
664 | 664 |
665 static void PPB_URLRequestInfo_IsURLRequestInfoDispatcher( | 665 static void PPB_URLRequestInfo_IsURLRequestInfoDispatcher( |
666 NaClSrpcRpc* rpc, | 666 NaClSrpcRpc* rpc, |
667 NaClSrpcArg** inputs, | 667 NaClSrpcArg** inputs, |
668 NaClSrpcArg** outputs, | 668 NaClSrpcArg** outputs, |
669 NaClSrpcClosure* done | 669 NaClSrpcClosure* done |
670 ) { | 670 ) { |
671 PpbURLRequestInfoRpcServer::PPB_URLRequestInfo_IsURLRequestInfo( | 671 PpbURLRequestInfoRpcServer::PPB_URLRequestInfo_IsURLRequestInfo( |
672 rpc, | 672 rpc, |
673 done, | 673 done, |
674 inputs[0]->u.lval, | 674 inputs[0]->u.ival, |
675 &(outputs[0]->u.ival) | 675 &(outputs[0]->u.ival) |
676 ); | 676 ); |
677 } | 677 } |
678 | 678 |
679 static void PPB_URLRequestInfo_SetPropertyDispatcher( | 679 static void PPB_URLRequestInfo_SetPropertyDispatcher( |
680 NaClSrpcRpc* rpc, | 680 NaClSrpcRpc* rpc, |
681 NaClSrpcArg** inputs, | 681 NaClSrpcArg** inputs, |
682 NaClSrpcArg** outputs, | 682 NaClSrpcArg** outputs, |
683 NaClSrpcClosure* done | 683 NaClSrpcClosure* done |
684 ) { | 684 ) { |
685 PpbURLRequestInfoRpcServer::PPB_URLRequestInfo_SetProperty( | 685 PpbURLRequestInfoRpcServer::PPB_URLRequestInfo_SetProperty( |
686 rpc, | 686 rpc, |
687 done, | 687 done, |
688 inputs[0]->u.lval, | 688 inputs[0]->u.ival, |
689 inputs[1]->u.ival, | 689 inputs[1]->u.ival, |
690 inputs[2]->u.count, inputs[2]->arrays.carr, | 690 inputs[2]->u.count, inputs[2]->arrays.carr, |
691 &(outputs[0]->u.ival) | 691 &(outputs[0]->u.ival) |
692 ); | 692 ); |
693 } | 693 } |
694 | 694 |
695 static void PPB_URLRequestInfo_AppendDataToBodyDispatcher( | 695 static void PPB_URLRequestInfo_AppendDataToBodyDispatcher( |
696 NaClSrpcRpc* rpc, | 696 NaClSrpcRpc* rpc, |
697 NaClSrpcArg** inputs, | 697 NaClSrpcArg** inputs, |
698 NaClSrpcArg** outputs, | 698 NaClSrpcArg** outputs, |
699 NaClSrpcClosure* done | 699 NaClSrpcClosure* done |
700 ) { | 700 ) { |
701 PpbURLRequestInfoRpcServer::PPB_URLRequestInfo_AppendDataToBody( | 701 PpbURLRequestInfoRpcServer::PPB_URLRequestInfo_AppendDataToBody( |
702 rpc, | 702 rpc, |
703 done, | 703 done, |
704 inputs[0]->u.lval, | 704 inputs[0]->u.ival, |
705 inputs[1]->u.count, inputs[1]->arrays.carr, | 705 inputs[1]->u.count, inputs[1]->arrays.carr, |
706 &(outputs[0]->u.ival) | 706 &(outputs[0]->u.ival) |
707 ); | 707 ); |
708 } | 708 } |
709 | 709 |
710 static void PPB_URLRequestInfo_AppendFileToBodyDispatcher( | 710 static void PPB_URLRequestInfo_AppendFileToBodyDispatcher( |
711 NaClSrpcRpc* rpc, | 711 NaClSrpcRpc* rpc, |
712 NaClSrpcArg** inputs, | 712 NaClSrpcArg** inputs, |
713 NaClSrpcArg** outputs, | 713 NaClSrpcArg** outputs, |
714 NaClSrpcClosure* done | 714 NaClSrpcClosure* done |
715 ) { | 715 ) { |
716 PpbURLRequestInfoRpcServer::PPB_URLRequestInfo_AppendFileToBody( | 716 PpbURLRequestInfoRpcServer::PPB_URLRequestInfo_AppendFileToBody( |
717 rpc, | 717 rpc, |
718 done, | 718 done, |
719 inputs[0]->u.lval, | 719 inputs[0]->u.ival, |
720 inputs[1]->u.lval, | 720 inputs[1]->u.ival, |
721 inputs[2]->u.lval, | 721 inputs[2]->u.lval, |
722 inputs[3]->u.lval, | 722 inputs[3]->u.lval, |
723 inputs[4]->u.dval, | 723 inputs[4]->u.dval, |
724 &(outputs[0]->u.ival) | 724 &(outputs[0]->u.ival) |
725 ); | 725 ); |
726 } | 726 } |
727 | 727 |
728 static void PPB_URLResponseInfo_IsURLResponseInfoDispatcher( | 728 static void PPB_URLResponseInfo_IsURLResponseInfoDispatcher( |
729 NaClSrpcRpc* rpc, | 729 NaClSrpcRpc* rpc, |
730 NaClSrpcArg** inputs, | 730 NaClSrpcArg** inputs, |
731 NaClSrpcArg** outputs, | 731 NaClSrpcArg** outputs, |
732 NaClSrpcClosure* done | 732 NaClSrpcClosure* done |
733 ) { | 733 ) { |
734 PpbURLResponseInfoRpcServer::PPB_URLResponseInfo_IsURLResponseInfo( | 734 PpbURLResponseInfoRpcServer::PPB_URLResponseInfo_IsURLResponseInfo( |
735 rpc, | 735 rpc, |
736 done, | 736 done, |
737 inputs[0]->u.lval, | 737 inputs[0]->u.ival, |
738 &(outputs[0]->u.ival) | 738 &(outputs[0]->u.ival) |
739 ); | 739 ); |
740 } | 740 } |
741 | 741 |
742 static void PPB_URLResponseInfo_GetPropertyDispatcher( | 742 static void PPB_URLResponseInfo_GetPropertyDispatcher( |
743 NaClSrpcRpc* rpc, | 743 NaClSrpcRpc* rpc, |
744 NaClSrpcArg** inputs, | 744 NaClSrpcArg** inputs, |
745 NaClSrpcArg** outputs, | 745 NaClSrpcArg** outputs, |
746 NaClSrpcClosure* done | 746 NaClSrpcClosure* done |
747 ) { | 747 ) { |
748 PpbURLResponseInfoRpcServer::PPB_URLResponseInfo_GetProperty( | 748 PpbURLResponseInfoRpcServer::PPB_URLResponseInfo_GetProperty( |
749 rpc, | 749 rpc, |
750 done, | 750 done, |
751 inputs[0]->u.lval, | 751 inputs[0]->u.ival, |
752 inputs[1]->u.ival, | 752 inputs[1]->u.ival, |
753 &(outputs[0]->u.count), outputs[0]->arrays.carr | 753 &(outputs[0]->u.count), outputs[0]->arrays.carr |
754 ); | 754 ); |
755 } | 755 } |
756 | 756 |
757 static void PPB_URLResponseInfo_GetBodyAsFileRefDispatcher( | 757 static void PPB_URLResponseInfo_GetBodyAsFileRefDispatcher( |
758 NaClSrpcRpc* rpc, | 758 NaClSrpcRpc* rpc, |
759 NaClSrpcArg** inputs, | 759 NaClSrpcArg** inputs, |
760 NaClSrpcArg** outputs, | 760 NaClSrpcArg** outputs, |
761 NaClSrpcClosure* done | 761 NaClSrpcClosure* done |
762 ) { | 762 ) { |
763 PpbURLResponseInfoRpcServer::PPB_URLResponseInfo_GetBodyAsFileRef( | 763 PpbURLResponseInfoRpcServer::PPB_URLResponseInfo_GetBodyAsFileRef( |
764 rpc, | 764 rpc, |
765 done, | 765 done, |
766 inputs[0]->u.lval, | 766 inputs[0]->u.ival, |
767 &(outputs[0]->u.lval) | 767 &(outputs[0]->u.ival) |
768 ); | 768 ); |
769 } | 769 } |
770 | 770 |
771 } // namespace | 771 } // namespace |
772 | 772 |
773 NaClSrpcHandlerDesc PpbRpcs::srpc_methods[] = { | 773 NaClSrpcHandlerDesc PpbRpcs::srpc_methods[] = { |
774 { "HasProperty:CCC:iC", HasPropertyDispatcher }, | 774 { "HasProperty:CCC:iC", HasPropertyDispatcher }, |
775 { "HasMethod:CCC:iC", HasMethodDispatcher }, | 775 { "HasMethod:CCC:iC", HasMethodDispatcher }, |
776 { "GetProperty:CCC:CC", GetPropertyDispatcher }, | 776 { "GetProperty:CCC:CC", GetPropertyDispatcher }, |
777 { "GetAllPropertyNames:CC:iCC", GetAllPropertyNamesDispatcher }, | 777 { "GetAllPropertyNames:CC:iCC", GetAllPropertyNamesDispatcher }, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
816 { "PPB_URLRequestInfo_IsURLRequestInfo:l:i", PPB_URLRequestInfo_IsURLRequestIn
foDispatcher }, | 816 { "PPB_URLRequestInfo_IsURLRequestInfo:l:i", PPB_URLRequestInfo_IsURLRequestIn
foDispatcher }, |
817 { "PPB_URLRequestInfo_SetProperty:liC:i", PPB_URLRequestInfo_SetPropertyDispat
cher }, | 817 { "PPB_URLRequestInfo_SetProperty:liC:i", PPB_URLRequestInfo_SetPropertyDispat
cher }, |
818 { "PPB_URLRequestInfo_AppendDataToBody:lC:i", PPB_URLRequestInfo_AppendDataToB
odyDispatcher }, | 818 { "PPB_URLRequestInfo_AppendDataToBody:lC:i", PPB_URLRequestInfo_AppendDataToB
odyDispatcher }, |
819 { "PPB_URLRequestInfo_AppendFileToBody:lllld:i", PPB_URLRequestInfo_AppendFile
ToBodyDispatcher }, | 819 { "PPB_URLRequestInfo_AppendFileToBody:lllld:i", PPB_URLRequestInfo_AppendFile
ToBodyDispatcher }, |
820 { "PPB_URLResponseInfo_IsURLResponseInfo:l:i", PPB_URLResponseInfo_IsURLRespon
seInfoDispatcher }, | 820 { "PPB_URLResponseInfo_IsURLResponseInfo:l:i", PPB_URLResponseInfo_IsURLRespon
seInfoDispatcher }, |
821 { "PPB_URLResponseInfo_GetProperty:li:C", PPB_URLResponseInfo_GetPropertyDispa
tcher }, | 821 { "PPB_URLResponseInfo_GetProperty:li:C", PPB_URLResponseInfo_GetPropertyDispa
tcher }, |
822 { "PPB_URLResponseInfo_GetBodyAsFileRef:l:l", PPB_URLResponseInfo_GetBodyAsFil
eRefDispatcher }, | 822 { "PPB_URLResponseInfo_GetBodyAsFileRef:l:l", PPB_URLResponseInfo_GetBodyAsFil
eRefDispatcher }, |
823 { NULL, NULL } | 823 { NULL, NULL } |
824 }; | 824 }; |
825 | 825 |
OLD | NEW |