From 6a2118d04c7b73450edfffb6fdc40de1a05bfe94 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 24 Jan 2009 15:56:34 +0100 Subject: queue_print, dbUtils: use struct locate_item_list Changed the function prototypes to get locate_item_list objects instead of num_items/items. --- src/command.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/command.c') diff --git a/src/command.c b/src/command.c index 744aec8e7..7f1858a34 100644 --- a/src/command.c +++ b/src/command.c @@ -844,7 +844,7 @@ handle_find(struct client *client, int argc, char *argv[]) return COMMAND_RETURN_ERROR; } - ret = findSongsIn(client, NULL, list->length, list->items); + ret = findSongsIn(client, NULL, list); if (ret == -1) command_error(client, ACK_ERROR_NO_EXIST, "directory or file not found"); @@ -869,7 +869,7 @@ handle_search(struct client *client, int argc, char *argv[]) return COMMAND_RETURN_ERROR; } - ret = searchForSongsIn(client, NULL, list->length, list->items); + ret = searchForSongsIn(client, NULL, list); if (ret == -1) command_error(client, ACK_ERROR_NO_EXIST, "directory or file not found"); @@ -894,7 +894,7 @@ handle_count(struct client *client, int argc, char *argv[]) return COMMAND_RETURN_ERROR; } - ret = searchStatsForSongsIn(client, NULL, list->length, list->items); + ret = searchStatsForSongsIn(client, NULL, list); if (ret == -1) command_error(client, ACK_ERROR_NO_EXIST, "directory or file not found"); @@ -918,7 +918,7 @@ handle_playlistfind(struct client *client, int argc, char *argv[]) return COMMAND_RETURN_ERROR; } - queue_find(client, playlist_get_queue(), list->length, list->items); + queue_find(client, playlist_get_queue(), list); locate_item_list_free(list); @@ -939,7 +939,7 @@ handle_playlistsearch(struct client *client, int argc, char *argv[]) return COMMAND_RETURN_ERROR; } - queue_search(client, playlist_get_queue(), list->length, list->items); + queue_search(client, playlist_get_queue(), list); locate_item_list_free(list); @@ -1155,8 +1155,7 @@ handle_list(struct client *client, int argc, char *argv[]) } } - ret = listAllUniqueTags(client, tagType, conditionals->length, - conditionals->items); + ret = listAllUniqueTags(client, tagType, conditionals); locate_item_list_free(conditionals); -- cgit v1.2.3