diff options
author | waker <wakeroid@gmail.com> | 2012-11-02 22:20:24 +0100 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2012-11-02 22:20:24 +0100 |
commit | c129a017b347dd2d3423d0d219355c805e67c7ea (patch) | |
tree | 52a2fc1d3ac8d783697811033e407b43b67f8c9a /deadbeef.h | |
parent | ccf81f499fbee8cee35c36ec35b4f17d46719804 (diff) |
action context stuff in deadbeef.h; clean-up
Diffstat (limited to 'deadbeef.h')
-rw-r--r-- | deadbeef.h | 33 |
1 files changed, 6 insertions, 27 deletions
@@ -855,37 +855,16 @@ typedef struct DB_plugin_action_s { struct DB_plugin_action_s *next; } DB_plugin_action_t; -// hotkey contexts +// action contexts // since 1.5 enum { - DDB_HOTKEY_MAIN, - DDB_HOTKEY_SELECTION, - DDB_HOTKEY_PLAYLIST, - DDB_HOTKEY_NOWPLAYING, + DDB_ACTION_CTX_MAIN, + DDB_ACTION_CTX_SELECTION, + DDB_ACTION_CTX_PLAYLIST, + DDB_ACTION_CTX_NOWPLAYING, + DDB_ACTION_CTX_COUNT }; -// deadbeef core doesn't have any special hotkeys code, -// but we need some common hotkey definition to share between plugins -// so here is the example structure to use when implementing hotkeys support -/* -// corresponding line in the config file: -// hotkey.keyX "key combination" CONTEXT IS_GLOBAL ACTION_ID -// -// example: -// hotkey.key1 "Super n" main 1 playback_random -// this would mean "execute playback_random action when Super+n is pressed globally" -// -// context can be main, selection, playlist or nowplaying -// TODO: do we need anything else, like widget contexts?.. -typedef struct -{ - char *key_combination; - int context; // NULL, selection, playlist, nowplaying - DB_plugin_action_t *action; - unsigned is_global : 1; -} ddb_hotkey_t; -*/ - // base plugin interface typedef struct DB_plugin_s { // type must be one of DB_PLUGIN_ types |