From: tomo Date: Wed, 8 Oct 2003 12:54:34 +0000 (+0000) Subject: (chise_db_dir): New variable. X-Git-Tag: b1-r0_2_0-pre8~9 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb3ce4a43517f6227bec21b8713ee817fa2174ab;p=chise%2Flibchise.git (chise_db_dir): New variable. (CHISE_DS_open): Use instead of as the type of location. --- 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);