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

Side by Side Diff: ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c

Issue 156863005: [PPAPI][MediaStream] Rename AudioFrame to AudioBuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@frame_to_buffer
Patch Set: Update Created 6 years, 10 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
OLDNEW
1 /* Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2014 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 5
6 /* NOTE: this is auto-generated from IDL */ 6 /* NOTE: this is auto-generated from IDL */
7 #include "ppapi/generators/pnacl_shim.h" 7 #include "ppapi/generators/pnacl_shim.h"
8 8
9 #include "ppapi/c/ppb.h" 9 #include "ppapi/c/ppb.h"
10 #include "ppapi/c/dev/ppb_alarms_dev.h" 10 #include "ppapi/c/dev/ppb_alarms_dev.h"
(...skipping 24 matching lines...) Expand all
35 #include "ppapi/c/dev/ppp_printing_dev.h" 35 #include "ppapi/c/dev/ppp_printing_dev.h"
36 #include "ppapi/c/dev/ppp_scrollbar_dev.h" 36 #include "ppapi/c/dev/ppp_scrollbar_dev.h"
37 #include "ppapi/c/dev/ppp_selection_dev.h" 37 #include "ppapi/c/dev/ppp_selection_dev.h"
38 #include "ppapi/c/dev/ppp_text_input_dev.h" 38 #include "ppapi/c/dev/ppp_text_input_dev.h"
39 #include "ppapi/c/dev/ppp_video_capture_dev.h" 39 #include "ppapi/c/dev/ppp_video_capture_dev.h"
40 #include "ppapi/c/dev/ppp_video_decoder_dev.h" 40 #include "ppapi/c/dev/ppp_video_decoder_dev.h"
41 #include "ppapi/c/dev/ppp_widget_dev.h" 41 #include "ppapi/c/dev/ppp_widget_dev.h"
42 #include "ppapi/c/dev/ppp_zoom_dev.h" 42 #include "ppapi/c/dev/ppp_zoom_dev.h"
43 #include "ppapi/c/extensions/dev/ppb_ext_socket_dev.h" 43 #include "ppapi/c/extensions/dev/ppb_ext_socket_dev.h"
44 #include "ppapi/c/ppb_audio.h" 44 #include "ppapi/c/ppb_audio.h"
45 #include "ppapi/c/ppb_audio_buffer.h"
45 #include "ppapi/c/ppb_audio_config.h" 46 #include "ppapi/c/ppb_audio_config.h"
46 #include "ppapi/c/ppb_audio_frame.h"
47 #include "ppapi/c/ppb_console.h" 47 #include "ppapi/c/ppb_console.h"
48 #include "ppapi/c/ppb_core.h" 48 #include "ppapi/c/ppb_core.h"
49 #include "ppapi/c/ppb_file_io.h" 49 #include "ppapi/c/ppb_file_io.h"
50 #include "ppapi/c/ppb_file_mapping.h" 50 #include "ppapi/c/ppb_file_mapping.h"
51 #include "ppapi/c/ppb_file_ref.h" 51 #include "ppapi/c/ppb_file_ref.h"
52 #include "ppapi/c/ppb_file_system.h" 52 #include "ppapi/c/ppb_file_system.h"
53 #include "ppapi/c/ppb_fullscreen.h" 53 #include "ppapi/c/ppb_fullscreen.h"
54 #include "ppapi/c/ppb_gamepad.h" 54 #include "ppapi/c/ppb_gamepad.h"
55 #include "ppapi/c/ppb_graphics_2d.h" 55 #include "ppapi/c/ppb_graphics_2d.h"
56 #include "ppapi/c/ppb_graphics_3d.h" 56 #include "ppapi/c/ppb_graphics_3d.h"
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_ 0_10; 240 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_ 0_10;
241 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Instance_Private_0_1; 241 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Instance_Private_0_1;
242 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Ext_Socket_Dev_0_1; 242 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Ext_Socket_Dev_0_1;
243 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Ext_Socket_Dev_0_2; 243 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Ext_Socket_Dev_0_2;
244 /* END Declarations for all Wrapper Infos. */ 244 /* END Declarations for all Wrapper Infos. */
245 245
246 /* Not generating wrapper methods for PPB_Audio_1_0 */ 246 /* Not generating wrapper methods for PPB_Audio_1_0 */
247 247
248 /* Not generating wrapper methods for PPB_Audio_1_1 */ 248 /* Not generating wrapper methods for PPB_Audio_1_1 */
249 249
250 /* Not generating wrapper methods for PPB_AudioBuffer_0_1 */
dmichael (off chromium) 2014/02/07 19:25:13 I just noticed this... +jvoung: do you know why t
jvoung (off chromium) 2014/02/07 19:33:50 The shim generator skips any interfaces where none
251
250 /* Not generating wrapper methods for PPB_AudioConfig_1_0 */ 252 /* Not generating wrapper methods for PPB_AudioConfig_1_0 */
251 253
252 /* Not generating wrapper methods for PPB_AudioConfig_1_1 */ 254 /* Not generating wrapper methods for PPB_AudioConfig_1_1 */
253 255
254 /* Not generating wrapper methods for PPB_AudioFrame_0_1 */
255
256 /* Begin wrapper methods for PPB_Console_1_0 */ 256 /* Begin wrapper methods for PPB_Console_1_0 */
257 257
258 static void Pnacl_M25_PPB_Console_Log(PP_Instance instance, PP_LogLevel level, s truct PP_Var* value) { 258 static void Pnacl_M25_PPB_Console_Log(PP_Instance instance, PP_LogLevel level, s truct PP_Var* value) {
259 const struct PPB_Console_1_0 *iface = Pnacl_WrapperInfo_PPB_Console_1_0.real_i face; 259 const struct PPB_Console_1_0 *iface = Pnacl_WrapperInfo_PPB_Console_1_0.real_i face;
260 iface->Log(instance, level, *value); 260 iface->Log(instance, level, *value);
261 } 261 }
262 262
263 static void Pnacl_M25_PPB_Console_LogWithSource(PP_Instance instance, PP_LogLeve l level, struct PP_Var* source, struct PP_Var* value) { 263 static void Pnacl_M25_PPB_Console_LogWithSource(PP_Instance instance, PP_LogLeve l level, struct PP_Var* source, struct PP_Var* value) {
264 const struct PPB_Console_1_0 *iface = Pnacl_WrapperInfo_PPB_Console_1_0.real_i face; 264 const struct PPB_Console_1_0 *iface = Pnacl_WrapperInfo_PPB_Console_1_0.real_i face;
265 iface->LogWithSource(instance, level, *source, *value); 265 iface->LogWithSource(instance, level, *source, *value);
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after
1053 static void Pnacl_M34_PPB_MediaStreamAudioTrack_GetId(struct PP_Var* _struct_res ult, PP_Resource audio_track) { 1053 static void Pnacl_M34_PPB_MediaStreamAudioTrack_GetId(struct PP_Var* _struct_res ult, PP_Resource audio_track) {
1054 const struct PPB_MediaStreamAudioTrack_0_1 *iface = Pnacl_WrapperInfo_PPB_Medi aStreamAudioTrack_0_1.real_iface; 1054 const struct PPB_MediaStreamAudioTrack_0_1 *iface = Pnacl_WrapperInfo_PPB_Medi aStreamAudioTrack_0_1.real_iface;
1055 *_struct_result = iface->GetId(audio_track); 1055 *_struct_result = iface->GetId(audio_track);
1056 } 1056 }
1057 1057
1058 static PP_Bool Pnacl_M34_PPB_MediaStreamAudioTrack_HasEnded(PP_Resource audio_tr ack) { 1058 static PP_Bool Pnacl_M34_PPB_MediaStreamAudioTrack_HasEnded(PP_Resource audio_tr ack) {
1059 const struct PPB_MediaStreamAudioTrack_0_1 *iface = Pnacl_WrapperInfo_PPB_Medi aStreamAudioTrack_0_1.real_iface; 1059 const struct PPB_MediaStreamAudioTrack_0_1 *iface = Pnacl_WrapperInfo_PPB_Medi aStreamAudioTrack_0_1.real_iface;
1060 return iface->HasEnded(audio_track); 1060 return iface->HasEnded(audio_track);
1061 } 1061 }
1062 1062
1063 static int32_t Pnacl_M34_PPB_MediaStreamAudioTrack_GetFrame(PP_Resource audio_tr ack, PP_Resource* frame, struct PP_CompletionCallback* callback) { 1063 static int32_t Pnacl_M34_PPB_MediaStreamAudioTrack_GetBuffer(PP_Resource audio_t rack, PP_Resource* buffer, struct PP_CompletionCallback* callback) {
1064 const struct PPB_MediaStreamAudioTrack_0_1 *iface = Pnacl_WrapperInfo_PPB_Medi aStreamAudioTrack_0_1.real_iface; 1064 const struct PPB_MediaStreamAudioTrack_0_1 *iface = Pnacl_WrapperInfo_PPB_Medi aStreamAudioTrack_0_1.real_iface;
1065 return iface->GetFrame(audio_track, frame, *callback); 1065 return iface->GetBuffer(audio_track, buffer, *callback);
1066 } 1066 }
1067 1067
1068 static int32_t Pnacl_M34_PPB_MediaStreamAudioTrack_RecycleFrame(PP_Resource audi o_track, PP_Resource frame) { 1068 static int32_t Pnacl_M34_PPB_MediaStreamAudioTrack_RecycleBuffer(PP_Resource aud io_track, PP_Resource buffer) {
1069 const struct PPB_MediaStreamAudioTrack_0_1 *iface = Pnacl_WrapperInfo_PPB_Medi aStreamAudioTrack_0_1.real_iface; 1069 const struct PPB_MediaStreamAudioTrack_0_1 *iface = Pnacl_WrapperInfo_PPB_Medi aStreamAudioTrack_0_1.real_iface;
1070 return iface->RecycleFrame(audio_track, frame); 1070 return iface->RecycleBuffer(audio_track, buffer);
1071 } 1071 }
1072 1072
1073 static void Pnacl_M34_PPB_MediaStreamAudioTrack_Close(PP_Resource audio_track) { 1073 static void Pnacl_M34_PPB_MediaStreamAudioTrack_Close(PP_Resource audio_track) {
1074 const struct PPB_MediaStreamAudioTrack_0_1 *iface = Pnacl_WrapperInfo_PPB_Medi aStreamAudioTrack_0_1.real_iface; 1074 const struct PPB_MediaStreamAudioTrack_0_1 *iface = Pnacl_WrapperInfo_PPB_Medi aStreamAudioTrack_0_1.real_iface;
1075 iface->Close(audio_track); 1075 iface->Close(audio_track);
1076 } 1076 }
1077 1077
1078 /* End wrapper methods for PPB_MediaStreamAudioTrack_0_1 */ 1078 /* End wrapper methods for PPB_MediaStreamAudioTrack_0_1 */
1079 1079
1080 /* Begin wrapper methods for PPB_MediaStreamVideoTrack_0_1 */ 1080 /* Begin wrapper methods for PPB_MediaStreamVideoTrack_0_1 */
(...skipping 3094 matching lines...) Expand 10 before | Expand all | Expand 10 after
4175 const struct PPB_Ext_Socket_Dev_0_2 *iface = Pnacl_WrapperInfo_PPB_Ext_Socket_ Dev_0_2.real_iface; 4175 const struct PPB_Ext_Socket_Dev_0_2 *iface = Pnacl_WrapperInfo_PPB_Ext_Socket_ Dev_0_2.real_iface;
4176 return iface->GetJoinedGroups(instance, *socket_id, groups, *callback); 4176 return iface->GetJoinedGroups(instance, *socket_id, groups, *callback);
4177 } 4177 }
4178 4178
4179 /* End wrapper methods for PPB_Ext_Socket_Dev_0_2 */ 4179 /* End wrapper methods for PPB_Ext_Socket_Dev_0_2 */
4180 4180
4181 /* Not generating wrapper interface for PPB_Audio_1_0 */ 4181 /* Not generating wrapper interface for PPB_Audio_1_0 */
4182 4182
4183 /* Not generating wrapper interface for PPB_Audio_1_1 */ 4183 /* Not generating wrapper interface for PPB_Audio_1_1 */
4184 4184
4185 /* Not generating wrapper interface for PPB_AudioBuffer_0_1 */
4186
4185 /* Not generating wrapper interface for PPB_AudioConfig_1_0 */ 4187 /* Not generating wrapper interface for PPB_AudioConfig_1_0 */
4186 4188
4187 /* Not generating wrapper interface for PPB_AudioConfig_1_1 */ 4189 /* Not generating wrapper interface for PPB_AudioConfig_1_1 */
4188 4190
4189 /* Not generating wrapper interface for PPB_AudioFrame_0_1 */
4190
4191 static struct PPB_Console_1_0 Pnacl_Wrappers_PPB_Console_1_0 = { 4191 static struct PPB_Console_1_0 Pnacl_Wrappers_PPB_Console_1_0 = {
4192 .Log = (void (*)(PP_Instance instance, PP_LogLevel level, struct PP_Var valu e))&Pnacl_M25_PPB_Console_Log, 4192 .Log = (void (*)(PP_Instance instance, PP_LogLevel level, struct PP_Var valu e))&Pnacl_M25_PPB_Console_Log,
4193 .LogWithSource = (void (*)(PP_Instance instance, PP_LogLevel level, struct P P_Var source, struct PP_Var value))&Pnacl_M25_PPB_Console_LogWithSource 4193 .LogWithSource = (void (*)(PP_Instance instance, PP_LogLevel level, struct P P_Var source, struct PP_Var value))&Pnacl_M25_PPB_Console_LogWithSource
4194 }; 4194 };
4195 4195
4196 static struct PPB_Core_1_0 Pnacl_Wrappers_PPB_Core_1_0 = { 4196 static struct PPB_Core_1_0 Pnacl_Wrappers_PPB_Core_1_0 = {
4197 .AddRefResource = (void (*)(PP_Resource resource))&Pnacl_M14_PPB_Core_AddRef Resource, 4197 .AddRefResource = (void (*)(PP_Resource resource))&Pnacl_M14_PPB_Core_AddRef Resource,
4198 .ReleaseResource = (void (*)(PP_Resource resource))&Pnacl_M14_PPB_Core_Relea seResource, 4198 .ReleaseResource = (void (*)(PP_Resource resource))&Pnacl_M14_PPB_Core_Relea seResource,
4199 .GetTime = (PP_Time (*)(void))&Pnacl_M14_PPB_Core_GetTime, 4199 .GetTime = (PP_Time (*)(void))&Pnacl_M14_PPB_Core_GetTime,
4200 .GetTimeTicks = (PP_TimeTicks (*)(void))&Pnacl_M14_PPB_Core_GetTimeTicks, 4200 .GetTimeTicks = (PP_TimeTicks (*)(void))&Pnacl_M14_PPB_Core_GetTimeTicks,
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
4395 }; 4395 };
4396 4396
4397 /* Not generating wrapper interface for PPB_Instance_1_0 */ 4397 /* Not generating wrapper interface for PPB_Instance_1_0 */
4398 4398
4399 static struct PPB_MediaStreamAudioTrack_0_1 Pnacl_Wrappers_PPB_MediaStreamAudioT rack_0_1 = { 4399 static struct PPB_MediaStreamAudioTrack_0_1 Pnacl_Wrappers_PPB_MediaStreamAudioT rack_0_1 = {
4400 .IsMediaStreamAudioTrack = (PP_Bool (*)(PP_Resource resource))&Pnacl_M34_PPB _MediaStreamAudioTrack_IsMediaStreamAudioTrack, 4400 .IsMediaStreamAudioTrack = (PP_Bool (*)(PP_Resource resource))&Pnacl_M34_PPB _MediaStreamAudioTrack_IsMediaStreamAudioTrack,
4401 .Configure = (int32_t (*)(PP_Resource audio_track, const int32_t attrib_list [], struct PP_CompletionCallback callback))&Pnacl_M34_PPB_MediaStreamAudioTrack_ Configure, 4401 .Configure = (int32_t (*)(PP_Resource audio_track, const int32_t attrib_list [], struct PP_CompletionCallback callback))&Pnacl_M34_PPB_MediaStreamAudioTrack_ Configure,
4402 .GetAttrib = (int32_t (*)(PP_Resource audio_track, PP_MediaStreamAudioTrack_ Attrib attrib, int32_t* value))&Pnacl_M34_PPB_MediaStreamAudioTrack_GetAttrib, 4402 .GetAttrib = (int32_t (*)(PP_Resource audio_track, PP_MediaStreamAudioTrack_ Attrib attrib, int32_t* value))&Pnacl_M34_PPB_MediaStreamAudioTrack_GetAttrib,
4403 .GetId = (struct PP_Var (*)(PP_Resource audio_track))&Pnacl_M34_PPB_MediaStr eamAudioTrack_GetId, 4403 .GetId = (struct PP_Var (*)(PP_Resource audio_track))&Pnacl_M34_PPB_MediaStr eamAudioTrack_GetId,
4404 .HasEnded = (PP_Bool (*)(PP_Resource audio_track))&Pnacl_M34_PPB_MediaStream AudioTrack_HasEnded, 4404 .HasEnded = (PP_Bool (*)(PP_Resource audio_track))&Pnacl_M34_PPB_MediaStream AudioTrack_HasEnded,
4405 .GetFrame = (int32_t (*)(PP_Resource audio_track, PP_Resource* frame, struct PP_CompletionCallback callback))&Pnacl_M34_PPB_MediaStreamAudioTrack_GetFrame, 4405 .GetBuffer = (int32_t (*)(PP_Resource audio_track, PP_Resource* buffer, stru ct PP_CompletionCallback callback))&Pnacl_M34_PPB_MediaStreamAudioTrack_GetBuffe r,
4406 .RecycleFrame = (int32_t (*)(PP_Resource audio_track, PP_Resource frame))&Pn acl_M34_PPB_MediaStreamAudioTrack_RecycleFrame, 4406 .RecycleBuffer = (int32_t (*)(PP_Resource audio_track, PP_Resource buffer))& Pnacl_M34_PPB_MediaStreamAudioTrack_RecycleBuffer,
4407 .Close = (void (*)(PP_Resource audio_track))&Pnacl_M34_PPB_MediaStreamAudioT rack_Close 4407 .Close = (void (*)(PP_Resource audio_track))&Pnacl_M34_PPB_MediaStreamAudioT rack_Close
4408 }; 4408 };
4409 4409
4410 static struct PPB_MediaStreamVideoTrack_0_1 Pnacl_Wrappers_PPB_MediaStreamVideoT rack_0_1 = { 4410 static struct PPB_MediaStreamVideoTrack_0_1 Pnacl_Wrappers_PPB_MediaStreamVideoT rack_0_1 = {
4411 .IsMediaStreamVideoTrack = (PP_Bool (*)(PP_Resource resource))&Pnacl_M34_PPB _MediaStreamVideoTrack_IsMediaStreamVideoTrack, 4411 .IsMediaStreamVideoTrack = (PP_Bool (*)(PP_Resource resource))&Pnacl_M34_PPB _MediaStreamVideoTrack_IsMediaStreamVideoTrack,
4412 .Configure = (int32_t (*)(PP_Resource video_track, const int32_t attrib_list [], struct PP_CompletionCallback callback))&Pnacl_M34_PPB_MediaStreamVideoTrack_ Configure, 4412 .Configure = (int32_t (*)(PP_Resource video_track, const int32_t attrib_list [], struct PP_CompletionCallback callback))&Pnacl_M34_PPB_MediaStreamVideoTrack_ Configure,
4413 .GetAttrib = (int32_t (*)(PP_Resource video_track, PP_MediaStreamVideoTrack_ Attrib attrib, int32_t* value))&Pnacl_M34_PPB_MediaStreamVideoTrack_GetAttrib, 4413 .GetAttrib = (int32_t (*)(PP_Resource video_track, PP_MediaStreamVideoTrack_ Attrib attrib, int32_t* value))&Pnacl_M34_PPB_MediaStreamVideoTrack_GetAttrib,
4414 .GetId = (struct PP_Var (*)(PP_Resource video_track))&Pnacl_M34_PPB_MediaStr eamVideoTrack_GetId, 4414 .GetId = (struct PP_Var (*)(PP_Resource video_track))&Pnacl_M34_PPB_MediaStr eamVideoTrack_GetId,
4415 .HasEnded = (PP_Bool (*)(PP_Resource video_track))&Pnacl_M34_PPB_MediaStream VideoTrack_HasEnded, 4415 .HasEnded = (PP_Bool (*)(PP_Resource video_track))&Pnacl_M34_PPB_MediaStream VideoTrack_HasEnded,
4416 .GetFrame = (int32_t (*)(PP_Resource video_track, PP_Resource* frame, struct PP_CompletionCallback callback))&Pnacl_M34_PPB_MediaStreamVideoTrack_GetFrame, 4416 .GetFrame = (int32_t (*)(PP_Resource video_track, PP_Resource* frame, struct PP_CompletionCallback callback))&Pnacl_M34_PPB_MediaStreamVideoTrack_GetFrame,
(...skipping 1661 matching lines...) Expand 10 before | Expand all | Expand 10 after
6078 if (NULL == iface) return NULL; 6078 if (NULL == iface) return NULL;
6079 wrapper->real_iface = iface; 6079 wrapper->real_iface = iface;
6080 } 6080 }
6081 6081
6082 if (wrapper->wrapped_iface) { 6082 if (wrapper->wrapped_iface) {
6083 return wrapper->wrapped_iface; 6083 return wrapper->wrapped_iface;
6084 } else { 6084 } else {
6085 return wrapper->real_iface; 6085 return wrapper->real_iface;
6086 } 6086 }
6087 } 6087 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698