X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/1a48886fd8916757e21c099304d57a20a15786b6..6d1302f09d1a6958f3cddfd3c6564ee2c0b4813a:/disobedience/disobedience.h diff --git a/disobedience/disobedience.h b/disobedience/disobedience.h index 1745764..53b4deb 100644 --- a/disobedience/disobedience.h +++ b/disobedience/disobedience.h @@ -89,6 +89,10 @@ extern int volume_l, volume_r; /* current volume */ extern double goesupto; /* volume upper bound */ extern int choosealpha; /* break up choose by letter */ +extern const disorder_eclient_log_callbacks log_callbacks; + +typedef void monitor_callback(void *u); + /* Functions --------------------------------------------------------------- */ disorder_eclient *gtkclient(void); @@ -111,6 +115,13 @@ GdkPixbuf *find_image(const char *name); void popup_error(const char *msg); /* Pop up an error message */ +void register_monitor(monitor_callback *callback, + void *u, + unsigned long mask); +/* Register a state monitor */ + +void all_update(void); +/* Update everything */ /* Main menu */ @@ -127,9 +138,8 @@ void menu_update(int page); GtkWidget *control_widget(void); /* Make the controls widget */ -void control_update(void); -/* Called whenever we think the control widget needs changing */ - +void volume_update(void); +/* Called whenever we think the volume control has changed */ /* Queue/Recent */ @@ -185,6 +195,17 @@ void choose_update(void); #define WT(what) struct neverused #endif +#if MTRACK +extern const char *mtag; +#define MTAG(x) do { mtag = x; } while(0) +#define MTAG_PUSH(x) do { const char *save_mtag = mtag; mtag = x; (void)0 +#define MTAG_POP() mtag = save_mtag; } while(0) +#else +#define MTAG(x) do { } while(0) +#define MTAG_PUSH(x) do {} while(0) +#define MTAG_POP() do {} while(0) +#endif + #endif /* DISOBEDIENCE_H */ /*