OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Native Client Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 // |
| 5 // WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING |
| 6 // |
| 7 // Automatically generated code. See srpcgen.py |
| 8 // |
| 9 // NaCl Simple Remote Procedure Call interface abstractions. |
| 10 |
| 11 #include "untrusted/srpcgen/upcall.h" |
| 12 #ifdef __native_client__ |
| 13 #ifndef UNREFERENCED_PARAMETER |
| 14 #define UNREFERENCED_PARAMETER(P) do { (void) P; } while (0) |
| 15 #endif // UNREFERENCED_PARAMETER |
| 16 #else |
| 17 #include "native_client/src/include/portability.h" |
| 18 #endif // __native_client__ |
| 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" |
| 23 |
| 24 NaClSrpcError PppUpcallRpcClient::PPB_Core_CallOnMainThread( |
| 25 NaClSrpcChannel* channel, |
| 26 int32_t delay_in_milliseconds, |
| 27 int32_t callback_id, |
| 28 int32_t result) { |
| 29 NaClSrpcError retval; |
| 30 retval = NaClSrpcInvokeBySignature( |
| 31 channel, |
| 32 "PPB_Core_CallOnMainThread:iii:", |
| 33 delay_in_milliseconds, |
| 34 callback_id, |
| 35 result |
| 36 ); |
| 37 return retval; |
| 38 } |
| 39 |
| 40 |
OLD | NEW |