Include <time.h>.
authorhanda <handa>
Thu, 7 Sep 2006 07:40:05 +0000 (07:40 +0000)
committerhanda <handa>
Thu, 7 Sep 2006 07:40:05 +0000 (07:40 +0000)
commite8d28f37d4dbfe1bffead7208177c9fd6fdd0888
treedd5e3a6774529bc23d3ee81efe3a531baa728e20
parent00b3bcbb7c5b3304af571c8e1355b6837aba422d
Include <time.h>.
(MDB_DIR_LEN): Don't include the terminating '\0' in the length.
(GEN_PATH): Args changed.  Callers changed.
(struct MDatabaseInfo): Moved to database.h.
(struct MDatabase, mdb_list): Deleted.
(mdatabase__list): New var.
(get_database_filename): Deleted.  Callers changed to use
get_database_file.
(find_file, get_database_file): New files.
(get_dir_info): Initialize new members of MDatabaseInfo.
(find_database): Arg chagnded.  Callers changed.
(free_db_info, register_database, register_databases_in_files):
New functions.
(update_database_list): Deleted.
(mdatabase__init): Initialize mdatabase__list instead of mdb_list.
(mdatabase__fini): Finalize mdatabase__list instead of mdb_list.
(mdatabase__update): New function.
(mdatabase__check): Return value changed.
(mdatabase__file, mdatabase__lock, mdatabase__save)
(mdatabase__unlock): New functions.
src/database.c