[db/queue] Support adding non-library items at a given position to the

queue
This commit is contained in:
chme
2018-10-13 08:30:41 +02:00
parent d2390933e9
commit 8d8663e93d
8 changed files with 95 additions and 39 deletions

View File

@@ -143,7 +143,7 @@ library_add_media(struct media_file_info *mfi)
}
int
library_queue_add(const char *path)
library_queue_add(const char *path, int position, int *count, int *new_item_id)
{
int i;
int ret;
@@ -159,7 +159,7 @@ library_queue_add(const char *path)
continue;
}
ret = sources[i]->queue_add(path);
ret = sources[i]->queue_add(path, position, count, new_item_id);
if (ret == LIBRARY_OK)
{