#include <db.h>
#include <errno.h>
+extern const unsigned char chise_db_dir[];
+
typedef enum CHISE_DS_Type
{
CHISE_DS_NONE,
typedef struct CHISE_DS CHISE_DS;
CHISE_DS*
-CHISE_DS_open (CHISE_DS_Type type, char *location,
+CHISE_DS_open (CHISE_DS_Type type, const unsigned char *location,
DBTYPE subtype, int modemask);
int CHISE_DS_close (CHISE_DS *ds);
+int
+chise_ds_foreach_char_feature_name (CHISE_DS *ds,
+ int (*func) (CHISE_DS *ds,
+ unsigned char *name));
+
typedef int CHISE_Char_ID;
unsigned char *dst, size_t size);
int
-chise_char_feature_value_iterate (CHISE_Feature feature,
- int (*func) (CHISE_Char_ID cid,
- CHISE_Feature feature,
- CHISE_Value *valdatum));
+chise_feature_foreach_char_with_value (CHISE_Feature feature,
+ int (*func) (CHISE_Char_ID cid,
+ CHISE_Feature feature,
+ CHISE_Value *valdatum));
#if 0
int
-chise_char_feature_str_iterate (CHISE_Feature feature,
- int (*func) (CHISE_Char_ID cid,
- CHISE_Feature feature,
- unsigned char *str));
+chise_feature_foreach_char_with_str (CHISE_Feature feature,
+ int (*func) (CHISE_Char_ID cid,
+ CHISE_Feature feature,
+ unsigned char *str));
#endif