-static void log_failed(void attribute((unused)) *v,
- const char attribute((unused)) *track,
- const char attribute((unused)) *status) {
- playing = 0;
- playing_update();
- control_update();
-}
-
-static void log_moved(void attribute((unused)) *v,
- const char attribute((unused)) *user) {
- queue_update();
-}
-
-static void log_playing(void attribute((unused)) *v,
- const char attribute((unused)) *track,
- const char attribute((unused)) *user) {
- playing = 1;
- playing_update();
- control_update();
- /* we get a log_removed() anyway so we don't need to update_queue() from
- * here */
-}
-
-static void log_queue(void attribute((unused)) *v,
- struct queue_entry attribute((unused)) *q) {
- queue_update();
-}
-
-static void log_recent_added(void attribute((unused)) *v,
- struct queue_entry attribute((unused)) *q) {
- recent_update();
-}
-
-static void log_recent_removed(void attribute((unused)) *v,
- const char attribute((unused)) *id) {
- /* nothing - log_recent_added() will trigger the relevant update */
-}
-
-static void log_removed(void attribute((unused)) *v,
- const char attribute((unused)) *id,
- const char attribute((unused)) *user) {
- queue_update();
-}
-
-static void log_scratched(void attribute((unused)) *v,
- const char attribute((unused)) *track,
- const char attribute((unused)) *user) {
- playing = 0;
- playing_update();
- control_update();
-}
-
-static void log_state(void attribute((unused)) *v,
- unsigned long state) {
- last_state = state;
- control_update();
- /* If the track is paused or resume then the currently playing track is
- * refetched so that we can continue to correctly calculate the played so-far
- * field */
- playing_update();
-}
-
-static void log_volume(void attribute((unused)) *v,
- int l, int r) {
- if(volume_l != l || volume_r != r) {
- volume_l = l;
- volume_r = r;
- control_update();
- }
-}
-
-#if MDEBUG
-static int widget_count, container_count;
-
-static void count_callback(GtkWidget *w,
- gpointer attribute((unused)) data) {
- ++widget_count;
- if(GTK_IS_CONTAINER(w)) {
- ++container_count;
- gtk_container_foreach(GTK_CONTAINER(w), count_callback, 0);