Enhance AGI with several fixes:
[asterisk/asterisk.git] / include / asterisk / agi.h
index 5a0edc8..ac85db1 100644 (file)
@@ -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)
 }