aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-24 15:56:34 +0100
committerMax Kellermann <max@duempel.org>2009-01-24 15:56:34 +0100
commit6a2118d04c7b73450edfffb6fdc40de1a05bfe94 (patch)
tree26b72b675bc6dcf864e58d4e9ff2a4869aa48f0c /src/command.c
parentba7c9962663d2e80a6320ca097c06a0849218d27 (diff)
downloadmpd-6a2118d04c7b73450edfffb6fdc40de1a05bfe94.tar.gz
mpd-6a2118d04c7b73450edfffb6fdc40de1a05bfe94.tar.xz
mpd-6a2118d04c7b73450edfffb6fdc40de1a05bfe94.zip
queue_print, dbUtils: use struct locate_item_list
Changed the function prototypes to get locate_item_list objects instead of num_items/items.
Diffstat (limited to '')
-rw-r--r--src/command.c13
1 files changed, 6 insertions, 7 deletions
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);