diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2006-02-14 22:44:20 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2006-02-14 22:44:20 +0000 |
commit | ff7a90829d623f89208e2f60402c3a321b8dbe35 (patch) | |
tree | e2f963529aa3e1fb3decc25b31e1f383f55a270e /include/asterisk/cli.h | |
parent | 1c7126664dbf14c1f1c565eb130616ac7046a162 (diff) |
more list macro conversion (issue #6361, plus documentation for new macro)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10067 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/cli.h')
-rw-r--r-- | include/asterisk/cli.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/asterisk/cli.h b/include/asterisk/cli.h index f5bb10070..884d4c166 100644 --- a/include/asterisk/cli.h +++ b/include/asterisk/cli.h @@ -29,6 +29,8 @@ extern "C" { #include <stdarg.h> +#include "asterisk/linkedlists.h" + void ast_cli(int fd, char *fmt, ...) __attribute__ ((format (printf, 2, 3))); @@ -67,10 +69,10 @@ struct ast_cli_entry { until a NULL is returned. */ char *(*generator)(const char *line, const char *word, int pos, int n); - /*! For linking */ - struct ast_cli_entry *next; /*! For keeping track of usage */ int inuse; + /*! For linking */ + AST_LIST_ENTRY(ast_cli_entry) list; }; |