summaryrefslogtreecommitdiff
path: root/include/asterisk/agi.h
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2007-07-23 22:02:05 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2007-07-23 22:02:05 +0000
commitdb9d7764e08b752f230959bc6f31e81c2c553a93 (patch)
tree786a4e137d1324497fd55543df4e44896b8431cf /include/asterisk/agi.h
parent84f325abb2e866a9a04545886f80256bcb053f75 (diff)
Enhance AGI with several fixes:
- Makes the structures handling external AGI commands a bit more thread-safe - Makes AGI transparently work with both live and hungup channels - DeadAGI is hence no longer necessary and is deprecated - CLI bug fixes - Commands will refuse to run if the channel is dead and the command is nonsensical for dead channels. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@76707 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/agi.h')
-rw-r--r--include/asterisk/agi.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/asterisk/agi.h b/include/asterisk/agi.h
index 5a0edc83f..ac85db181 100644
--- a/include/asterisk/agi.h
+++ b/include/asterisk/agi.h
@@ -43,11 +43,14 @@ typedef struct agi_command {
char *summary;
/* Detailed usage information */
char *usage;
- struct agi_command *next;
+ /* Does this application run dead */
+ int dead;
+ /* Linked list pointer */
+ AST_LIST_ENTRY(agi_command) list;
} agi_command;
int ast_agi_register(agi_command *cmd);
-void ast_agi_unregister(agi_command *cmd);
+int ast_agi_unregister(agi_command *cmd);
#if defined(__cplusplus) || defined(c_plusplus)
}