summaryrefslogtreecommitdiff
path: root/include/asterisk
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2006-11-15 15:02:56 +0000
committerLuigi Rizzo <rizzo@icir.org>2006-11-15 15:02:56 +0000
commit6edcca7b8d762ab8e3dc1afea7f9c0a74883e543 (patch)
treeeb62f48cab48b0bbfa416a1a8f0240b9f8506f71 /include/asterisk
parent1781f41b3b35f0402bc332acba07982534c05481 (diff)
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: https://origsvn.digium.com/svn/asterisk/trunk@47654 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk')
-rw-r--r--include/asterisk/cli.h4
1 files changed, 3 insertions, 1 deletions
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.