summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2005-03-28 20:48:24 +0000
committerMark Spencer <markster@digium.com>2005-03-28 20:48:24 +0000
commitdc9faa21e46aeb84471e80d001f9fad18e356f3a (patch)
tree510ad77207125249e64eb1829ba60b42a60242b0 /include
parent5c12ec4755b8618f4b12bd5150b4032eed17e80b (diff)
Fix a bunch of const stuff, merge queue changes, add experimental "hybrid" DTMF mode
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5293 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rwxr-xr-xinclude/asterisk/channel.h10
-rwxr-xr-xinclude/asterisk/tdd.h2
2 files changed, 6 insertions, 6 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h
index a28135c12..92c500031 100755
--- a/include/asterisk/channel.h
+++ b/include/asterisk/channel.h
@@ -115,13 +115,13 @@ struct ast_channel_tech {
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 @@ struct ast_channel_tech {
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 @@ int ast_channel_supports_html(struct ast_channel *channel);
/*! 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
diff --git a/include/asterisk/tdd.h b/include/asterisk/tdd.h
index 9c5313b8c..669b68ce9 100755
--- a/include/asterisk/tdd.h
+++ b/include/asterisk/tdd.h
@@ -35,7 +35,7 @@ extern void tdd_init(void);
* 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 */
/*!