diff options
Diffstat (limited to 'ppapi/c/ppb_class.h')
-rw-r--r-- | ppapi/c/ppb_class.h | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/ppapi/c/ppb_class.h b/ppapi/c/ppb_class.h index c4718dd..5b027f9 100644 --- a/ppapi/c/ppb_class.h +++ b/ppapi/c/ppb_class.h @@ -8,9 +8,10 @@ #include "ppapi/c/pp_module.h" #include "ppapi/c/pp_resource.h" #include "ppapi/c/pp_stdint.h" +#include "ppapi/c/pp_var.h" #include "ppapi/c/ppb_var.h" -#define PPB_CLASS_INTERFACE "PPB_Class;0.1" +#define PPB_CLASS_INTERFACE "PPB_Class;0.2" /** * @file @@ -29,9 +30,11 @@ * different native_ptr information, make sure you can handle the case of * JS calling one object's function with another object set as this. */ -typedef PP_Var (*PP_ClassFunction)(void* native_ptr, PP_Var this_object, - PP_Var* args, uint32_t argc, - PP_Var* exception); +typedef struct PP_Var (*PP_ClassFunction)(void* native_ptr, + struct PP_Var this_object, /*NOLINT*/ + struct PP_Var* args, + uint32_t argc, + struct PP_Var* exception); typedef void (*PP_ClassDestructor)(void* native_ptr); @@ -101,7 +104,7 @@ struct PPB_Class { PP_Resource (*Create)(PP_Module module, PP_ClassDestructor destruct, PP_ClassFunction invoke, - PP_ClassProperty* properties); + struct PP_ClassProperty* properties); /** * Creates an instance of the given class, and attaches given native pointer @@ -109,8 +112,9 @@ struct PPB_Class { * * If the class_object is invalid, throws an exception. */ - PP_Var (*Instantiate)(PP_Resource class_object, - void* native_ptr, PP_Var* exception); + struct PP_Var (*Instantiate)(PP_Resource class_object, + void* native_ptr, + struct PP_Var* exception); }; /** @@ -118,4 +122,3 @@ struct PPB_Class { * End addtogroup PPP */ #endif // PPAPI_C_PPP_CLASS_H_ - |