aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/app.h
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-03-12 05:37:32 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-03-12 05:37:32 +0000
commitb61285c1d9e13b7c8f7af8cc4837540226cd99c3 (patch)
tree865433608b42afc5993e2a252f44293b75c8c200 /include/asterisk/app.h
parent3ad9cdea1eaa73d82c3b815688b2670dd31e35e7 (diff)
Create experimental new options API, various cleanups
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5171 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/app.h')
-rwxr-xr-xinclude/asterisk/app.h10
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 }