void drct_play_pause (void) { if (drct_get_playing ()) drct_pause (); else drct_play (); }
static gboolean play_cb(void *unused) { /* Only the active playlist is visible through DBUS interface, so make sure * to play from it, not another playlist. --jlindgren */ if (playlist_get_playing () != playlist_get_active ()) playlist_set_playing (playlist_get_active ()); drct_play(); return FALSE; }