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 "trusted/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 namespace { |
| 25 |
| 26 static void PPB_Core_CallOnMainThreadDispatcher( |
| 27 NaClSrpcRpc* rpc, |
| 28 NaClSrpcArg** inputs, |
| 29 NaClSrpcArg** outputs, |
| 30 NaClSrpcClosure* done |
| 31 ) { |
| 32 UNREFERENCED_PARAMETER(outputs); |
| 33 PppUpcallRpcServer::PPB_Core_CallOnMainThread( |
| 34 rpc, |
| 35 done, |
| 36 inputs[0]->u.ival, |
| 37 inputs[1]->u.ival, |
| 38 inputs[2]->u.ival |
| 39 ); |
| 40 } |
| 41 |
| 42 } // namespace |
| 43 |
| 44 NaClSrpcHandlerDesc PpbUpcalls::srpc_methods[] = { |
| 45 { "PPB_Core_CallOnMainThread:iii:", PPB_Core_CallOnMainThreadDispatcher }, |
| 46 { NULL, NULL } |
| 47 }; |
| 48 |
OLD | NEW |