2016-04-24 10:36:15 -04:00
|
|
|
/*
|
|
|
|
* Copyright 2016 (c) Anna Schumaker.
|
|
|
|
*/
|
|
|
|
#ifndef OCARINA_CORE_PLAYLISTS_TYPE_H
|
|
|
|
#define OCARINA_CORE_PLAYLISTS_TYPE_H
|
|
|
|
#include <core/queue.h>
|
|
|
|
#include <core/tags/track.h>
|
|
|
|
#include <glib.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
|
|
|
|
struct playlist_type {
|
|
|
|
/* Called to get the queue for the playlist. */
|
|
|
|
struct queue *(*pl_get_queue)(const gchar *);
|
|
|
|
|
|
|
|
/* Called to add a track to the playlist. */
|
|
|
|
bool (*pl_add_track)(const gchar *, struct track *);
|
|
|
|
|
|
|
|
/* Called to remove a track from the playlist. */
|
|
|
|
bool (*pl_remove_track)(const gchar *, struct track *);
|
2016-05-01 09:17:21 -04:00
|
|
|
|
|
|
|
/* Called to update a playlist. */
|
|
|
|
void (*pl_update)(const gchar *);
|
2016-04-24 10:36:15 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* OCARINA_CORE_PLAYLISTS_TYPE_H */
|