diff options
author | Max Kellermann <max@duempel.org> | 2008-12-10 20:16:04 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-12-10 20:16:04 +0100 |
commit | 0f32dbe7603ae08ed94a911887ec748892932682 (patch) | |
tree | b028ae6575001667b7b8d2b940490fa41c3d5c71 /src/command.h | |
parent | b2ef665d114df06c51b5a302952b1403caa306b1 (diff) | |
download | mpd-0f32dbe7603ae08ed94a911887ec748892932682.tar.gz mpd-0f32dbe7603ae08ed94a911887ec748892932682.tar.xz mpd-0f32dbe7603ae08ed94a911887ec748892932682.zip |
command: disable check_key_bindings() with --enable-mini
Remove another superfluous feature from the ncmpc-mini mode.
Diffstat (limited to 'src/command.h')
-rw-r--r-- | src/command.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/command.h b/src/command.h index ef1fee2e8..4df7a30f0 100644 --- a/src/command.h +++ b/src/command.h @@ -23,7 +23,10 @@ #include "config.h" #include <stddef.h> + +#ifndef NCMPC_MINI #include <stdio.h> +#endif #define MAX_COMMAND_KEYS 3 @@ -88,9 +91,11 @@ typedef enum { } command_t; +#ifndef NCMPC_MINI /* command definition flags */ #define COMMAND_KEY_MODIFIED 0x01 #define COMMAND_KEY_CONFLICT 0x02 +#endif /* write key bindings flags */ #define KEYDEF_WRITE_HEADER 0x01 @@ -112,9 +117,14 @@ command_definition_t *get_command_definitions(void); command_t find_key_command(int key, command_definition_t *cmds); void command_dump_keys(void); + +#ifndef NCMPC_MINI + int check_key_bindings(command_definition_t *cmds, char *buf, size_t size); int write_key_bindings(FILE *f, int all); +#endif + const char *key2str(int key); const char *get_key_description(command_t command); const char *get_key_command_name(command_t command); |