summaryrefslogtreecommitdiff
path: root/plugins/hotkeys
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2010-12-31 14:00:57 +0100
committerGravatar waker <wakeroid@gmail.com>2010-12-31 14:00:57 +0100
commit1dec3a1551bc33f7f373286fb3e0c823f8a1467c (patch)
tree9717b99bd45bed684a5162e1b35fd93af55210b7 /plugins/hotkeys
parente06308f8f5105f4d2d6eac3665b543ef6f360341 (diff)
removed some unnecessary functions from plugin API
Diffstat (limited to 'plugins/hotkeys')
-rw-r--r--plugins/hotkeys/hotkeys.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/hotkeys/hotkeys.c b/plugins/hotkeys/hotkeys.c
index 26e6a864..0cc246b0 100644
--- a/plugins/hotkeys/hotkeys.c
+++ b/plugins/hotkeys/hotkeys.c
@@ -508,31 +508,31 @@ hotkeys_reset (void) {
int
action_play_cb (struct DB_plugin_action_s *action, DB_playItem_t *it) {
- deadbeef->playback_play ();
+ deadbeef->sendmessage (M_PLAY_CURRENT, 0, 0, 0);
return 0;
}
int
action_prev_cb (struct DB_plugin_action_s *action, DB_playItem_t *it) {
- deadbeef->playback_prev ();
+ deadbeef->sendmessage (M_PREV, 0, 0, 0);
return 0;
}
int
action_next_cb (struct DB_plugin_action_s *action, DB_playItem_t *it) {
- deadbeef->playback_next ();
+ deadbeef->sendmessage (M_NEXT, 0, 0, 0);
return 0;
}
int
action_stop_cb (struct DB_plugin_action_s *action, DB_playItem_t *it) {
- deadbeef->playback_stop ();
+ deadbeef->sendmessage (M_STOP, 0, 0, 0);
return 0;
}
int
action_toggle_pause_cb (struct DB_plugin_action_s *action, DB_playItem_t *it) {
- deadbeef->playback_pause ();
+ deadbeef->sendmessage (M_TOGGLE_PAUSE, 0, 0, 0);
return 0;
}
@@ -540,17 +540,17 @@ int
action_play_pause_cb (struct DB_plugin_action_s *action, DB_playItem_t *it) {
int state = deadbeef->get_output ()->state ();
if (state == OUTPUT_STATE_PLAYING) {
- deadbeef->playback_pause ();
+ deadbeef->sendmessage (M_PAUSE, 0, 0, 0);
}
else {
- deadbeef->playback_play ();
+ deadbeef->sendmessage (M_PLAY_CURRENT, 0, 0, 0);
}
return 0;
}
int
action_play_random_cb (struct DB_plugin_action_s *action, DB_playItem_t *it) {
- deadbeef->playback_random ();
+ deadbeef->sendmessage (M_PLAY_RANDOM, 0, 0, 0);
return 0;
}