[Asterisk-cvs] asterisk/include/asterisk channel.h, 1.79, 1.80 tdd.h, 1.2, 1.3

markster at lists.digium.com markster at lists.digium.com
Mon Mar 28 14:54:37 CST 2005


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

Modified Files:
	channel.h tdd.h 
Log Message:
Fix a bunch of const stuff, merge queue changes, add experimental "hybrid" DTMF mode


Index: channel.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/channel.h,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -d -r1.79 -r1.80
--- channel.h	23 Mar 2005 21:52:31 -0000	1.79
+++ channel.h	28 Mar 2005 20:48:24 -0000	1.80
@@ -115,13 +115,13 @@
 	int (* const write)(struct ast_channel *chan, struct ast_frame *frame);
 
 	/*! Display or transmit text */
-	int (* const send_text)(struct ast_channel *chan, char *text);
+	int (* const send_text)(struct ast_channel *chan, const char *text);
 
 	/*! Display or send an image */
 	int (* const send_image)(struct ast_channel *chan, struct ast_frame *frame);
 
 	/*! Send HTML data */
-	int (* const send_html)(struct ast_channel *chan, int subclass, char *data, int len);
+	int (* const send_html)(struct ast_channel *chan, int subclass, const char *data, int len);
 
 	/*! Handle an exception, reading a frame */
 	struct ast_frame * (* const exception)(struct ast_channel *chan);
@@ -143,7 +143,7 @@
 	int (* const queryoption)(struct ast_channel *chan, int option, void *data, int *datalen);
 
 	/*! Blind transfer other side */
-	int (* const transfer)(struct ast_channel *chan, char *newdest);
+	int (* const transfer)(struct ast_channel *chan, const char *newdest);
 
 	/*! Write a frame, in standard format */
 	int (* const write_video)(struct ast_channel *chan, struct ast_frame *frame);
@@ -841,11 +841,11 @@
 
 /*! Sends HTML on given channel */
 /*! Send HTML or URL on link.  Returns 0 on success or -1 on failure */
-int ast_channel_sendhtml(struct ast_channel *channel, int subclass, char *data, int datalen);
+int ast_channel_sendhtml(struct ast_channel *channel, int subclass, const char *data, int datalen);
 
 /*! Sends a URL on a given link */
 /*! Send URL on link.  Returns 0 on success or -1 on failure */
-int ast_channel_sendurl(struct ast_channel *channel, char *url);
+int ast_channel_sendurl(struct ast_channel *channel, const char *url);
 
 /*! Defers DTMF */
 /*! Defer DTMF so that you only read things like hangups and audio.  Returns

Index: tdd.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/tdd.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- tdd.h	15 Jan 2005 23:48:12 -0000	1.2
+++ tdd.h	28 Mar 2005 20:48:24 -0000	1.3
@@ -35,7 +35,7 @@
  * This function creates a stream of TDD data in ulaw format. It returns the size
  * (in bytes) of the data (if it returns a size of 0, there is probably an error)
 */
-extern int tdd_generate(struct tdd_state *tdd, unsigned char *buf, char *string);
+extern int tdd_generate(struct tdd_state *tdd, unsigned char *buf, const char *string);
 
 /*! Create a TDD state machine */
 /*!




More information about the svn-commits mailing list