aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/command.c')
-rw-r--r--src/command.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/command.c b/src/command.c
index 1b6519a53..663ab7ad2 100644
--- a/src/command.c
+++ b/src/command.c
@@ -297,6 +297,8 @@ command_dump_keys(void)
}
}
+#ifndef NCMPC_MINI
+
static int
set_key_flags(command_definition_t *cp, command_t command, int flags)
{
@@ -314,6 +316,8 @@ set_key_flags(command_definition_t *cp, command_t command, int flags)
return 1;
}
+#endif
+
const char *
get_key_names(command_t command, int all)
{
@@ -434,7 +438,9 @@ assign_keys(command_t command, int keys[MAX_COMMAND_KEYS])
while (cmds[i].name) {
if (cmds[i].command == command) {
memcpy(cmds[i].keys, keys, sizeof(int)*MAX_COMMAND_KEYS);
+#ifndef NCMPC_MINI
cmds[i].flags |= COMMAND_KEY_MODIFIED;
+#endif
return 0;
}
i++;
@@ -442,6 +448,8 @@ assign_keys(command_t command, int keys[MAX_COMMAND_KEYS])
return -1;
}
+#ifndef NCMPC_MINI
+
int
check_key_bindings(command_definition_t *cp, char *buf, size_t bufsize)
{
@@ -529,3 +537,5 @@ write_key_bindings(FILE *f, int flags)
return ferror(f);
}
+
+#endif