| Index: ppapi/native_client/tests/ppapi_messaging/ppapi_messaging.c
|
| diff --git a/ppapi/native_client/tests/ppapi_messaging/ppapi_messaging.c b/ppapi/native_client/tests/ppapi_messaging/ppapi_messaging.c
|
| index 1caedd1b1624093e368ee2e1a028a4fdc901b150..88543434b663a27aa5b1215d5555f5def7f2cd2e 100644
|
| --- a/ppapi/native_client/tests/ppapi_messaging/ppapi_messaging.c
|
| +++ b/ppapi/native_client/tests/ppapi_messaging/ppapi_messaging.c
|
| @@ -32,14 +32,14 @@ struct MessageInfo {
|
| struct PP_Var message;
|
| };
|
|
|
| -static struct PPB_Var* GetPPB_Var() {
|
| - return (struct PPB_Var*)(*get_browser_interface_func)(PPB_VAR_INTERFACE);
|
| +static PPB_Var* GetPPB_Var() {
|
| + return (PPB_Var*)(*get_browser_interface_func)(PPB_VAR_INTERFACE);
|
| }
|
|
|
| static void SendOnMessageEventCallback(void* data, int32_t result) {
|
| struct MessageInfo* message_to_send = (struct MessageInfo*)data;
|
| - struct PPB_Messaging* ppb_messaging =
|
| - (struct PPB_Messaging*)(*get_browser_interface_func)(
|
| + PPB_Messaging* ppb_messaging =
|
| + (PPB_Messaging*)(*get_browser_interface_func)(
|
| PPB_MESSAGING_INTERFACE);
|
|
|
| UNREFERENCED_PARAMETER(result);
|
| @@ -53,7 +53,7 @@ static void SendOnMessageEventCallback(void* data, int32_t result) {
|
| * dereference it.
|
| */
|
| if (message_to_send->message.type == PP_VARTYPE_STRING) {
|
| - struct PPB_Var* ppb_var = GetPPB_Var();
|
| + PPB_Var* ppb_var = GetPPB_Var();
|
| ppb_var->Release(message_to_send->message);
|
| }
|
| free(message_to_send);
|
| @@ -63,14 +63,14 @@ static void SendOnMessageEventCallback(void* data, int32_t result) {
|
| * HandleMessage to ensure that this is all asynchronous.
|
| */
|
| void HandleMessage(PP_Instance instance, struct PP_Var message) {
|
| - struct PPB_Core* ppb_core =
|
| - (struct PPB_Core*)(*get_browser_interface_func)(PPB_CORE_INTERFACE);
|
| + PPB_Core* ppb_core =
|
| + (PPB_Core*)(*get_browser_interface_func)(PPB_CORE_INTERFACE);
|
| struct MessageInfo* message_to_send = malloc(sizeof(struct MessageInfo));
|
| message_to_send->instance = instance;
|
| message_to_send->message = message;
|
|
|
| if (message.type == PP_VARTYPE_STRING) {
|
| - struct PPB_Var* ppb_var = GetPPB_Var();
|
| + PPB_Var* ppb_var = GetPPB_Var();
|
| /* If the message is a string, add reference to go with the copy we did
|
| * above.
|
| */
|
| @@ -133,7 +133,7 @@ PP_EXPORT void PPP_ShutdownModule() {
|
| PP_EXPORT const void* PPP_GetInterface(const char* interface_name) {
|
| if (0 == strncmp(PPP_INSTANCE_INTERFACE, interface_name,
|
| strlen(PPP_INSTANCE_INTERFACE))) {
|
| - static struct PPP_Instance instance_interface = {
|
| + static PPP_Instance instance_interface = {
|
| DidCreate,
|
| DidDestroy,
|
| DidChangeView,
|
| @@ -143,7 +143,7 @@ PP_EXPORT const void* PPP_GetInterface(const char* interface_name) {
|
| return &instance_interface;
|
| } else if (0 == strncmp(PPP_MESSAGING_INTERFACE, interface_name,
|
| strlen(PPP_MESSAGING_INTERFACE))) {
|
| - static struct PPP_Messaging messaging_interface = {
|
| + static PPP_Messaging messaging_interface = {
|
| HandleMessage
|
| };
|
| return &messaging_interface;
|
|
|