aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authoreliel <eliel@f38db490-d61c-443f-a65b-d21fe96a405b>2008-11-12 00:17:43 +0000
committereliel <eliel@f38db490-d61c-443f-a65b-d21fe96a405b>2008-11-12 00:17:43 +0000
commitf4ab4abaf3f24f01cc695a96649585ab7fc91948 (patch)
treeea3966ab1c52341565ff036f510bb7ecddaef0b4 /include
parentd8c640af72a7468ebf5a492093b8148a8dfeb62d (diff)
Implement AGI XML documentation parsing functions.
A new <agi> element is used to describe the XML documentation. We have the usual synopsis,syntax,description and seealso for AGI commands. The CLI 'agi show commands' command was changed to show all the documentation se ctions. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@156051 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/agi.h21
1 files changed, 13 insertions, 8 deletions
diff --git a/include/asterisk/agi.h b/include/asterisk/agi.h
index 609e98815..48de8c954 100644
--- a/include/asterisk/agi.h
+++ b/include/asterisk/agi.h
@@ -38,20 +38,25 @@ typedef struct agi_state {
} AGI;
typedef struct agi_command {
- /* Null terminated list of the words of the command */
- char *cmda[AST_MAX_CMD_LEN];
- /* Handler for the command (channel, AGI state, # of arguments, argument list).
+ char *cmda[AST_MAX_CMD_LEN]; /*!< Null terminated list of the words of the command */
+ /*! Handler for the command (channel, AGI state, # of arguments, argument list).
Returns RESULT_SHOWUSAGE for improper arguments */
int (*handler)(struct ast_channel *chan, AGI *agi, int argc, char *argv[]);
- /* Summary of the command (< 60 characters) */
+ /*! Summary of the command (< 60 characters) */
char *summary;
- /* Detailed usage information */
+ /*! Detailed usage information */
char *usage;
- /* Does this application run dead */
+ /*! Does this application run dead */
int dead;
- /* Pointer to module that registered the agi command */
+ /*! AGI command syntax description */
+ char *syntax;
+ /*! See also content */
+ char *seealso;
+ /*! Where the documentation come from. */
+ enum ast_doc_src docsrc;
+ /*! Pointer to module that registered the agi command */
struct ast_module *mod;
- /* Linked list pointer */
+ /*! Linked list pointer */
AST_LIST_ENTRY(agi_command) list;
} agi_command;