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
This commit is contained in:
Jonathan Gordon 2007-10-29 12:02:55 +00:00
parent bae8f4c316
commit 4d18aa3546
3 changed files with 55 additions and 13 deletions

View file

@ -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;
};