diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-03-28 20:48:24 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-03-28 20:48:24 +0000 |
commit | d55d17a49496aec0974405dcd25707de499c7d81 (patch) | |
tree | 510ad77207125249e64eb1829ba60b42a60242b0 /include | |
parent | ad3c5e1c18fbbaf40cea47038fefe4a5f7b414fc (diff) |
Fix a bunch of const stuff, merge queue changes, add experimental "hybrid" DTMF mode
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5293 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rwxr-xr-x | include/asterisk/channel.h | 10 | ||||
-rwxr-xr-x | include/asterisk/tdd.h | 2 |
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 */ /*! |