diff options
author | Kalle Wallin <kaw@linux.se> | 2004-06-30 17:18:02 +0000 |
---|---|---|
committer | Kalle Wallin <kaw@linux.se> | 2004-06-30 17:18:02 +0000 |
commit | 919b0f13474fd323c7cd9e0b872b1990068a012d (patch) | |
tree | bb24d5e31ec390c8df695704881e0d0a96aa0adc /src/command.h | |
parent | e6c52179ca6e78a0a6a61002a80aa37b4f21719c (diff) | |
download | mpd-919b0f13474fd323c7cd9e0b872b1990068a012d.tar.gz mpd-919b0f13474fd323c7cd9e0b872b1990068a012d.tar.xz mpd-919b0f13474fd323c7cd9e0b872b1990068a012d.zip |
Added flags for conflicting, modified key bindings - check_key_bindings()
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1743 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/command.h')
-rw-r--r-- | src/command.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/command.h b/src/command.h index c212ac025..593f6993e 100644 --- a/src/command.h +++ b/src/command.h @@ -3,6 +3,7 @@ #define MAX_COMMAND_KEYS 3 +/* commands */ typedef enum { CMD_NONE = 0, @@ -51,9 +52,15 @@ typedef enum CMD_QUIT } command_t; + +/* flags */ +#define COMMAND_KEY_MODIFIED 0x01 +#define COMMAND_KEY_CONFLICT 0x02 + typedef struct { int keys[MAX_COMMAND_KEYS]; + char flags; command_t command; char *name; char *description; @@ -63,7 +70,7 @@ 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(char *buf, size_t size); +int check_key_bindings(command_definition_t *cmds, char *buf, size_t size); int write_key_bindings(FILE *f); char *key2str(int key); |