[Asterisk-cvs] asterisk/include/asterisk pbx.h,1.37,1.38

markster at lists.digium.com markster at lists.digium.com
Wed Jan 12 23:10:57 CST 2005


Update of /usr/cvsroot/asterisk/include/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv17368/include/asterisk

Modified Files:
	pbx.h 
Log Message:
Implement eswitch for evalulating variables at runtime (bug #3168)


Index: pbx.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/pbx.h,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- pbx.h	23 Dec 2004 02:47:00 -0000	1.37
+++ pbx.h	13 Jan 2005 05:14:56 -0000	1.38
@@ -424,16 +424,17 @@
  * \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
 /*!




More information about the svn-commits mailing list