7 typedef enum CHISE_DS_Type
13 typedef struct CHISE_DS
19 int chise_open_data_source (CHISE_DS *ds, CHISE_DS_Type type,
22 int chise_close_data_source (CHISE_DS *ds);
25 typedef int CHISE_Char_ID;
28 typedef DBT CHISE_Value;
31 chise_value_size (const CHISE_Value *s)
37 chise_value_data (const CHISE_Value *s)
43 chise_value_to_c_string (const CHISE_Value *s)
49 typedef DB CHISE_Attribute_Table;
52 typedef CHISE_Attribute_Table CHISE_Decoding_Table;
54 int chise_open_decoding_table (CHISE_Decoding_Table **db,
55 CHISE_DS *ds, const char *ccs,
57 u_int32_t accessmask, int modemask);
59 int chise_close_decoding_table (CHISE_Decoding_Table *db);
61 CHISE_Char_ID chise_dt_get_char (CHISE_Decoding_Table *db, int code_point);
64 typedef CHISE_Attribute_Table CHISE_Feature_Table;
66 int chise_open_feature_table (CHISE_Feature_Table **db,
67 CHISE_DS *ds, const char *feature,
69 u_int32_t accessmask, int modemask);
71 int chise_close_feature_table (CHISE_Feature_Table *db);
73 int chise_ft_get_value (CHISE_Feature_Table *db,
74 CHISE_Char_ID cid, CHISE_Value *valdatum);
78 CHISE_Char_ID chise_decode_char (CHISE_DS *ds, char *ccs, int code_point);
80 int chise_get_feature (CHISE_DS *ds, CHISE_Char_ID cid,
81 char *key, CHISE_Value *valdatum);
84 int chise_open_attribute_table (CHISE_Attribute_Table **db,
86 const char *encoding, const char *feature,
88 u_int32_t accessmask, int modemask);
90 int chise_close_attribute_table (CHISE_Attribute_Table *db);
92 int chise_get_attribute_table (CHISE_Attribute_Table *db,
93 char *key, CHISE_Value *valdatum);
95 #endif /* !_CHISE_H */