From cb3ce4a43517f6227bec21b8713ee817fa2174ab Mon Sep 17 00:00:00 2001 From: tomo Date: Wed, 8 Oct 2003 12:54:34 +0000 Subject: [PATCH] (chise_db_dir): New variable. (CHISE_DS_open): Use instead of as the type of location. --- chise.c | 3 ++- chise.h | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/chise.c b/chise.c index be55f01..0e5274d 100644 --- a/chise.c +++ b/chise.c @@ -9,6 +9,7 @@ #include "chise.h" #include "chise-name.h" +const unsigned char chise_db_dir[] = CHISE_DB_DIR; CHISE_Feature_Table* chise_ds_open_feature_table (CHISE_DS *ds, const char *feature); @@ -59,7 +60,7 @@ struct 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) { CHISE_DS *ds = (CHISE_DS*)malloc (sizeof (CHISE_DS)); diff --git a/chise.h b/chise.h index f14cb1c..eeb2602 100644 --- a/chise.h +++ b/chise.h @@ -4,6 +4,8 @@ #include #include +extern const unsigned char chise_db_dir[]; + typedef enum CHISE_DS_Type { CHISE_DS_NONE, @@ -13,7 +15,7 @@ typedef enum CHISE_DS_Type 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); -- 1.7.10.4