Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(446)

Side by Side Diff: src/shared/ppapi_proxy/upcall_server.cc

Issue 5974006: Convert srpc definitions from using int64 to using PP_Instance, PP_Module, an... (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 9 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/shared/ppapi_proxy/upcall_client.cc ('k') | tests/ppapi_proxy/event_example.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "trusted/srpcgen/upcall.h" 11 #include "trusted/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 namespace { 24 namespace {
22 25
23 static void PPB_Core_CallOnMainThreadDispatcher( 26 static void PPB_Core_CallOnMainThreadDispatcher(
24 NaClSrpcRpc* rpc, 27 NaClSrpcRpc* rpc,
25 NaClSrpcArg** inputs, 28 NaClSrpcArg** inputs,
26 NaClSrpcArg** outputs, 29 NaClSrpcArg** outputs,
27 NaClSrpcClosure* done 30 NaClSrpcClosure* done
28 ) { 31 ) {
29 UNREFERENCED_PARAMETER(outputs); 32 UNREFERENCED_PARAMETER(outputs);
(...skipping 23 matching lines...) Expand all
53 } 56 }
54 57
55 } // namespace 58 } // namespace
56 59
57 NaClSrpcHandlerDesc PpbUpcalls::srpc_methods[] = { 60 NaClSrpcHandlerDesc PpbUpcalls::srpc_methods[] = {
58 { "PPB_Core_CallOnMainThread:ii:", PPB_Core_CallOnMainThreadDispatcher }, 61 { "PPB_Core_CallOnMainThread:ii:", PPB_Core_CallOnMainThreadDispatcher },
59 { "PPB_Graphics2D_Flush:li:i", PPB_Graphics2D_FlushDispatcher }, 62 { "PPB_Graphics2D_Flush:li:i", PPB_Graphics2D_FlushDispatcher },
60 { NULL, NULL } 63 { NULL, NULL }
61 }; 64 };
62 65
OLDNEW
« no previous file with comments | « src/shared/ppapi_proxy/upcall_client.cc ('k') | tests/ppapi_proxy/event_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698