This commit is contained in:
parent
a4f9bb576d
commit
6f3c315dfc
2
src/db.c
2
src/db.c
|
@ -236,6 +236,7 @@ static const struct col_type_map pli_cols_map[] =
|
|||
{ "directory_id", pli_offsetof(directory_id), DB_TYPE_INT },
|
||||
{ "query_order", pli_offsetof(query_order), DB_TYPE_STRING, DB_FIXUP_NO_SANITIZE },
|
||||
{ "query_limit", pli_offsetof(query_limit), DB_TYPE_INT },
|
||||
{ "media_kind", pli_offsetof(media_kind), DB_TYPE_INT },
|
||||
|
||||
// Not in the database, but returned via the query's COUNT()/SUM()
|
||||
{ "items", pli_offsetof(items), DB_TYPE_INT },
|
||||
|
@ -371,6 +372,7 @@ static const ssize_t dbpli_cols_map[] =
|
|||
dbpli_offsetof(directory_id),
|
||||
dbpli_offsetof(query_order),
|
||||
dbpli_offsetof(query_limit),
|
||||
dbpli_offsetof(media_kind),
|
||||
|
||||
dbpli_offsetof(items),
|
||||
dbpli_offsetof(streams),
|
||||
|
|
2
src/db.h
2
src/db.h
|
@ -250,6 +250,7 @@ struct playlist_info {
|
|||
uint32_t directory_id; /* Id of directory */
|
||||
char *query_order; /* order by clause if it is a smart playlist */
|
||||
int32_t query_limit; /* limit if it is a smart playlist */
|
||||
uint32_t media_kind;
|
||||
uint32_t items; /* number of items (mimc) */
|
||||
uint32_t streams; /* number of internet streams */
|
||||
};
|
||||
|
@ -271,6 +272,7 @@ struct db_playlist_info {
|
|||
char *directory_id;
|
||||
char *query_order;
|
||||
char *query_limit;
|
||||
char *media_kind;
|
||||
char *items;
|
||||
char *streams;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue