| 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 "untrusted/srpcgen/upcall.h" | 11 #include "untrusted/srpcgen/upcall.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 PppUpcallRpcClient::PPB_Core_CallOnMainThread( | 24 NaClSrpcError PppUpcallRpcClient::PPB_Core_CallOnMainThread( |
| 22 NaClSrpcChannel* channel, | 25 NaClSrpcChannel* channel, |
| 23 int32_t closure_number, | 26 int32_t closure_number, |
| 24 int32_t delay_in_milliseconds) { | 27 int32_t delay_in_milliseconds) { |
| 25 NaClSrpcError retval; | 28 NaClSrpcError retval; |
| 26 retval = NaClSrpcInvokeBySignature( | 29 retval = NaClSrpcInvokeBySignature( |
| 27 channel, | 30 channel, |
| 28 "PPB_Core_CallOnMainThread:ii:", | 31 "PPB_Core_CallOnMainThread:ii:", |
| 29 closure_number, | 32 closure_number, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 42 channel, | 45 channel, |
| 43 "PPB_Graphics2D_Flush:li:i", | 46 "PPB_Graphics2D_Flush:li:i", |
| 44 device_context, | 47 device_context, |
| 45 callback_index, | 48 callback_index, |
| 46 result | 49 result |
| 47 ); | 50 ); |
| 48 return retval; | 51 return retval; |
| 49 } | 52 } |
| 50 | 53 |
| 51 | 54 |
| OLD | NEW |