OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING | 5 // WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING |
vandebo (ex-Chrome)
2011/09/26 23:41:33
I couldn't figure out how to generate these files,
dmichael (off chromium)
2011/09/27 15:28:38
I haven't had to do this yet since things moved to
vandebo (ex-Chrome)
2011/09/27 20:02:24
That works. How about adding the instructions/com
| |
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 |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
303 channel, | 303 channel, |
304 "PPP_Printing_QuerySupportedFormats:i:i", | 304 "PPP_Printing_QuerySupportedFormats:i:i", |
305 instance, | 305 instance, |
306 formats | 306 formats |
307 ); | 307 ); |
308 if (retval == NACL_SRPC_RESULT_INTERNAL) | 308 if (retval == NACL_SRPC_RESULT_INTERNAL) |
309 ppapi_proxy::CleanUpAfterDeadNexe(instance); | 309 ppapi_proxy::CleanUpAfterDeadNexe(instance); |
310 return retval; | 310 return retval; |
311 } | 311 } |
312 | 312 |
313 NaClSrpcError PppPrintingRpcClient::PPP_Printing_IsScalingDisabled( | |
314 NaClSrpcChannel* channel, | |
315 PP_Instance instance, | |
316 bool* result) { | |
317 NaClSrpcError retval; | |
318 retval = NaClSrpcInvokeBySignature( | |
319 channel, | |
320 "PPP_Printing_IsScalingDisabled:i:b", | |
321 instance, | |
322 result | |
323 ); | |
324 if (retval == NACL_SRPC_RESULT_INTERNAL) | |
325 ppapi_proxy::CleanUpAfterDeadNexe(instance); | |
326 return retval; | |
327 } | |
328 | |
313 NaClSrpcError PppPrintingRpcClient::PPP_Printing_Begin( | 329 NaClSrpcError PppPrintingRpcClient::PPP_Printing_Begin( |
314 NaClSrpcChannel* channel, | 330 NaClSrpcChannel* channel, |
315 PP_Instance instance, | 331 PP_Instance instance, |
316 nacl_abi_size_t print_settings_bytes, char* print_settings, | 332 nacl_abi_size_t print_settings_bytes, char* print_settings, |
317 int32_t* pages_required) { | 333 int32_t* pages_required) { |
318 NaClSrpcError retval; | 334 NaClSrpcError retval; |
319 retval = NaClSrpcInvokeBySignature( | 335 retval = NaClSrpcInvokeBySignature( |
320 channel, | 336 channel, |
321 "PPP_Printing_Begin:iC:i", | 337 "PPP_Printing_Begin:iC:i", |
322 instance, | 338 instance, |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
446 instance, | 462 instance, |
447 factor, | 463 factor, |
448 text_only | 464 text_only |
449 ); | 465 ); |
450 if (retval == NACL_SRPC_RESULT_INTERNAL) | 466 if (retval == NACL_SRPC_RESULT_INTERNAL) |
451 ppapi_proxy::CleanUpAfterDeadNexe(instance); | 467 ppapi_proxy::CleanUpAfterDeadNexe(instance); |
452 return retval; | 468 return retval; |
453 } | 469 } |
454 | 470 |
455 | 471 |
OLD | NEW |