Code

main: eliminate another local dummy variable
[ncmpc.git] / src / screen_interface.h
index bcf442a1fefdd668863404a3cc02a68b1b133337..40796bc33c769ee305ec196f2dbb763723727997 100644 (file)
@@ -1,5 +1,5 @@
 /* ncmpc (Ncurses MPD Client)
- * (c) 2004-2010 The Music Player Daemon Project
+ * (c) 2004-2017 The Music Player Daemon Project
  * Project homepage: http://musicpd.org
  *
  * This program is free software; you can redistribute it and/or modify
@@ -37,7 +37,14 @@ struct screen_functions {
        void (*resize)(int cols, int rows);
        void (*paint)(void);
        void (*update)(struct mpdclient *c);
+
+       /**
+        * Handle a command.
+        *
+        * @returns true if the command should not be handled by the ncmpc core.
+        */
        bool (*cmd)(struct mpdclient *c, command_t cmd);
+
        const char *(*get_title)(char *s, size_t size);
 };