aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-23 22:02:05 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-23 22:02:05 +0000
commitc29e2a2152f4656c474e00bbce986fb0006b48f5 (patch)
tree786a4e137d1324497fd55543df4e44896b8431cf /include
parent100272d113a50171d4fb5f40ed59d0b2eddb56a6 (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: http://svn.digium.com/svn/asterisk/trunk@76707 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-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)
}