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

Side by Side Diff: ppapi/native_client/src/shared/ppapi_proxy/ppp_rpc_client.cc

Issue 9119001: srpcgen: Use 'const char*' for string parameters (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased; update year in copyright header srpcgen emits Created 8 years, 11 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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
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"
(...skipping 24 matching lines...) Expand all
36 read_buffer_bytes, read_buffer 36 read_buffer_bytes, read_buffer
37 ); 37 );
38 return retval; 38 return retval;
39 } 39 }
40 40
41 NaClSrpcError PppRpcClient::PPP_InitializeModule( 41 NaClSrpcError PppRpcClient::PPP_InitializeModule(
42 NaClSrpcChannel* channel, 42 NaClSrpcChannel* channel,
43 int32_t pid, 43 int32_t pid,
44 PP_Module module, 44 PP_Module module,
45 NaClSrpcImcDescType upcall_channel_desc, 45 NaClSrpcImcDescType upcall_channel_desc,
46 char* service_description, 46 const char* service_description,
47 int32_t* nacl_pid, 47 int32_t* nacl_pid,
48 int32_t* success) { 48 int32_t* success) {
49 NaClSrpcError retval; 49 NaClSrpcError retval;
50 retval = NaClSrpcInvokeBySignature( 50 retval = NaClSrpcInvokeBySignature(
51 channel, 51 channel,
52 "PPP_InitializeModule:iihs:ii", 52 "PPP_InitializeModule:iihs:ii",
53 pid, 53 pid,
54 module, 54 module,
55 upcall_channel_desc, 55 upcall_channel_desc,
56 service_description, 56 service_description,
57 nacl_pid, 57 nacl_pid,
58 success 58 success
59 ); 59 );
60 return retval; 60 return retval;
61 } 61 }
62 62
63 NaClSrpcError PppRpcClient::PPP_ShutdownModule( 63 NaClSrpcError PppRpcClient::PPP_ShutdownModule(
64 NaClSrpcChannel* channel) { 64 NaClSrpcChannel* channel) {
65 NaClSrpcError retval; 65 NaClSrpcError retval;
66 retval = NaClSrpcInvokeBySignature( 66 retval = NaClSrpcInvokeBySignature(
67 channel, 67 channel,
68 "PPP_ShutdownModule::" 68 "PPP_ShutdownModule::"
69 ); 69 );
70 return retval; 70 return retval;
71 } 71 }
72 72
73 NaClSrpcError PppRpcClient::PPP_GetInterface( 73 NaClSrpcError PppRpcClient::PPP_GetInterface(
74 NaClSrpcChannel* channel, 74 NaClSrpcChannel* channel,
75 char* interface_name, 75 const char* interface_name,
76 int32_t* exports_interface_name) { 76 int32_t* exports_interface_name) {
77 NaClSrpcError retval; 77 NaClSrpcError retval;
78 retval = NaClSrpcInvokeBySignature( 78 retval = NaClSrpcInvokeBySignature(
79 channel, 79 channel,
80 "PPP_GetInterface:s:i", 80 "PPP_GetInterface:s:i",
81 interface_name, 81 interface_name,
82 exports_interface_name 82 exports_interface_name
83 ); 83 );
84 return retval; 84 return retval;
85 } 85 }
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 instance, 462 instance,
463 factor, 463 factor,
464 text_only 464 text_only
465 ); 465 );
466 if (retval == NACL_SRPC_RESULT_INTERNAL) 466 if (retval == NACL_SRPC_RESULT_INTERNAL)
467 ppapi_proxy::CleanUpAfterDeadNexe(instance); 467 ppapi_proxy::CleanUpAfterDeadNexe(instance);
468 return retval; 468 return retval;
469 } 469 }
470 470
471 471
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698