Chromium Code Reviews| Index: ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c |
| diff --git a/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c b/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c |
| index f48f42de98b52bbef0221220d79d60d670f2646f..6dffb96974c42cea3d662eb942db3ae31763f7ac 100644 |
| --- a/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c |
| +++ b/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c |
| @@ -3,7 +3,7 @@ |
| * found in the LICENSE file. |
| */ |
| -/* Last generated from IDL: Thu Oct 4 12:24:28 2012. */ |
| +/* Last generated from IDL: Sat Oct 6 16:36:46 2012. */ |
|
xhwang
2012/10/08 17:16:13
Oh my, I am overwhelmed by the change in this file
Tom Finegan
2012/10/08 23:23:27
Merging and rebasing this file is even more fun th
xhwang
2012/10/09 00:49:08
;) Good luck and thanks for the effort!
|
| #include "ppapi/generators/pnacl_shim.h" |
| #include "ppapi/c/ppb.h" |
| @@ -201,7 +201,7 @@ static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_VideoDecoder_Dev_0_10; |
| static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_VideoDecoder_Dev_0_11; |
| static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Widget_Dev_0_2; |
| static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Zoom_Dev_0_3; |
| -static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_2; |
| +static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_3; |
| static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRefPrivate_0_1; |
| static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_12_0; |
| static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_12_1; |
| @@ -233,7 +233,7 @@ static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_3; |
| static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_Private_0_4; |
| static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UMA_Private_0_1; |
| static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_X509Certificate_Private_0_1; |
| -static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_0_2; |
| +static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_0_3; |
| static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Flash_BrowserOperations_1_0; |
| static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Flash_BrowserOperations_1_2; |
| static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Flash_BrowserOperations_1_3; |
| @@ -1950,51 +1950,57 @@ void Pnacl_M14_PPB_VideoDecoder_Dev_Destroy(PP_Resource video_decoder) { |
| /* Not generating wrapper methods for PPP_Zoom_Dev_0_3 */ |
| -/* Begin wrapper methods for PPB_ContentDecryptor_Private_0_2 */ |
| +/* Begin wrapper methods for PPB_ContentDecryptor_Private_0_3 */ |
| static __attribute__((pnaclcall)) |
| void Pnacl_M23_PPB_ContentDecryptor_Private_NeedKey(PP_Instance instance, struct PP_Var key_system, struct PP_Var session_id, struct PP_Var init_data) { |
| - const struct PPB_ContentDecryptor_Private_0_2 *iface = Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_2.real_iface; |
| + const struct PPB_ContentDecryptor_Private_0_3 *iface = Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_3.real_iface; |
| iface->NeedKey(instance, key_system, session_id, init_data); |
| } |
| static __attribute__((pnaclcall)) |
| void Pnacl_M23_PPB_ContentDecryptor_Private_KeyAdded(PP_Instance instance, struct PP_Var key_system, struct PP_Var session_id) { |
| - const struct PPB_ContentDecryptor_Private_0_2 *iface = Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_2.real_iface; |
| + const struct PPB_ContentDecryptor_Private_0_3 *iface = Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_3.real_iface; |
| iface->KeyAdded(instance, key_system, session_id); |
| } |
| static __attribute__((pnaclcall)) |
| void Pnacl_M23_PPB_ContentDecryptor_Private_KeyMessage(PP_Instance instance, struct PP_Var key_system, struct PP_Var session_id, PP_Resource message, struct PP_Var default_url) { |
| - const struct PPB_ContentDecryptor_Private_0_2 *iface = Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_2.real_iface; |
| + const struct PPB_ContentDecryptor_Private_0_3 *iface = Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_3.real_iface; |
| iface->KeyMessage(instance, key_system, session_id, message, default_url); |
| } |
| static __attribute__((pnaclcall)) |
| void Pnacl_M23_PPB_ContentDecryptor_Private_KeyError(PP_Instance instance, struct PP_Var key_system, struct PP_Var session_id, int32_t media_error, int32_t system_code) { |
| - const struct PPB_ContentDecryptor_Private_0_2 *iface = Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_2.real_iface; |
| + const struct PPB_ContentDecryptor_Private_0_3 *iface = Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_3.real_iface; |
| iface->KeyError(instance, key_system, session_id, media_error, system_code); |
| } |
| static __attribute__((pnaclcall)) |
| void Pnacl_M23_PPB_ContentDecryptor_Private_DeliverBlock(PP_Instance instance, PP_Resource decrypted_block, const struct PP_DecryptedBlockInfo* decrypted_block_info) { |
| - const struct PPB_ContentDecryptor_Private_0_2 *iface = Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_2.real_iface; |
| + const struct PPB_ContentDecryptor_Private_0_3 *iface = Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_3.real_iface; |
| iface->DeliverBlock(instance, decrypted_block, decrypted_block_info); |
| } |
| static __attribute__((pnaclcall)) |
| +void Pnacl_M23_PPB_ContentDecryptor_Private_DecoderInitializeStatus(PP_Instance instance, PP_Bool success, uint32_t request_id) { |
| + const struct PPB_ContentDecryptor_Private_0_3 *iface = Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_3.real_iface; |
| + iface->DecoderInitializeStatus(instance, success, request_id); |
| +} |
| + |
| +static __attribute__((pnaclcall)) |
| void Pnacl_M23_PPB_ContentDecryptor_Private_DeliverFrame(PP_Instance instance, PP_Resource decrypted_frame, const struct PP_DecryptedFrameInfo* decrypted_frame_info) { |
| - const struct PPB_ContentDecryptor_Private_0_2 *iface = Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_2.real_iface; |
| + const struct PPB_ContentDecryptor_Private_0_3 *iface = Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_3.real_iface; |
| iface->DeliverFrame(instance, decrypted_frame, decrypted_frame_info); |
| } |
| static __attribute__((pnaclcall)) |
| void Pnacl_M23_PPB_ContentDecryptor_Private_DeliverSamples(PP_Instance instance, PP_Resource decrypted_samples, const struct PP_DecryptedBlockInfo* decrypted_block_info) { |
| - const struct PPB_ContentDecryptor_Private_0_2 *iface = Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_2.real_iface; |
| + const struct PPB_ContentDecryptor_Private_0_3 *iface = Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_3.real_iface; |
| iface->DeliverSamples(instance, decrypted_samples, decrypted_block_info); |
| } |
| -/* End wrapper methods for PPB_ContentDecryptor_Private_0_2 */ |
| +/* End wrapper methods for PPB_ContentDecryptor_Private_0_3 */ |
| /* Begin wrapper methods for PPB_FileRefPrivate_0_1 */ |
| @@ -3328,39 +3334,45 @@ struct PP_Var Pnacl_M19_PPB_X509Certificate_Private_GetField(PP_Resource resourc |
| /* End wrapper methods for PPB_X509Certificate_Private_0_1 */ |
| -/* Begin wrapper methods for PPP_ContentDecryptor_Private_0_2 */ |
| +/* Begin wrapper methods for PPP_ContentDecryptor_Private_0_3 */ |
| static void Pnacl_M23_PPP_ContentDecryptor_Private_GenerateKeyRequest(PP_Instance instance, struct PP_Var key_system, struct PP_Var init_data) { |
| - const struct PPP_ContentDecryptor_Private_0_2 *iface = Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_0_2.real_iface; |
| + const struct PPP_ContentDecryptor_Private_0_3 *iface = Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_0_3.real_iface; |
| void (__attribute__((pnaclcall)) *temp_fp)(PP_Instance instance, struct PP_Var key_system, struct PP_Var init_data) = ((void (__attribute__((pnaclcall)) *)(PP_Instance instance, struct PP_Var key_system, struct PP_Var init_data))iface->GenerateKeyRequest); |
| temp_fp(instance, key_system, init_data); |
| } |
| static void Pnacl_M23_PPP_ContentDecryptor_Private_AddKey(PP_Instance instance, struct PP_Var session_id, struct PP_Var key, struct PP_Var init_data) { |
| - const struct PPP_ContentDecryptor_Private_0_2 *iface = Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_0_2.real_iface; |
| + const struct PPP_ContentDecryptor_Private_0_3 *iface = Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_0_3.real_iface; |
| void (__attribute__((pnaclcall)) *temp_fp)(PP_Instance instance, struct PP_Var session_id, struct PP_Var key, struct PP_Var init_data) = ((void (__attribute__((pnaclcall)) *)(PP_Instance instance, struct PP_Var session_id, struct PP_Var key, struct PP_Var init_data))iface->AddKey); |
| temp_fp(instance, session_id, key, init_data); |
| } |
| static void Pnacl_M23_PPP_ContentDecryptor_Private_CancelKeyRequest(PP_Instance instance, struct PP_Var session_id) { |
| - const struct PPP_ContentDecryptor_Private_0_2 *iface = Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_0_2.real_iface; |
| + const struct PPP_ContentDecryptor_Private_0_3 *iface = Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_0_3.real_iface; |
| void (__attribute__((pnaclcall)) *temp_fp)(PP_Instance instance, struct PP_Var session_id) = ((void (__attribute__((pnaclcall)) *)(PP_Instance instance, struct PP_Var session_id))iface->CancelKeyRequest); |
| temp_fp(instance, session_id); |
| } |
| static void Pnacl_M23_PPP_ContentDecryptor_Private_Decrypt(PP_Instance instance, PP_Resource encrypted_block, const struct PP_EncryptedBlockInfo* encrypted_block_info) { |
| - const struct PPP_ContentDecryptor_Private_0_2 *iface = Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_0_2.real_iface; |
| + const struct PPP_ContentDecryptor_Private_0_3 *iface = Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_0_3.real_iface; |
| void (__attribute__((pnaclcall)) *temp_fp)(PP_Instance instance, PP_Resource encrypted_block, const struct PP_EncryptedBlockInfo* encrypted_block_info) = ((void (__attribute__((pnaclcall)) *)(PP_Instance instance, PP_Resource encrypted_block, const struct PP_EncryptedBlockInfo* encrypted_block_info))iface->Decrypt); |
| temp_fp(instance, encrypted_block, encrypted_block_info); |
| } |
| +static void Pnacl_M23_PPP_ContentDecryptor_Private_InitializeVideoDecoder(PP_Instance instance, const struct PP_VideoDecoderConfig* decoder_config, PP_Resource codec_extra_data) { |
| + const struct PPP_ContentDecryptor_Private_0_3 *iface = Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_0_3.real_iface; |
| + void (__attribute__((pnaclcall)) *temp_fp)(PP_Instance instance, const struct PP_VideoDecoderConfig* decoder_config, PP_Resource codec_extra_data) = ((void (__attribute__((pnaclcall)) *)(PP_Instance instance, const struct PP_VideoDecoderConfig* decoder_config, PP_Resource codec_extra_data))iface->InitializeVideoDecoder); |
| + temp_fp(instance, decoder_config, codec_extra_data); |
| +} |
| + |
| static void Pnacl_M23_PPP_ContentDecryptor_Private_DecryptAndDecodeFrame(PP_Instance instance, PP_Resource encrypted_video_frame, const struct PP_EncryptedVideoFrameInfo* encrypted_video_frame_info) { |
| - const struct PPP_ContentDecryptor_Private_0_2 *iface = Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_0_2.real_iface; |
| + const struct PPP_ContentDecryptor_Private_0_3 *iface = Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_0_3.real_iface; |
| void (__attribute__((pnaclcall)) *temp_fp)(PP_Instance instance, PP_Resource encrypted_video_frame, const struct PP_EncryptedVideoFrameInfo* encrypted_video_frame_info) = ((void (__attribute__((pnaclcall)) *)(PP_Instance instance, PP_Resource encrypted_video_frame, const struct PP_EncryptedVideoFrameInfo* encrypted_video_frame_info))iface->DecryptAndDecodeFrame); |
| temp_fp(instance, encrypted_video_frame, encrypted_video_frame_info); |
| } |
| -/* End wrapper methods for PPP_ContentDecryptor_Private_0_2 */ |
| +/* End wrapper methods for PPP_ContentDecryptor_Private_0_3 */ |
| /* Not generating wrapper methods for PPP_Flash_BrowserOperations_1_0 */ |
| @@ -3843,12 +3855,13 @@ struct PPB_VideoDecoder_Dev_0_16 Pnacl_Wrappers_PPB_VideoDecoder_Dev_0_16 = { |
| /* Not generating wrapper interface for PPP_Zoom_Dev_0_3 */ |
| -struct PPB_ContentDecryptor_Private_0_2 Pnacl_Wrappers_PPB_ContentDecryptor_Private_0_2 = { |
| +struct PPB_ContentDecryptor_Private_0_3 Pnacl_Wrappers_PPB_ContentDecryptor_Private_0_3 = { |
| .NeedKey = (void (*)(PP_Instance instance, struct PP_Var key_system, struct PP_Var session_id, struct PP_Var init_data))&Pnacl_M23_PPB_ContentDecryptor_Private_NeedKey, |
| .KeyAdded = (void (*)(PP_Instance instance, struct PP_Var key_system, struct PP_Var session_id))&Pnacl_M23_PPB_ContentDecryptor_Private_KeyAdded, |
| .KeyMessage = (void (*)(PP_Instance instance, struct PP_Var key_system, struct PP_Var session_id, PP_Resource message, struct PP_Var default_url))&Pnacl_M23_PPB_ContentDecryptor_Private_KeyMessage, |
| .KeyError = (void (*)(PP_Instance instance, struct PP_Var key_system, struct PP_Var session_id, int32_t media_error, int32_t system_code))&Pnacl_M23_PPB_ContentDecryptor_Private_KeyError, |
| .DeliverBlock = (void (*)(PP_Instance instance, PP_Resource decrypted_block, const struct PP_DecryptedBlockInfo* decrypted_block_info))&Pnacl_M23_PPB_ContentDecryptor_Private_DeliverBlock, |
| + .DecoderInitializeStatus = (void (*)(PP_Instance instance, PP_Bool success, uint32_t request_id))&Pnacl_M23_PPB_ContentDecryptor_Private_DecoderInitializeStatus, |
| .DeliverFrame = (void (*)(PP_Instance instance, PP_Resource decrypted_frame, const struct PP_DecryptedFrameInfo* decrypted_frame_info))&Pnacl_M23_PPB_ContentDecryptor_Private_DeliverFrame, |
| .DeliverSamples = (void (*)(PP_Instance instance, PP_Resource decrypted_samples, const struct PP_DecryptedBlockInfo* decrypted_block_info))&Pnacl_M23_PPB_ContentDecryptor_Private_DeliverSamples |
| }; |
| @@ -4144,11 +4157,12 @@ struct PPB_X509Certificate_Private_0_1 Pnacl_Wrappers_PPB_X509Certificate_Privat |
| .GetField = (struct PP_Var (*)(PP_Resource resource, PP_X509Certificate_Private_Field field))&Pnacl_M19_PPB_X509Certificate_Private_GetField |
| }; |
| -struct PPP_ContentDecryptor_Private_0_2 Pnacl_Wrappers_PPP_ContentDecryptor_Private_0_2 = { |
| +struct PPP_ContentDecryptor_Private_0_3 Pnacl_Wrappers_PPP_ContentDecryptor_Private_0_3 = { |
| .GenerateKeyRequest = (void (*)(PP_Instance instance, struct PP_Var key_system, struct PP_Var init_data))&Pnacl_M23_PPP_ContentDecryptor_Private_GenerateKeyRequest, |
| .AddKey = (void (*)(PP_Instance instance, struct PP_Var session_id, struct PP_Var key, struct PP_Var init_data))&Pnacl_M23_PPP_ContentDecryptor_Private_AddKey, |
| .CancelKeyRequest = (void (*)(PP_Instance instance, struct PP_Var session_id))&Pnacl_M23_PPP_ContentDecryptor_Private_CancelKeyRequest, |
| .Decrypt = (void (*)(PP_Instance instance, PP_Resource encrypted_block, const struct PP_EncryptedBlockInfo* encrypted_block_info))&Pnacl_M23_PPP_ContentDecryptor_Private_Decrypt, |
| + .InitializeVideoDecoder = (void (*)(PP_Instance instance, const struct PP_VideoDecoderConfig* decoder_config, PP_Resource codec_extra_data))&Pnacl_M23_PPP_ContentDecryptor_Private_InitializeVideoDecoder, |
| .DecryptAndDecodeFrame = (void (*)(PP_Instance instance, PP_Resource encrypted_video_frame, const struct PP_EncryptedVideoFrameInfo* encrypted_video_frame_info))&Pnacl_M23_PPP_ContentDecryptor_Private_DecryptAndDecodeFrame |
| }; |
| @@ -4702,9 +4716,9 @@ static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Zoom_Dev_0_3 = { |
| .real_iface = NULL |
| }; |
| -static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_2 = { |
| - .iface_macro = PPB_CONTENTDECRYPTOR_PRIVATE_INTERFACE_0_2, |
| - .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_ContentDecryptor_Private_0_2, |
| +static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_3 = { |
| + .iface_macro = PPB_CONTENTDECRYPTOR_PRIVATE_INTERFACE_0_3, |
| + .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_ContentDecryptor_Private_0_3, |
| .real_iface = NULL |
| }; |
| @@ -4894,9 +4908,9 @@ static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_X509Certificate_Private_0 |
| .real_iface = NULL |
| }; |
| -static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_0_2 = { |
| - .iface_macro = PPP_CONTENTDECRYPTOR_PRIVATE_INTERFACE_0_2, |
| - .wrapped_iface = (void *) &Pnacl_Wrappers_PPP_ContentDecryptor_Private_0_2, |
| +static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_0_3 = { |
| + .iface_macro = PPP_CONTENTDECRYPTOR_PRIVATE_INTERFACE_0_3, |
| + .wrapped_iface = (void *) &Pnacl_Wrappers_PPP_ContentDecryptor_Private_0_3, |
| .real_iface = NULL |
| }; |
| @@ -5001,7 +5015,7 @@ static struct __PnaclWrapperInfo *s_ppb_wrappers[] = { |
| &Pnacl_WrapperInfo_PPB_Widget_Dev_0_3, |
| &Pnacl_WrapperInfo_PPB_Widget_Dev_0_4, |
| &Pnacl_WrapperInfo_PPB_Zoom_Dev_0_2, |
| - &Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_2, |
| + &Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_3, |
| &Pnacl_WrapperInfo_PPB_FileRefPrivate_0_1, |
| &Pnacl_WrapperInfo_PPB_Flash_12_0, |
| &Pnacl_WrapperInfo_PPB_Flash_12_1, |
| @@ -5051,7 +5065,7 @@ static struct __PnaclWrapperInfo *s_ppp_wrappers[] = { |
| &Pnacl_WrapperInfo_PPP_VideoDecoder_Dev_0_11, |
| &Pnacl_WrapperInfo_PPP_Widget_Dev_0_2, |
| &Pnacl_WrapperInfo_PPP_Zoom_Dev_0_3, |
| - &Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_0_2, |
| + &Pnacl_WrapperInfo_PPP_ContentDecryptor_Private_0_3, |
| &Pnacl_WrapperInfo_PPP_Flash_BrowserOperations_1_0, |
| &Pnacl_WrapperInfo_PPP_Flash_BrowserOperations_1_2, |
| &Pnacl_WrapperInfo_PPP_Flash_BrowserOperations_1_3, |