From 4d18aa35462c1a1c01aa0c382cf60e3d01a392f6 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Mon, 29 Oct 2007 12:02:55 +0000 Subject: Accept FS#8008 - allows the current artist or album to be used in databse searches (use the #artist# or #album# keywords in tagnavi.config) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15354 a1c6a512-1295-4272-9138-f99709370657 --- apps/tagcache.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'apps/tagcache.h') diff --git a/apps/tagcache.h b/apps/tagcache.h index 6b2df6b984..16dac0b41f 100644 --- a/apps/tagcache.h +++ b/apps/tagcache.h @@ -109,12 +109,18 @@ struct tagcache_stat { // const char *uimessage; /* Pending error message. Implement soon. */ }; +enum source_type {source_constant, source_input, + source_current_artist, source_current_album}; + +#define SOURCE_CURRENT_ARTIST "#artist#" +#define SOURCE_CURRENT_ALBUM "#album#" + struct tagcache_search_clause { int tag; int type; bool numeric; - bool input; + int source; long numeric_data; char *str; }; -- cgit v1.2.3