From 6b30ae292e0938833548570766424e74565061a8 Mon Sep 17 00:00:00 2001 From: waker Date: Thu, 27 Aug 2009 21:16:35 +0200 Subject: added playrandom call to plugin api --- plugins.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'plugins.c') diff --git a/plugins.c b/plugins.c index 265fea5b..7157cc8d 100644 --- a/plugins.c +++ b/plugins.c @@ -32,6 +32,7 @@ DB_functions_t deadbeef_api = { .playback_pause = plug_playback_pause, .playback_stop = plug_playback_stop, .playback_play = plug_playback_play, + .playback_random = plug_playback_random, .playback_get_pos = plug_playback_get_pos, .playback_set_pos = plug_playback_set_pos, .quit = plug_quit, @@ -127,6 +128,11 @@ plug_playback_play (void) { messagepump_push (M_PLAYSONG, 0, 0, 0); } +void +plug_playback_random (void) { + messagepump_push (M_PLAYRANDOM, 0, 0, 0); +} + float plug_playback_get_pos (void) { if (playlist_current.duration <= 0) { -- cgit v1.2.3