summaryrefslogtreecommitdiffstats
path: root/cmd_handler.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cmd_handler.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd_handler.h b/cmd_handler.h
index d40740d..73b5962 100644
--- a/cmd_handler.h
+++ b/cmd_handler.h
@@ -5,7 +5,7 @@
*/
#undef NAME
-#define NAME(n, d)
+#define NAME(n, d, v)
#undef ENTRY
#define ENTRY(n, h, f, ...) \
@@ -26,7 +26,7 @@ static int f(int argc, char **argv, struct command *command, struct plugin *plug
*/
#undef NAME
-#define NAME(n, d)
+#define NAME(n, d, v)
#undef ENTRY_W_ALIAS
#define ENTRY_W_ALIAS(n, h, f, a) \
@@ -63,7 +63,7 @@ static struct command f ## _cmd = { \
*/
#undef NAME
-#define NAME(n, d)
+#define NAME(n, d, v)
#undef ENTRY
#define ENTRY(n, h, f, ...) &f ## _cmd,
@@ -87,7 +87,7 @@ static struct command *commands[] = { \
*/
#undef NAME
-#define NAME(n, d) .name = n, .desc = d,
+#define NAME(n, d, v) .name = n, .desc = d, .version = v,
#undef COMMAND_LIST
#define COMMAND_LIST(args...)