diff options
author | Max Kellermann <max@duempel.org> | 2012-08-07 23:59:17 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-08-08 00:47:45 +0200 |
commit | 0823711106912fc75f1bdb2461243b12ba670f8b (patch) | |
tree | ee2bc012a9c3fb8e25b149a0b8f19d2421795256 /src/queue_print.c | |
parent | 860e9eb8c9ad07721aad4526046753d6fcc3b3ac (diff) | |
download | mpd-0823711106912fc75f1bdb2461243b12ba670f8b.tar.gz mpd-0823711106912fc75f1bdb2461243b12ba670f8b.tar.xz mpd-0823711106912fc75f1bdb2461243b12ba670f8b.zip |
locate: add a per-item "fold_case" flag
Merge locate_song_search() and locate_song_match().
Diffstat (limited to '')
-rw-r--r-- | src/queue_print.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/queue_print.c b/src/queue_print.c index 032a7dec5..d956bbf98 100644 --- a/src/queue_print.c +++ b/src/queue_print.c @@ -92,25 +92,13 @@ queue_print_changes_position(struct client *client, const struct queue *queue, } void -queue_search(struct client *client, const struct queue *queue, - const struct locate_item_list *criteria) -{ - for (unsigned i = 0; i < queue_length(queue); i++) { - const struct song *song = queue_get(queue, i); - - if (locate_song_search(song, criteria)) - queue_print_song_info(client, queue, i); - } -} - -void queue_find(struct client *client, const struct queue *queue, const struct locate_item_list *criteria) { for (unsigned i = 0; i < queue_length(queue); i++) { const struct song *song = queue_get(queue, i); - if (locate_song_match(song, criteria)) + if (locate_list_song_match(song, criteria)) queue_print_song_info(client, queue, i); } } |