aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/pbx.h
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-03-04 06:36:18 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-03-04 06:36:18 +0000
commitb0180cc4f641d4097a85f52b887ac0bef130604b (patch)
tree720c9e1b1d785caa6e4e27352b5c48e2b4228502 /include/asterisk/pbx.h
parent484d9d791ff178d551df19b08b81d98352356ae6 (diff)
Add registerable functional variables (bug #3636, with doc mods)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5136 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/pbx.h')
-rwxr-xr-xinclude/asterisk/pbx.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/asterisk/pbx.h b/include/asterisk/pbx.h
index 5e05c43a5..4afbd75fb 100755
--- a/include/asterisk/pbx.h
+++ b/include/asterisk/pbx.h
@@ -53,6 +53,15 @@ typedef int (*ast_state_cb_type)(char *context, char* id, int state, void *data)
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_goto_if_exists(struct ast_channel *chan, char* context, char *exten, int
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