summaryrefslogtreecommitdiff
path: root/apps/tagcache.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tagcache.h')
-rw-r--r--apps/tagcache.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/tagcache.h b/apps/tagcache.h
index 3b4df999b9..9cf796fafd 100644
--- a/apps/tagcache.h
+++ b/apps/tagcache.h
@@ -53,6 +53,10 @@ enum tag_type { tag_artist = 0, tag_album, tag_genre, tag_title,
53 53
54/* Tag to be used on untagged files. */ 54/* Tag to be used on untagged files. */
55#define UNTAGGED "<Untagged>" 55#define UNTAGGED "<Untagged>"
56/* Maximum length of a single tag. */
57#define TAG_MAXLEN (MAX_PATH*2)
58/* buffer size for all the (stack allocated & static) buffers handling tc data */
59#define TAGCACHE_BUFSZ (TAG_MAXLEN+32)
56 60
57/* Numeric tags (we can use these tags with conditional clauses). */ 61/* Numeric tags (we can use these tags with conditional clauses). */
58#define TAGCACHE_NUMERIC_TAGS ((1LU << tag_year) | (1LU << tag_discnumber) | \ 62#define TAGCACHE_NUMERIC_TAGS ((1LU << tag_year) | (1LU << tag_discnumber) | \
@@ -172,7 +176,7 @@ bool tagcache_search_add_filter(struct tagcache_search *tcs,
172 int tag, int seek); 176 int tag, int seek);
173bool tagcache_search_add_clause(struct tagcache_search *tcs, 177bool tagcache_search_add_clause(struct tagcache_search *tcs,
174 struct tagcache_search_clause *clause); 178 struct tagcache_search_clause *clause);
175bool tagcache_get_next(struct tagcache_search *tcs); 179bool tagcache_get_next(struct tagcache_search *tcs, char *buf, long size);
176bool tagcache_retrieve(struct tagcache_search *tcs, int idxid, 180bool tagcache_retrieve(struct tagcache_search *tcs, int idxid,
177 int tag, char *buf, long size); 181 int tag, char *buf, long size);
178void tagcache_search_finish(struct tagcache_search *tcs); 182void tagcache_search_finish(struct tagcache_search *tcs);