diff options
author | Kalle Wallin <kaw@linux.se> | 2004-03-19 13:26:18 +0000 |
---|---|---|
committer | Kalle Wallin <kaw@linux.se> | 2004-03-19 13:26:18 +0000 |
commit | a0592c8cc08b802f86061c88dc6862352b6c3e94 (patch) | |
tree | feda87ba55a404023e62b8d744e2667dccebdc95 /command.h | |
download | mpd-a0592c8cc08b802f86061c88dc6862352b6c3e94.tar.gz mpd-a0592c8cc08b802f86061c88dc6862352b6c3e94.tar.xz mpd-a0592c8cc08b802f86061c88dc6862352b6c3e94.zip |
Imported ncmpc (mpc-ncures).
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@292 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'command.h')
-rw-r--r-- | command.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/command.h b/command.h new file mode 100644 index 000000000..efb3c2721 --- /dev/null +++ b/command.h @@ -0,0 +1,44 @@ + +typedef enum +{ + CMD_NONE = 0, + CMD_PLAY, + CMD_SELECT, + CMD_PAUSE, + CMD_STOP, + CMD_TRACK_NEXT, + CMD_TRACK_PREVIOUS, + CMD_SHUFFLE, + CMD_RANDOM, + CMD_CLEAR, + CMD_DELETE, + CMD_REPEAT, + CMD_VOLUME_UP, + CMD_VOLUME_DOWN, + CMD_LIST_PREVIOUS, + CMD_LIST_NEXT, + CMD_LIST_FIRST, + CMD_LIST_LAST, + CMD_LIST_NEXT_PAGE, + CMD_LIST_PREVIOUS_PAGE, + CMD_SCREEN_PREVIOUS, + CMD_SCREEN_NEXT, + CMD_SCREEN_PLAY, + CMD_SCREEN_FILE, + CMD_SCREEN_SEARCH, + CMD_SCREEN_HELP, + CMD_QUIT +} command_t; + +typedef struct +{ + int keys[3]; + command_t command; + char *description; +} command_definition_t; + + +void command_dump_keys(void); +char *command_get_keys(command_t command); + +command_t get_keyboard_command(void); |