Pepper_56_C_interfaces
Pepper_56_C_interfaces
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
ppb_char_set_trusted.h
Go to the documentation of this file.
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
2  * Use of this source code is governed by a BSD-style license that can be
3  * found in the LICENSE file.
4  */
5 
6 /* From trusted/ppb_char_set_trusted.idl modified Thu Oct 20 13:57:04 2016. */
7 
8 #ifndef PPAPI_C_TRUSTED_PPB_CHAR_SET_TRUSTED_H_
9 #define PPAPI_C_TRUSTED_PPB_CHAR_SET_TRUSTED_H_
10 
11 #include "ppapi/c/pp_bool.h"
12 #include "ppapi/c/pp_instance.h"
13 #include "ppapi/c/pp_macros.h"
14 #include "ppapi/c/pp_stdint.h"
15 #include "ppapi/c/pp_var.h"
16 
17 #define PPB_CHARSET_TRUSTED_INTERFACE_1_0 "PPB_CharSet_Trusted;1.0"
18 #define PPB_CHARSET_TRUSTED_INTERFACE PPB_CHARSET_TRUSTED_INTERFACE_1_0
19 
31 typedef enum {
51 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_CharSet_Trusted_ConversionError, 4);
84  PP_Bool (*UTF16ToCharSet)(const uint16_t utf16[],
85  uint32_t utf16_len,
86  const char* output_char_set,
88  char* output_buffer,
89  uint32_t* output_length);
101  PP_Bool (*CharSetToUTF16)(const char* input,
102  uint32_t input_len,
103  const char* input_char_set,
105  uint16_t* output_buffer,
106  uint32_t* output_utf16_length);
115  struct PP_Var (*GetDefaultCharSet)(PP_Instance instance);
116 };
117 
123 #endif /* PPAPI_C_TRUSTED_PPB_CHAR_SET_TRUSTED_H_ */
124 
struct PP_Var(* GetDefaultCharSet)(PP_Instance instance)
Definition: ppb_char_set_trusted.h:115
PP_Bool(* CharSetToUTF16)(const char *input, uint32_t input_len, const char *input_char_set, PP_CharSet_Trusted_ConversionError on_error, uint16_t *output_buffer, uint32_t *output_utf16_length)
Definition: ppb_char_set_trusted.h:101
Definition: ppb_char_set_trusted.h:49
Definition: ppb_char_set_trusted.h:69
Definition: ppb_char_set_trusted.h:41
Definition: pp_var.h:166
int32_t PP_Instance
Definition: pp_instance.h:34
PP_CharSet_Trusted_ConversionError
Definition: ppb_char_set_trusted.h:31
PP_Bool
Definition: pp_bool.h:30
Definition: ppb_char_set_trusted.h:36
PP_Bool(* UTF16ToCharSet)(const uint16_t utf16[], uint32_t utf16_len, const char *output_char_set, PP_CharSet_Trusted_ConversionError on_error, char *output_buffer, uint32_t *output_length)
Definition: ppb_char_set_trusted.h:84