summaryrefslogtreecommitdiff
path: root/apps/tagcache.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tagcache.h')
-rw-r--r--apps/tagcache.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/apps/tagcache.h b/apps/tagcache.h
index 468c48c45d..1ac96b4bad 100644
--- a/apps/tagcache.h
+++ b/apps/tagcache.h
@@ -31,16 +31,38 @@ enum tag_type { tag_artist = 0, tag_album, tag_genre, tag_title,
31#define HAVE_TC_RAMCACHE 1 31#define HAVE_TC_RAMCACHE 1
32#endif 32#endif
33 33
34/* Allow a little drift to the filename ordering. */ 34/* Allow a little drift to the filename ordering (should not be too high/low). */
35#define POS_HISTORY_COUNT 4 35#define POS_HISTORY_COUNT 4
36 36
37/* How much to pre-load entries while committing to prevent seeking. */
38#define IDX_BUF_DEPTH 64
39
40/* Tag Cache Header version 'TCHxx'. Increment when changing internal structures. */
41#define TAGCACHE_MAGIC 0x54434803
42
43/* How much to allocate extra space for ramcache. */
44#define TAGCACHE_RESERVE 32768
45
37/* How many entries we can create in one tag file (for sorting). */ 46/* How many entries we can create in one tag file (for sorting). */
38#define TAGFILE_MAX_ENTRIES 20000 47#define TAGFILE_MAX_ENTRIES 20000
39 48
49/* How many entries to fetch to the seek table at once while searching. */
40#define SEEK_LIST_SIZE 50 50#define SEEK_LIST_SIZE 50
51
52/* Always strict align entries for best performance and binary compatability. */
53#define TAGCACHE_STRICT_ALIGN 1
54
41#define TAGCACHE_MAX_FILTERS 3 55#define TAGCACHE_MAX_FILTERS 3
42#define TAGCACHE_MAX_CLAUSES 10 56#define TAGCACHE_MAX_CLAUSES 10
43 57
58/* Tag database files. */
59#define TAGCACHE_FILE_TEMP ROCKBOX_DIR "/tagcache_tmp.tcd"
60#define TAGCACHE_FILE_MASTER ROCKBOX_DIR "/tagcache_idx.tcd"
61#define TAGCACHE_FILE_INDEX ROCKBOX_DIR "/tagcache_%d.tcd"
62
63/* Flags */
64#define FLAG_DELETED 0x0001
65
44enum clause { clause_none, clause_is, clause_gt, clause_gteq, clause_lt, 66enum clause { clause_none, clause_is, clause_gt, clause_gteq, clause_lt,
45 clause_lteq, clause_contains, clause_begins_with, clause_ends_with }; 67 clause_lteq, clause_contains, clause_begins_with, clause_ends_with };
46enum modifiers { clause_mod_none, clause_mod_not }; 68enum modifiers { clause_mod_none, clause_mod_not };