diff options
author | Russell Bryant <russell@russellbryant.com> | 2006-06-06 01:22:47 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2006-06-06 01:22:47 +0000 |
commit | 80a153af79d7fa24b99887623135ef8854ec6077 (patch) | |
tree | 6d5e22bd1b3a5313118ffb066b2c6d084ecf64ca /include/asterisk/callerid.h | |
parent | bbc584e3d7daa656f5f2a7ec153b34c2af80dc18 (diff) |
- use stringfields in a bunch of the fields of the zt_pvt structure in chan_zap
- constify some arguments to functions in callerid.c / callerid.h
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@32456 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/callerid.h')
-rw-r--r-- | include/asterisk/callerid.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/asterisk/callerid.h b/include/asterisk/callerid.h index 9d29387c8..c762184d7 100644 --- a/include/asterisk/callerid.h +++ b/include/asterisk/callerid.h @@ -86,7 +86,7 @@ void callerid_init(void); * \return It returns the size * (in bytes) of the data (if it returns a size of 0, there is probably an error) */ -int callerid_generate(unsigned char *buf, char *number, char *name, int flags, int callwaiting, int codec); +int callerid_generate(unsigned char *buf, const char *number, const char *name, int flags, int callwaiting, int codec); /*! \brief Create a callerID state machine * \param cid_signalling Type of signalling in use @@ -157,7 +157,7 @@ void callerid_free(struct callerid_state *cid); * * Acts like callerid_generate except uses an asterisk format callerid string. */ -int ast_callerid_generate(unsigned char *buf, char *name, char *number, int codec); +int ast_callerid_generate(unsigned char *buf, const char *name, const char *number, int codec); /*! \brief Generate message waiting indicator (stutter tone) */ int vmwi_generate(unsigned char *buf, int active, int mdmf, int codec); @@ -165,7 +165,7 @@ int vmwi_generate(unsigned char *buf, int active, int mdmf, int codec); /*! \brief Generate Caller-ID spill but in a format suitable for Call Waiting(tm)'s Caller*ID(tm) * See ast_callerid_generate() for other details */ -int ast_callerid_callwaiting_generate(unsigned char *buf, char *name, char *number, int codec); +int ast_callerid_callwaiting_generate(unsigned char *buf, const char *name, const char *number, int codec); /*! \brief Destructively parse inbuf into name and location (or number) * Parses callerid stream from inbuf and changes into useable form, outputed in name and location. |