diff options
Diffstat (limited to 'ppapi/c/dev/ppb_char_set_dev.h')
-rw-r--r-- | ppapi/c/dev/ppb_char_set_dev.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ppapi/c/dev/ppb_char_set_dev.h b/ppapi/c/dev/ppb_char_set_dev.h index 74c1ca5..6aca03715 100644 --- a/ppapi/c/dev/ppb_char_set_dev.h +++ b/ppapi/c/dev/ppb_char_set_dev.h @@ -5,8 +5,8 @@ #ifndef PPAPI_C_DEV_PPB_CHAR_SET_DEV_H_ #define PPAPI_C_DEV_PPB_CHAR_SET_DEV_H_ +#include "ppapi/c/pp_instance.h" #include "ppapi/c/pp_macros.h" -#include "ppapi/c/pp_module.h" #include "ppapi/c/pp_stdint.h" #include "ppapi/c/pp_var.h" @@ -50,7 +50,8 @@ struct PPB_CharSet_Dev { // This function will return NULL if there was an error converting the string // and you requested PP_CHARSET_CONVERSIONERROR_FAIL, or the output character // set was unknown. - char* (*UTF16ToCharSet)(const uint16_t* utf16, uint32_t utf16_len, + char* (*UTF16ToCharSet)(PP_Instance instance, + const uint16_t* utf16, uint32_t utf16_len, const char* output_char_set, enum PP_CharSet_ConversionError on_error, uint32_t* output_length); @@ -63,7 +64,8 @@ struct PPB_CharSet_Dev { // Since UTF16 can represent every Unicode character, the only time the // replacement character will be used is if the encoding in the input string // is incorrect. - uint16_t* (*CharSetToUTF16)(const char* input, uint32_t input_len, + uint16_t* (*CharSetToUTF16)(PP_Instance instance, + const char* input, uint32_t input_len, const char* input_char_set, enum PP_CharSet_ConversionError on_error, uint32_t* output_length); @@ -74,7 +76,7 @@ struct PPB_CharSet_Dev { // WARNING: You really shouldn't be using this function unless you're dealing // with legacy data. You should be using UTF-8 or UTF-16 and you don't have // to worry about the character sets. - struct PP_Var (*GetDefaultCharSet)(PP_Module module); + struct PP_Var (*GetDefaultCharSet)(PP_Instance instance); }; #endif /* PPAPI_C_DEV_PPB_CHAR_SET_DEV_H_ */ |