aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.h
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2004-07-13 15:28:43 +0000
committerKalle Wallin <kaw@linux.se>2004-07-13 15:28:43 +0000
commitf674c3f262a6bf2542debd29c4aa61281a976cbc (patch)
tree54226e05acccdf1bad118b4dadde4c4d4f8b7e10 /src/command.h
parent2c6af7312cf617f40ab407323fd07a9fa5579495 (diff)
downloadmpd-f674c3f262a6bf2542debd29c4aa61281a976cbc.tar.gz
mpd-f674c3f262a6bf2542debd29c4aa61281a976cbc.tar.xz
mpd-f674c3f262a6bf2542debd29c4aa61281a976cbc.zip
Use my_wgetch() instead of wgetch(), added --[no-]mouse option
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1864 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/command.h')
-rw-r--r--src/command.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/command.h b/src/command.h
index db2c9cee0..fc436a443 100644
--- a/src/command.h
+++ b/src/command.h
@@ -54,10 +54,15 @@ typedef enum
} command_t;
-/* flags */
+/* command definition flags */
#define COMMAND_KEY_MODIFIED 0x01
#define COMMAND_KEY_CONFLICT 0x02
+/* write key bindings flags */
+#define KEYDEF_WRITE_HEADER 0x01
+#define KEYDEF_WRITE_ALL 0x02
+#define KEYDEF_COMMENT_ALL 0x04
+
typedef struct
{
int keys[MAX_COMMAND_KEYS];
@@ -72,7 +77,7 @@ 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 write_key_bindings(FILE *f, int all);
char *key2str(int key);
char *get_key_description(command_t command);
@@ -82,6 +87,7 @@ command_t get_key_command(int key);
command_t get_key_command_from_name(char *name);
int assign_keys(command_t command, int keys[MAX_COMMAND_KEYS]);
+int my_wgetch(WINDOW *w);
command_t get_keyboard_command(void);
command_t get_keyboard_command_with_timeout(int milliseconds);