core/playlist: Add a private field to struct playlist
I intend to use this for playlist filtering to store filter text. Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This commit is contained in:
parent
e7b4973a50
commit
85bb67feed
|
@ -38,6 +38,7 @@ void playlist_generic_init(struct playlist *playlist, unsigned int flags,
|
|||
queue_sort(&playlist->pl_queue, COMPARE_ARTIST, true);
|
||||
queue_sort(&playlist->pl_queue, COMPARE_YEAR, false);
|
||||
queue_sort(&playlist->pl_queue, COMPARE_TRACK, false);
|
||||
playlist->pl_private = NULL;
|
||||
}
|
||||
|
||||
bool playlist_generic_can_select(struct playlist *playlist)
|
||||
|
|
|
@ -19,9 +19,10 @@ enum playlist_type_t {
|
|||
|
||||
|
||||
struct playlist {
|
||||
enum playlist_type_t pl_type; /* This playlist's type. */
|
||||
gchar *pl_name; /* This playlist's name. */
|
||||
struct queue pl_queue; /* This playlist's queue of tracks. */
|
||||
enum playlist_type_t pl_type; /* This playlist's type. */
|
||||
gchar *pl_name; /* This playlist's name. */
|
||||
void *pl_private; /* This playlist's private data. */
|
||||
struct queue pl_queue; /* This playlist's queue of tracks. */
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue