X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/9eeb9f121e6f5bea8307f5a90bdae6359c4a3211..82db93368684e8091defcae951b90dd058a15860:/disobedience/disobedience.h diff --git a/disobedience/disobedience.h b/disobedience/disobedience.h index 33cd9ad..3d9d1d2 100644 --- a/disobedience/disobedience.h +++ b/disobedience/disobedience.h @@ -53,6 +53,7 @@ #include #include #include +#include /* Types ------------------------------------------------------------------- */ @@ -60,28 +61,6 @@ struct queuelike; struct choosenode; struct progress_window; -/** @brief Callback data structure - * - * This program is extremely heavily callback-driven. Rather than have - * numerous different callback structures we have a single one which can be - * interpreted adequately both by success and error handlers. - */ -struct callbackdata { - void (*onerror)(struct callbackdata *cbd, - int code, - const char *msg); /* called on error */ - union { - const char *key; /* gtkqueue.c op_part_lookup */ - struct choosenode *choosenode; /* gtkchoose.c got_files/got_dirs */ - struct queuelike *ql; /* gtkqueue.c queuelike_completed */ - struct prefdata *f; /* properties.c */ - const char *user; /* users.c */ - struct { - const char *user, *email; /* users.c */ - } edituser; - } u; -}; - /** @brief Per-tab callbacks * * Some of the options in the main menu depend on which tab is displayed, so we @@ -216,6 +195,7 @@ const char *namepart(const char *track, const char *context, const char *part); long namepart_length(const char *track); +char *namepart_resolve(const char *track); void namepart_update(const char *track, const char *context, @@ -231,7 +211,7 @@ void choose_update(void); /* Called when we think the choose tree might need updating */ void play_completed(void *v, - const char *error); + const char *err); /* Login details */ @@ -272,6 +252,17 @@ void load_settings(void); void set_tool_colors(GtkWidget *w); void popup_settings(void); +/* Playlists */ + +void playlists_init(void); +void edit_playlists(gpointer callback_data, + guint callback_action, + GtkWidget *menu_item); +extern char **playlists; +extern int nplaylists; +extern GtkWidget *playlists_widget; +extern GtkWidget *playlists_menu; + #endif /* DISOBEDIENCE_H */ /*