From 0c19d9d24a806e2286807f0920222cb767c64ef8 Mon Sep 17 00:00:00 2001 From: rizzo Date: Wed, 15 Nov 2006 15:02:56 +0000 Subject: one more step cleaning the internal CLI interface: the NEW_CLI macro now supports extra arguments (to deprecate other commands). use this to implement unload and reload, and remove some unused functions. usual completion fixes (as these function accept multiple arguments). The summary is still a bit inconsistent. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47654 f38db490-d61c-443f-a65b-d21fe96a405b --- include/asterisk/cli.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/asterisk/cli.h') diff --git a/include/asterisk/cli.h b/include/asterisk/cli.h index a718eb415..d1f9b152b 100644 --- a/include/asterisk/cli.h +++ b/include/asterisk/cli.h @@ -188,7 +188,9 @@ struct ast_cli_entry { AST_LIST_ENTRY(ast_cli_entry) list; }; -#define NEW_CLI(fn, txt) { .new_handler = fn, .summary = txt } +/* XXX the parser in gcc 2.95 gets confused if you don't put a space + * between the last arg before VA_ARGS and the comma */ +#define NEW_CLI(fn, txt , ... ) { .new_handler = fn, .summary = txt, ## __VA_ARGS__ } /*! * Helper function to generate cli entries from a NULL-terminated array. -- cgit v1.2.3