aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-03 12:57:30 +0200
committerMax Kellermann <max@duempel.org>2008-10-03 12:57:30 +0200
commitf81333daa0bb652a5c1296941057eef82a12e12f (patch)
treeb616f9bfc73941e0c570cbebab9949ae5b483621 /src/command.h
parent547b0c5f28be1e830c00ac167806ffba641855c6 (diff)
downloadmpd-f81333daa0bb652a5c1296941057eef82a12e12f.tar.gz
mpd-f81333daa0bb652a5c1296941057eef82a12e12f.tar.xz
mpd-f81333daa0bb652a5c1296941057eef82a12e12f.zip
code style, indent with tabs XI
Follow the same code style als MPD itself.
Diffstat (limited to 'src/command.h')
-rw-r--r--src/command.h113
1 files changed, 56 insertions, 57 deletions
diff --git a/src/command.h b/src/command.h
index f4b6859e8..4529da824 100644
--- a/src/command.h
+++ b/src/command.h
@@ -8,61 +8,60 @@
#define MAX_COMMAND_KEYS 3
/* commands */
-typedef enum
-{
- CMD_NONE = 0,
- CMD_PLAY,
- CMD_SELECT,
- CMD_SELECT_ALL,
- CMD_PAUSE,
- CMD_STOP,
- CMD_CROP,
- CMD_TRACK_NEXT,
- CMD_TRACK_PREVIOUS,
- CMD_SEEK_FORWARD,
- CMD_SEEK_BACKWARD,
- CMD_SHUFFLE,
- CMD_RANDOM,
- CMD_CLEAR,
- CMD_DELETE,
- CMD_REPEAT,
- CMD_CROSSFADE,
- CMD_DB_UPDATE,
- CMD_VOLUME_UP,
- CMD_VOLUME_DOWN,
- CMD_ADD,
- CMD_SAVE_PLAYLIST,
- CMD_TOGGLE_FIND_WRAP,
- CMD_TOGGLE_AUTOCENTER,
- CMD_SEARCH_MODE,
- CMD_LIST_PREVIOUS,
- CMD_LIST_NEXT,
- CMD_LIST_FIRST,
- CMD_LIST_LAST,
- CMD_LIST_NEXT_PAGE,
- CMD_LIST_PREVIOUS_PAGE,
- CMD_LIST_FIND,
- CMD_LIST_FIND_NEXT,
- CMD_LIST_RFIND,
- CMD_LIST_RFIND_NEXT,
- CMD_LIST_MOVE_UP,
- CMD_LIST_MOVE_DOWN,
- CMD_MOUSE_EVENT,
- CMD_SCREEN_UPDATE,
- CMD_SCREEN_PREVIOUS,
- CMD_SCREEN_NEXT,
- CMD_SCREEN_PLAY,
- CMD_SCREEN_FILE,
- CMD_SCREEN_ARTIST,
- CMD_SCREEN_SEARCH,
- CMD_SCREEN_KEYDEF,
- CMD_SCREEN_HELP,
- CMD_SCREEN_LYRICS,
- CMD_LYRICS_UPDATE,
- CMD_INTERRUPT,
- CMD_GO_ROOT_DIRECTORY,
- CMD_GO_PARENT_DIRECTORY,
- CMD_QUIT
+typedef enum {
+ CMD_NONE = 0,
+ CMD_PLAY,
+ CMD_SELECT,
+ CMD_SELECT_ALL,
+ CMD_PAUSE,
+ CMD_STOP,
+ CMD_CROP,
+ CMD_TRACK_NEXT,
+ CMD_TRACK_PREVIOUS,
+ CMD_SEEK_FORWARD,
+ CMD_SEEK_BACKWARD,
+ CMD_SHUFFLE,
+ CMD_RANDOM,
+ CMD_CLEAR,
+ CMD_DELETE,
+ CMD_REPEAT,
+ CMD_CROSSFADE,
+ CMD_DB_UPDATE,
+ CMD_VOLUME_UP,
+ CMD_VOLUME_DOWN,
+ CMD_ADD,
+ CMD_SAVE_PLAYLIST,
+ CMD_TOGGLE_FIND_WRAP,
+ CMD_TOGGLE_AUTOCENTER,
+ CMD_SEARCH_MODE,
+ CMD_LIST_PREVIOUS,
+ CMD_LIST_NEXT,
+ CMD_LIST_FIRST,
+ CMD_LIST_LAST,
+ CMD_LIST_NEXT_PAGE,
+ CMD_LIST_PREVIOUS_PAGE,
+ CMD_LIST_FIND,
+ CMD_LIST_FIND_NEXT,
+ CMD_LIST_RFIND,
+ CMD_LIST_RFIND_NEXT,
+ CMD_LIST_MOVE_UP,
+ CMD_LIST_MOVE_DOWN,
+ CMD_MOUSE_EVENT,
+ CMD_SCREEN_UPDATE,
+ CMD_SCREEN_PREVIOUS,
+ CMD_SCREEN_NEXT,
+ CMD_SCREEN_PLAY,
+ CMD_SCREEN_FILE,
+ CMD_SCREEN_ARTIST,
+ CMD_SCREEN_SEARCH,
+ CMD_SCREEN_KEYDEF,
+ CMD_SCREEN_HELP,
+ CMD_SCREEN_LYRICS,
+ CMD_LYRICS_UPDATE,
+ CMD_INTERRUPT,
+ CMD_GO_ROOT_DIRECTORY,
+ CMD_GO_PARENT_DIRECTORY,
+ CMD_QUIT
} command_t;
@@ -87,8 +86,8 @@ command_definition_t *get_command_definitions(void);
command_t find_key_command(int key, command_definition_t *cmds);
void command_dump_keys(void);
-int check_key_bindings(command_definition_t *cmds, char *buf, size_t size);
-int write_key_bindings(FILE *f, int all);
+int check_key_bindings(command_definition_t *cmds, char *buf, size_t size);
+int write_key_bindings(FILE *f, int all);
const char *key2str(int key);
const char *get_key_description(command_t command);