summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2005-01-13 05:14:56 +0000
committerMark Spencer <markster@digium.com>2005-01-13 05:14:56 +0000
commit278a0a089138b2738653d1057ac9f2431aed6841 (patch)
treea56e3aa4264fb046fda07a768d7ad9de85158f66 /include
parent7c048c0b6506dc72e584f401051e45b67ace5998 (diff)
Implement eswitch for evalulating variables at runtime (bug #3168)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4780 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rwxr-xr-xinclude/asterisk/pbx.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/asterisk/pbx.h b/include/asterisk/pbx.h
index 33aa1b589..1c48b456a 100755
--- a/include/asterisk/pbx.h
+++ b/include/asterisk/pbx.h
@@ -424,16 +424,17 @@ int ast_context_verify_includes(struct ast_context *con);
* \param context context to which to add the switch
* \param sw switch to add
* \param data data to pass to switch
+ * \param eval whether to evaluate variables when running switch
* \param registrar whoever registered the switch
* This function registers a switch with the asterisk switch architecture
* It returns 0 on success, -1 on failure
*/
-int ast_context_add_switch(const char *context, const char *sw, const char *data, const char *registrar);
+int ast_context_add_switch(const char *context, const char *sw, const char *data, int eval, const char *registrar);
//! Adds a switch (first param is a ast_context)
/*!
* See ast_context_add_switch()
*/
-int ast_context_add_switch2(struct ast_context *con, const char *sw, const char *data, const char *registrar);
+int ast_context_add_switch2(struct ast_context *con, const char *sw, const char *data, int eval, const char *registrar);
//! Remove a switch
/*!