From ecf9e2e104a854a4fff6b502e2902de91355536a Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Fri, 18 Aug 2006 18:04:26 +0000 Subject: author db --- math/metadb.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'math/metadb.h') diff --git a/math/metadb.h b/math/metadb.h index d00f34a..c2eb069 100644 --- a/math/metadb.h +++ b/math/metadb.h @@ -22,13 +22,20 @@ #define INDEXDB "_index.db" #define METADB "_meta.db" #define SEARCHDB "_search.db" +#define AUTHORDB "_author.db" #define METADATA "meta.txt" #define SECTION "section.txt" +#define AUTHORDATA "author.txt" enum mtype { M_SET, M_RECORD }; enum sorder { TITLEI, TITLED, DATEI, DATED, AUTHORI, AUTHORD }; +struct author { + char *name; + char *mail; +}; + struct meta { enum mtype type; time_t date; @@ -63,6 +70,9 @@ struct meta *db_children(unsigned int, size_t *); struct meta *db_path(unsigned int, size_t *); struct meta *db_find(char *, size_t *); void db_sort(struct meta *, size_t, enum sorder); + +int db_putauthor(struct author *, char *); +struct author *db_getauthor(struct author *, char *); __END_DECLS #endif /* not _METADB_H_ */ -- cgit v1.2.3