SQLite storage: Implement missing function to empty the play queue

CQTexperiment
Christopher Snowhill 2022-01-06 21:03:31 -08:00
parent 0e8f417e67
commit 71fd2eb0f8
1 changed files with 12 additions and 0 deletions

View File

@ -1923,6 +1923,18 @@ static SQLiteStore *g_sharedStore = NULL;
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
{
sqlite3_stmt *st = stmt[stmt_count_queue];