tags must be preceeded by whitespace or start at the beginning of the record
[blerg.git] / database / tags.h
1 /* Blerg is (C) 2011 The Dominion of Awesome, and is distributed under a
2  * BSD-style license.  Please see the COPYING file for details.
3  */
4 #ifndef _TAGS_H
5 #define _TAGS_H
6
7 #include <stdint.h>
8
9 struct tag {
10         char author[32];
11         uint64_t record;
12 };
13
14 int tag_scan(const char *, const char *, int, uint64_t);
15 int tag_add(const char *, const char *, uint64_t);
16 struct tag * tag_list(const char *, uint64_t, int *count, int direction);
17 int tag_exists(const char *tag);
18
19 #endif //_TAGS_H