diff options
author | Andreas Obergrusberger <tradiaz@yahoo.de> | 2006-08-04 21:14:16 +0000 |
---|---|---|
committer | Andreas Obergrusberger <tradiaz@yahoo.de> | 2006-08-04 21:14:16 +0000 |
commit | b4e85f4568f376d68c1b9123c1dae26da4beacfb (patch) | |
tree | 41b91fc89af55893674fe69050e164b827e80977 /src/screen_search.c | |
parent | d98e7f53e917bc46ed4274ac9b6f53e278f7708f (diff) | |
download | mpd-b4e85f4568f376d68c1b9123c1dae26da4beacfb.tar.gz mpd-b4e85f4568f376d68c1b9123c1dae26da4beacfb.tar.xz mpd-b4e85f4568f376d68c1b9123c1dae26da4beacfb.zip |
search screen works now using the new tag searching api
git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@4550 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/screen_search.c')
-rw-r--r-- | src/screen_search.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/src/screen_search.c b/src/screen_search.c index 857d682aa..7ff3f4460 100644 --- a/src/screen_search.c +++ b/src/screen_search.c @@ -277,18 +277,14 @@ search_advanced_query(char *query, mpdclient_t *c) mpd_InfoEntity *entity; /** stupid - but this is just a test...... (fulhack) */ - mpd_sendSearchTagCommand(c->connection, - table[0], arg[0], - table[1], arg[1], - table[2], arg[2], - table[3], arg[3], - table[4], arg[4], - table[5], arg[5], - table[6], arg[6], - table[7], arg[7], - table[8], arg[8], - table[9], arg[9]); - + int iter; + for(iter = 0; i < 10; i++) + { + mpd_addConstraintSearch(c->connection, table[i], arg[i]); + } + + mpd_commitSearch(c->connection); + filelist = g_malloc0(sizeof(mpdclient_filelist_t)); while( (entity=mpd_getNextInfoEntity(c->connection)) ) |