summaryrefslogtreecommitdiff
path: root/math/metadb.h
diff options
context:
space:
mode:
Diffstat (limited to 'math/metadb.h')
-rw-r--r--math/metadb.h10
1 files changed, 10 insertions, 0 deletions
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_ */