projects
/
m17n
/
m17n-lib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Copyright years udpated.
[m17n/m17n-lib.git]
/
src
/
database.h
diff --git
a/src/database.h
b/src/database.h
index
39fc06c
..
28397c0
100644
(file)
--- a/
src/database.h
+++ b/
src/database.h
@@
-1,5
+1,5
@@
/* database.h -- header file for the database module.
/* database.h -- header file for the database module.
- Copyright (C) 2003, 2004
+ Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
National Institute of Advanced Industrial Science and Technology (AIST)
Registration Number H15PRO112
National Institute of Advanced Industrial Science and Technology (AIST)
Registration Number H15PRO112
@@
-17,7
+17,7
@@
You should have received a copy of the GNU Lesser General Public
License along with the m17n library; if not, write to the Free
You should have received a copy of the GNU Lesser General Public
License along with the m17n library; if not, write to the Free
- Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+ Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
02111-1307, USA. */
#ifndef _M17N_DATABASE_H_
02111-1307, USA. */
#ifndef _M17N_DATABASE_H_
@@
-37,13
+37,19
@@
enum MDatabaseStatus
{
enum MDatabaseStatus
{
- /* The database was defined automatically (from mdb.dir file(s)).*/
+ /* The database was defined automatically (from mdb.dir file(s))
+ with no wildcard tag. */
MDB_STATUS_AUTO,
MDB_STATUS_AUTO,
+ /* The database was defined automatically (from mdb.dir file(s)).
+ with a wildcard tag. */
+ MDB_STATUS_AUTO_WILDCARD,
/* The database was defined explicitely (by mdatabase_define ()). */
MDB_STATUS_EXPLICIT,
/* The databse is currently disabled. (usually because it is
deleted from mdb.dir file(s)). */
/* The database was defined explicitely (by mdatabase_define ()). */
MDB_STATUS_EXPLICIT,
/* The databse is currently disabled. (usually because it is
deleted from mdb.dir file(s)). */
- MDB_STATUS_DISABLED
+ MDB_STATUS_DISABLED,
+ MDB_STATUS_UPDATED,
+ MDB_STATUS_OUTDATED
};
typedef struct
};
typedef struct
@@
-60,6
+66,8
@@
typedef struct
loaded. */
time_t time;
char *lock_file, *uniq_file;
loaded. */
time_t time;
char *lock_file, *uniq_file;
+
+ MPlist *properties;
} MDatabaseInfo;
extern MPlist *mdatabase__dir_list;
} MDatabaseInfo;
extern MPlist *mdatabase__dir_list;
@@
-80,4
+88,8
@@
extern int mdatabase__save (MDatabase *mdb, MPlist *data);
extern int mdatabase__unlock (MDatabase *mdb);
extern int mdatabase__unlock (MDatabase *mdb);
+extern MPlist *mdatabase__props (MDatabase *mdb);
+
+extern void *(*mdatabase__load_charset_func) (FILE *fp, MSymbol charset_name);
+
#endif /* not _M17N_DATABASE_H_ */
#endif /* not _M17N_DATABASE_H_ */