OLD | NEW |
---|---|
1 // Copyright (c) 2012 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 |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
194 NaClSrpcError retval; | 194 NaClSrpcError retval; |
195 retval = NaClSrpcInvokeBySignature( | 195 retval = NaClSrpcInvokeBySignature( |
196 channel, | 196 channel, |
197 "PPB_AudioConfig_IsAudioConfig:i:i", | 197 "PPB_AudioConfig_IsAudioConfig:i:i", |
198 resource, | 198 resource, |
199 out_bool | 199 out_bool |
200 ); | 200 ); |
201 return retval; | 201 return retval; |
202 } | 202 } |
203 | 203 |
204 NaClSrpcError PpbAudioConfigRpcClient::PPB_AudioConfig_RecommendSampleFrameCount _1_0( | |
brettw
2012/02/10 19:01:33
I'd wrap at the space.
nfullagar
2012/02/14 00:42:37
this is autogenerated code...
| |
205 NaClSrpcChannel* channel, | |
206 int32_t request_sample_rate, | |
207 int32_t request_sample_frame_count, | |
208 int32_t* out_sample_frame_count) { | |
209 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(), | |
210 ("%s: PPAPI calls are not supported off the main thread\n", | |
211 __FUNCTION__)); | |
212 NaClSrpcError retval; | |
213 retval = NaClSrpcInvokeBySignature( | |
214 channel, | |
215 "PPB_AudioConfig_RecommendSampleFrameCount_1_0:ii:i", | |
216 request_sample_rate, | |
217 request_sample_frame_count, | |
218 out_sample_frame_count | |
219 ); | |
220 return retval; | |
221 } | |
222 | |
204 NaClSrpcError PpbAudioConfigRpcClient::PPB_AudioConfig_RecommendSampleFrameCount ( | 223 NaClSrpcError PpbAudioConfigRpcClient::PPB_AudioConfig_RecommendSampleFrameCount ( |
205 NaClSrpcChannel* channel, | 224 NaClSrpcChannel* channel, |
225 PP_Instance instance, | |
206 int32_t request_sample_rate, | 226 int32_t request_sample_rate, |
207 int32_t request_sample_frame_count, | 227 int32_t request_sample_frame_count, |
208 int32_t* out_sample_frame_count) { | 228 int32_t* out_sample_frame_count) { |
209 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(), | 229 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(), |
210 ("%s: PPAPI calls are not supported off the main thread\n", | 230 ("%s: PPAPI calls are not supported off the main thread\n", |
211 __FUNCTION__)); | 231 __FUNCTION__)); |
212 NaClSrpcError retval; | 232 NaClSrpcError retval; |
213 retval = NaClSrpcInvokeBySignature( | 233 retval = NaClSrpcInvokeBySignature( |
214 channel, | 234 channel, |
215 "PPB_AudioConfig_RecommendSampleFrameCount:ii:i", | 235 "PPB_AudioConfig_RecommendSampleFrameCount:iii:i", |
236 instance, | |
216 request_sample_rate, | 237 request_sample_rate, |
217 request_sample_frame_count, | 238 request_sample_frame_count, |
218 out_sample_frame_count | 239 out_sample_frame_count |
219 ); | 240 ); |
220 return retval; | 241 return retval; |
221 } | 242 } |
222 | 243 |
223 NaClSrpcError PpbAudioConfigRpcClient::PPB_AudioConfig_GetSampleRate( | 244 NaClSrpcError PpbAudioConfigRpcClient::PPB_AudioConfig_GetSampleRate( |
224 NaClSrpcChannel* channel, | 245 NaClSrpcChannel* channel, |
225 PP_Resource resource, | 246 PP_Resource resource, |
(...skipping 21 matching lines...) Expand all Loading... | |
247 NaClSrpcError retval; | 268 NaClSrpcError retval; |
248 retval = NaClSrpcInvokeBySignature( | 269 retval = NaClSrpcInvokeBySignature( |
249 channel, | 270 channel, |
250 "PPB_AudioConfig_GetSampleFrameCount:i:i", | 271 "PPB_AudioConfig_GetSampleFrameCount:i:i", |
251 resource, | 272 resource, |
252 sample_frame_count | 273 sample_frame_count |
253 ); | 274 ); |
254 return retval; | 275 return retval; |
255 } | 276 } |
256 | 277 |
278 NaClSrpcError PpbAudioConfigRpcClient::PPB_AudioConfig_RecommendSampleRate( | |
279 NaClSrpcChannel* channel, | |
280 PP_Instance instance, | |
281 int32_t* sample_rate) { | |
282 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(), | |
283 ("%s: PPAPI calls are not supported off the main thread\n", | |
284 __FUNCTION__)); | |
285 NaClSrpcError retval; | |
286 retval = NaClSrpcInvokeBySignature( | |
287 channel, | |
288 "PPB_AudioConfig_RecommendSampleRate:i:i", | |
289 instance, | |
290 sample_rate | |
291 ); | |
292 return retval; | |
293 } | |
294 | |
257 NaClSrpcError PpbCoreRpcClient::PPB_Core_AddRefResource( | 295 NaClSrpcError PpbCoreRpcClient::PPB_Core_AddRefResource( |
258 NaClSrpcChannel* channel, | 296 NaClSrpcChannel* channel, |
259 PP_Resource resource) { | 297 PP_Resource resource) { |
260 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(), | 298 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(), |
261 ("%s: PPAPI calls are not supported off the main thread\n", | 299 ("%s: PPAPI calls are not supported off the main thread\n", |
262 __FUNCTION__)); | 300 __FUNCTION__)); |
263 NaClSrpcError retval; | 301 NaClSrpcError retval; |
264 retval = NaClSrpcInvokeBySignature( | 302 retval = NaClSrpcInvokeBySignature( |
265 channel, | 303 channel, |
266 "PPB_Core_AddRefResource:i:", | 304 "PPB_Core_AddRefResource:i:", |
(...skipping 3294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3561 channel, | 3599 channel, |
3562 "PPB_Zoom_ZoomLimitsChanged:idd:", | 3600 "PPB_Zoom_ZoomLimitsChanged:idd:", |
3563 instance, | 3601 instance, |
3564 minimum_factor, | 3602 minimum_factor, |
3565 maximum_factor | 3603 maximum_factor |
3566 ); | 3604 ); |
3567 return retval; | 3605 return retval; |
3568 } | 3606 } |
3569 | 3607 |
3570 | 3608 |
OLD | NEW |