[Asterisk-cvs] asterisk/include/asterisk pbx.h,1.41,1.42
markster at lists.digium.com
markster at lists.digium.com
Fri Mar 4 00:39:08 CST 2005
Update of /usr/cvsroot/asterisk/include/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv17284/include/asterisk
Modified Files:
pbx.h
Log Message:
Add registerable functional variables (bug #3636, with doc mods)
Index: pbx.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/pbx.h,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -d -r1.41 -r1.42
--- pbx.h 2 Feb 2005 02:54:15 -0000 1.41
+++ pbx.h 4 Mar 2005 06:36:18 -0000 1.42
@@ -53,6 +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 {
+ char *name;
+ char *desc;
+ char *syntax;
+ char *(*function)(struct ast_channel *, char *, char *, char *, size_t);
+ struct ast_custom_function_obj *next;
+};
+
/*! Data structure associated with an asterisk switch */
struct ast_switch {
/*! NULL */
@@ -587,6 +596,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);
+
#if defined(__cplusplus) || defined(c_plusplus)
}
#endif
More information about the svn-commits
mailing list