diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-07-17 20:12:28 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-07-17 20:12:28 +0000 |
commit | 2cb447cfc6a756bf43ea4748101bb0664ab90064 (patch) | |
tree | 412734d461051447b305c69130fc671d6657a0b1 /include | |
parent | 2e12cb472384a279a33056b889825cfd64336f10 (diff) |
Merge musiconhold stuff (bug #2027), restructure AGI to eventually support registration
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3460 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rwxr-xr-x | include/asterisk/agi.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/include/asterisk/agi.h b/include/asterisk/agi.h new file mode 100755 index 000000000..25899d58c --- /dev/null +++ b/include/asterisk/agi.h @@ -0,0 +1,48 @@ +/* + * Asterisk -- A telephony toolkit for Linux. + * + * AGI Extension interfaces + * + * Copyright (C) 1999, Mark Spencer + * + * Mark Spencer <markster@linux-support.net> + * + * This program is free software, distributed under the terms of + * the GNU General Public License + */ + +#ifndef _ASTERISK_AGI_H +#define _ASTERISK_AGI_H + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +typedef struct agi_state { + int fd; /* FD for general output */ + int audio; /* FD for audio output */ + int ctrl; /* FD for input control */ +} AGI; + +typedef struct agi_command { + /* Null terminated list of the words of the command */ + char *cmda[AST_MAX_CMD_LEN]; + /* Handler for the command (channel, AGI state, # of arguments, argument list). + Returns RESULT_SHOWUSAGE for improper arguments */ + int (*handler)(struct ast_channel *chan, AGI *agi, int argc, char *argv[]); + /* Summary of the command (< 60 characters) */ + char *summary; + /* Detailed usage information */ + char *usage; + struct agi_command *next; +} agi_command; + + + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + + + +#endif |