(chise_db_dir): New variable.
authortomo <tomo>
Wed, 8 Oct 2003 12:54:34 +0000 (12:54 +0000)
committertomo <tomo>
Wed, 8 Oct 2003 12:54:34 +0000 (12:54 +0000)
(CHISE_DS_open): Use <const unsigned char *> instead of <char *> as
the type of location.

chise.c
chise.h

diff --git a/chise.c b/chise.c
index be55f01..0e5274d 100644 (file)
--- 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 (file)
--- a/chise.h
+++ b/chise.h
@@ -4,6 +4,8 @@
 #include <db.h>
 #include <errno.h>
 
+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);