SQLite storage: Implement missing function to empty the play queue
This commit is contained in:
parent
0e8f417e67
commit
71fd2eb0f8
1 changed files with 12 additions and 0 deletions
|
@ -1923,6 +1923,18 @@ static SQLiteStore *g_sharedStore = NULL;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void)queueEmpty
|
||||||
|
{
|
||||||
|
sqlite3_stmt *st = stmt[stmt_remove_queue_all];
|
||||||
|
|
||||||
|
if (sqlite3_reset(st) ||
|
||||||
|
sqlite3_step(st) != SQLITE_DONE ||
|
||||||
|
sqlite3_reset(st))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
- (int64_t)queueGetCount
|
- (int64_t)queueGetCount
|
||||||
{
|
{
|
||||||
sqlite3_stmt *st = stmt[stmt_count_queue];
|
sqlite3_stmt *st = stmt[stmt_count_queue];
|
||||||
|
|
Loading…
Reference in a new issue