7 typedef enum CHISE_DS_Type
13 typedef struct CHISE_DS CHISE_DS;
16 CHISE_DS_open (CHISE_DS_Type type, char *location,
17 DBTYPE subtype, int modemask);
19 int CHISE_DS_close (CHISE_DS *ds);
22 typedef int CHISE_Char_ID;
25 typedef DBT CHISE_Value;
28 chise_value_size (const CHISE_Value *s)
34 chise_value_data (const CHISE_Value *s)
40 chise_value_to_c_string (const CHISE_Value *s)
46 typedef struct CHISE_Feature_Table CHISE_Feature_Table;
47 typedef CHISE_Feature_Table* CHISE_Feature;
50 chise_ds_get_feature (CHISE_DS *ds, const unsigned char *name);
53 chise_ds_load_char_feature_value (CHISE_DS *ds,
55 const unsigned char *name,
56 CHISE_Value *valdatum);
58 int chise_feature_setup_db (CHISE_Feature feature, int writable);
60 int chise_feature_sync (CHISE_Feature feature);
62 int chise_char_set_feature_value (CHISE_Char_ID cid,
63 CHISE_Feature feature,
64 unsigned char *value);
66 int chise_char_load_feature_value (CHISE_Char_ID cid,
67 CHISE_Feature feature,
68 CHISE_Value *valdatum);
71 chise_ds_load_char_feature_value (CHISE_DS *ds,
73 const unsigned char *name,
74 CHISE_Value *valdatum)
77 chise_char_load_feature_value (cid, chise_ds_get_feature (ds, name),
82 chise_char_gets_feature_value (CHISE_Char_ID cid,
83 CHISE_Feature feature,
84 unsigned char *dst, size_t size);
87 chise_char_feature_value_iterate (CHISE_Feature feature,
88 int (*func) (CHISE_Char_ID cid,
89 CHISE_Feature feature,
90 CHISE_Value *valdatum));
94 chise_char_feature_str_iterate (CHISE_Feature feature,
95 int (*func) (CHISE_Char_ID cid,
96 CHISE_Feature feature,
101 typedef struct CHISE_CCS_Table CHISE_CCS_Table;
102 typedef CHISE_CCS_Table* CHISE_CCS;
105 chise_ds_get_ccs (CHISE_DS *ds, const unsigned char *name);
107 static inline CHISE_Char_ID
108 chise_ds_decode_char (CHISE_DS *ds,
109 const unsigned char *ccs, int code_point);
111 int chise_ccs_setup_db (CHISE_CCS ccs, int writable);
113 int chise_ccs_sync (CHISE_CCS ccs);
115 int chise_ccs_set_decoded_char (CHISE_CCS ccs,
116 int code_point, CHISE_Char_ID cid);
118 CHISE_Char_ID chise_ccs_decode (CHISE_CCS ccs, int code_point);
120 static inline CHISE_Char_ID
121 chise_ds_decode_char (CHISE_DS *ds,
122 const unsigned char *name, int code_point)
125 chise_ccs_decode (chise_ds_get_ccs (ds, name), code_point);
128 #endif /* !_CHISE_H */