aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-01-13 05:14:56 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-01-13 05:14:56 +0000
commit9678f49d850c60361b6330b76e36e193d013f011 (patch)
treea56e3aa4264fb046fda07a768d7ad9de85158f66 /include
parent4c37e1250396e18726bc938c3fd735609d23ff8d (diff)
Implement eswitch for evalulating variables at runtime (bug #3168)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4780 f38db490-d61c-443f-a65b-d21fe96a405b
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
/*!