[Asterisk-cvs] asterisk/include/asterisk app.h,1.33,1.34

markster at lists.digium.com markster at lists.digium.com
Fri Mar 11 23:41:21 CST 2005


Update of /usr/cvsroot/asterisk/include/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv16987/include/asterisk

Modified Files:
	app.h 
Log Message:
Create experimental new options API, various cleanups


Index: app.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/app.h,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- app.h	5 Mar 2005 21:06:26 -0000	1.33
+++ app.h	12 Mar 2005 05:37:32 -0000	1.34
@@ -65,6 +65,16 @@
 
 #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 }




More information about the svn-commits mailing list