mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-25 12:06:12 -05:00
Add optional sorting clause to Q_ITEMS
This commit is contained in:
7
src/db.h
7
src/db.h
@@ -16,6 +16,12 @@ enum index_type {
|
||||
I_SUB
|
||||
};
|
||||
|
||||
enum sort_type {
|
||||
S_NONE = 0,
|
||||
S_NAME,
|
||||
S_ALBUM,
|
||||
};
|
||||
|
||||
#define Q_F_BROWSE (1 << 15)
|
||||
|
||||
enum query_type {
|
||||
@@ -35,6 +41,7 @@ struct query_params {
|
||||
/* Query parameters, filled in by caller */
|
||||
enum query_type type;
|
||||
enum index_type idx_type;
|
||||
enum sort_type sort;
|
||||
int id;
|
||||
int offset;
|
||||
int limit;
|
||||
|
||||
Reference in New Issue
Block a user