diff options
Diffstat (limited to 'include/asterisk/app.h')
-rwxr-xr-x | include/asterisk/app.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asterisk/app.h b/include/asterisk/app.h index 269980309..b50dfe36b 100755 --- a/include/asterisk/app.h +++ b/include/asterisk/app.h @@ -65,6 +65,16 @@ struct ast_ivr_menu { #define AST_IVR_FLAG_AUTORESTART (1 << 0) +struct ast_option { + unsigned int flag; + int argoption; +}; + +extern int ast_parseoptions(const struct ast_option *options, struct ast_flags *flags, char **args, char *optstr); + +#define AST_DECLARE_OPTIONS(holder,args...) \ + static struct ast_option holder[128] = args + #define AST_IVR_DECLARE_MENU(holder,title,flags,foo...) \ static struct ast_ivr_option __options_##holder[] = foo;\ static struct ast_ivr_menu holder = { title, flags, __options_##holder } |