Code

command: Added the new jump command.
[ncmpc.git] / src / command.h
index 8cfe9d03b62a909c6d363ad61a386e928bfd11b3..7111a2b2f619f1a7bb4f2cd350d487b5a62f50f1 100644 (file)
@@ -1,10 +1,32 @@
+/* ncmpc (Ncurses MPD Client)
+ * (c) 2004-2009 The Music Player Daemon Project
+ * Project homepage: http://musicpd.org
+
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+*/
+
 #ifndef COMMAND_H
 #define COMMAND_H
 
 #include "config.h"
 
 #include <stddef.h>
+
+#ifndef NCMPC_MINI
 #include <stdio.h>
+#endif
 
 #define MAX_COMMAND_KEYS 3
 
@@ -45,8 +67,10 @@ typedef enum {
        CMD_LIST_FIND_NEXT,
        CMD_LIST_RFIND,
        CMD_LIST_RFIND_NEXT,
+       CMD_LIST_JUMP,
        CMD_LIST_MOVE_UP,
        CMD_LIST_MOVE_DOWN,
+       CMD_LIST_VISUAL_SELECT,
        CMD_MOUSE_EVENT,
        CMD_SCREEN_UPDATE,
        CMD_SCREEN_PREVIOUS,
@@ -58,17 +82,22 @@ typedef enum {
        CMD_SCREEN_KEYDEF,
        CMD_SCREEN_HELP,
        CMD_SCREEN_LYRICS,
+       CMD_SCREEN_OUTPUTS,
        CMD_LYRICS_UPDATE,
        CMD_INTERRUPT,
        CMD_GO_ROOT_DIRECTORY,
        CMD_GO_PARENT_DIRECTORY,
+       CMD_VIEW,
+       CMD_LOCATE,
        CMD_QUIT
 } 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
@@ -90,9 +119,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);