diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-07-30 19:11:28 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-07-30 19:11:28 +0000 |
commit | 2619bdce60f84002571a609cefb4238dd5f43c5f (patch) | |
tree | e4e1f28ce13f2fff3decf51a6ecfd0a908067c63 /include | |
parent | 4aef5f564198ae62905313ae208b3b6d9a90d50d (diff) |
Cleanup of res_agi, ensuring thread safety (closes issue #10288)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77787 f38db490-d61c-443f-a65b-d21fe96a405b
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) } |