diff options
author | waker <wakeroid@gmail.com> | 2009-08-27 21:16:35 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2009-08-27 21:16:35 +0200 |
commit | 6b30ae292e0938833548570766424e74565061a8 (patch) | |
tree | 58f6fc60ac760adfbd77cae9cf24cb7cc61a1753 /plugins.c | |
parent | d4e5ec35dca8dd93dfb932cb8b83309e955ec86f (diff) |
added playrandom call to plugin api
Diffstat (limited to 'plugins.c')
-rw-r--r-- | plugins.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) { |