diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2007-07-30 19:11:28 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2007-07-30 19:11:28 +0000 |
commit | 059a7aa8627578a28e15b1c7d7d7338cf178e7b2 (patch) | |
tree | e4e1f28ce13f2fff3decf51a6ecfd0a908067c63 /include | |
parent | ad094d51099396d1fdbd5b84b1c08eb7fb441781 (diff) |
Cleanup of res_agi, ensuring thread safety (closes issue #10288)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@77787 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/agi.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/asterisk/agi.h b/include/asterisk/agi.h index ac85db181..584ddfe03 100644 --- a/include/asterisk/agi.h +++ b/include/asterisk/agi.h @@ -30,7 +30,7 @@ extern "C" { typedef struct agi_state { int fd; /* FD for general output */ int audio; /* FD for audio output */ - int ctrl; /* FD for input control */ + int ctrl; /* FD for input control */ } AGI; typedef struct agi_command { @@ -45,12 +45,17 @@ typedef struct agi_command { char *usage; /* Does this application run dead */ int dead; + /* Pointer to module that registered the agi command */ + struct ast_module *mod; /* Linked list pointer */ AST_LIST_ENTRY(agi_command) list; } agi_command; -int ast_agi_register(agi_command *cmd); -int ast_agi_unregister(agi_command *cmd); +void ast_agi_fdprintf(int fd, char *fmt, ...); +int ast_agi_register(struct ast_module *mod, agi_command *cmd); +int ast_agi_unregister(struct ast_module *mod, agi_command *cmd); +void ast_agi_register_multiple(struct ast_module *mod, agi_command *cmd, int len); +void ast_agi_unregister_multiple(struct ast_module *mod, agi_command *cmd, int len); #if defined(__cplusplus) || defined(c_plusplus) } |