static void system_flush(void) { scrobbler_shutdown(); playlist_shutdown(); tree_flush(); call_storage_idle_notifys(true); /*doesnt work on usb and shutdown from ata thread */ }
static int audioscrobbler_callback(int action,const struct menu_item_ex *this_item) { (void)this_item; switch (action) { case ACTION_EXIT_MENUITEM: /* on exit */ if (!scrobbler_is_enabled() && global_settings.audioscrobbler) scrobbler_init(); if(scrobbler_is_enabled() && !global_settings.audioscrobbler) scrobbler_shutdown(); break; } return action; }