ocarina/include/gui/playlists/user.h
Anna Schumaker 83db8e4ae7 gui/playlists/user: Add a function for getting a list of playlists
This is used to build a right-click menu with the names of each
playlist.

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-04-03 10:33:19 -04:00

26 lines
680 B
C

/*
* Copyright 2015 (c) Anna Schumaker.
*/
#ifndef OCARINA_GUI_PLAYLISTS_USER_H
#define OCARINA_GUI_PLAYLISTS_USER_H
/* Called to initialize GUI user playlists. */
void gui_pl_user_init();
/* Called to add a user playlist. */
struct playlist *gui_pl_user_add(const gchar *);
/* Called to add a user playlist (with dialog prompt). */
struct playlist *gui_pl_user_add_dialog(void);
/* Called to update a user playlist. */
void gui_pl_user_update(struct playlist *);
/*
* Called to get a (sorted) list of user playlists.
* Note: The caller is responsible for freeing the list with g_list_free().
*/
GList *gui_pl_user_list(void);
#endif /* OCARINA_GUI_PLAYLISTS_USER_H */