Code

Makefile.am: disable dist-bzip2
[ncmpc.git] / src / command.h
index 225d76e5fb4bfa5e4a7c00a9ea26eaf6a89d4083..307bba1d8359097882af779df0847b56c6f68a1a 100644 (file)
@@ -21,6 +21,7 @@
 #define COMMAND_H
 
 #include "config.h"
+#include "Compiler.h"
 
 #include <stddef.h>
 #include <stdbool.h>
@@ -96,6 +97,7 @@ typedef enum {
        CMD_SCREEN_HELP,
        CMD_SCREEN_LYRICS,
        CMD_SCREEN_OUTPUTS,
+       CMD_SCREEN_CHAT,
        CMD_LYRICS_UPDATE,
        CMD_EDIT,
        CMD_INTERRUPT,
@@ -127,9 +129,12 @@ typedef struct  {
 
 #ifdef ENABLE_KEYDEF_SCREEN
 command_definition_t *get_command_definitions(void);
+size_t get_cmds_max_name_width(command_definition_t *cmds);
 #endif
 
-command_t find_key_command(int key, command_definition_t *cmds);
+gcc_pure
+command_t
+find_key_command(int key, const command_definition_t *cmds);
 
 void command_dump_keys(void);
 
@@ -140,14 +145,28 @@ int write_key_bindings(FILE *f, int all);
 
 #endif
 
+gcc_pure
 const char *key2str(int key);
+
+gcc_pure
 const char *get_key_description(command_t command);
+
+gcc_pure
 const char *get_key_command_name(command_t command);
+
+gcc_pure
 const char *get_key_names(command_t command, bool all);
+
+gcc_pure
 command_t get_key_command(int key);
-command_t get_key_command_from_name(char *name);
+
+gcc_pure
+command_t
+get_key_command_from_name(const char *name);
+
 int assign_keys(command_t command, int keys[MAX_COMMAND_KEYS]);
 
+gcc_pure
 command_t get_keyboard_command(void);
 
 #endif