summaryrefslogtreecommitdiff
path: root/include/asterisk/pbx.h
diff options
context:
space:
mode:
authorAnthony Minessale II <anthmct@yahoo.com>2005-05-05 15:07:49 +0000
committerAnthony Minessale II <anthmct@yahoo.com>2005-05-05 15:07:49 +0000
commit6b7677e842d5ba5646b3f8b1c30254161479d977 (patch)
tree900b49271b8197254a3641049785b9e956048843 /include/asterisk/pbx.h
parentb0685838db99296e4d86aa57d2eb313a1ed59243 (diff)
expose function execution routines and warn about trying to set a read-only cdr var
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5589 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/pbx.h')
-rwxr-xr-xinclude/asterisk/pbx.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/asterisk/pbx.h b/include/asterisk/pbx.h
index 07d8fbbaa..19331acff 100755
--- a/include/asterisk/pbx.h
+++ b/include/asterisk/pbx.h
@@ -602,6 +602,29 @@ int ast_async_goto_if_exists(struct ast_channel *chan, char* context, char *exte
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);
+
+/*! executes a read operation on a function */
+/*!
+ * \param chan Channel to execute on
+ * \param in Data containing the function call string
+ * \param workspace A pointer to safe memory to use for a return value
+ * \param len the number of bytes in workspace
+ * This application executes an function in read mode on a given channel.
+ * It returns a pointer to workspace if the buffer contains any new data
+ * or NULL if there was a problem.
+ */
+
+char *ast_func_read(struct ast_channel *chan, const char *in, char *workspace, size_t len);
+
+/*! executes a write operation on a function */
+/*!
+ * \param chan Channel to execute on
+ * \param in Data containing the function call string
+ * \param value A value parameter to pass for writing
+ * This application executes an function in write mode on a given channel.
+ * It has no return value.
+ */
+void ast_func_write(struct ast_channel *chan, const char *in, const char *value);
#if defined(__cplusplus) || defined(c_plusplus)
}