[Asterisk-cvs] asterisk/include/asterisk pbx.h,1.44,1.45

kpfleming at lists.digium.com kpfleming at lists.digium.com
Thu May 5 01:32:36 CDT 2005


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

Modified Files:
	pbx.h 
Log Message:
major re-work of dialplan functions, including:

 - locking of functions list during registration/unregistration/searching
 - rename of function description structure to be consistent with the rest of the API
 - addition of 'desc' element to description structure, for detailed description (like applications)
 - addition of 'show function' CLI command to show function details
 - conversion of existing functions to use uppercase names to match policy
 - creation of new 'pbx_functions.so' module to contain standard 'builtin' functions
 - removal of all builtin functions from pbx.c and apps and placement into new 'funcs' directory



Index: pbx.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/pbx.h,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- pbx.h	21 Apr 2005 06:02:44 -0000	1.44
+++ pbx.h	5 May 2005 05:39:33 -0000	1.45
@@ -53,14 +53,15 @@
 
 typedef int (*ast_devstate_cb_type)(const char *dev, int state, void *data);
 
-/*! Data structure associated with an asterisk custom function */
-struct ast_custom_function_obj {
+/*! Data structure associated with a custom function */
+struct ast_custom_function {
 	char *name;
+	char *synopsis;
 	char *desc;
 	char *syntax;
 	char *(*read)(struct ast_channel *, char *, char *, char *, size_t);
 	void (*write)(struct ast_channel *, char *, char *, const char *);
-	struct ast_custom_function_obj *next;
+	struct ast_custom_function *next;
 };
 
 /*! Data structure associated with an asterisk switch */
@@ -597,9 +598,10 @@
 int ast_parseable_goto(struct ast_channel *chan, const char *goto_string);
 int ast_explicit_goto(struct ast_channel *chan, const char *context, const char *exten, int priority);
 int ast_async_goto_if_exists(struct ast_channel *chan, char* context, char *exten, int priority);
-struct ast_custom_function_obj* ast_custom_function_find_obj(char *name);
-int ast_custom_function_unregister(struct ast_custom_function_obj *acf);
-int ast_custom_function_register(struct ast_custom_function_obj *acf);
+
+struct ast_custom_function* ast_custom_function_find(char *name);
+int ast_custom_function_unregister(struct ast_custom_function *acf);
+int ast_custom_function_register(struct ast_custom_function *acf);
 
 #if defined(__cplusplus) || defined(c_plusplus)
 }




More information about the svn-commits mailing list