diff options
author | Mark Spencer <markster@digium.com> | 2005-03-12 05:37:32 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2005-03-12 05:37:32 +0000 |
commit | 2deba424d266def239c741aa9399745ebe3796b8 (patch) | |
tree | 865433608b42afc5993e2a252f44293b75c8c200 /include/asterisk/app.h | |
parent | 5dc4b018a4014d2237b87da8c1773a0fa0e8136f (diff) |
Create experimental new options API, various cleanups
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5171 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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 } |