mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-19 19:20:35 +00:00
Constify some more channel driver technology callback parameters.
Review: https://reviewboard.asterisk.org/r/1707/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@353685 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -56,8 +56,8 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
||||
static const char tdesc[] = "Multicast RTP Paging Channel Driver";
|
||||
|
||||
/* Forward declarations */
|
||||
static struct ast_channel *multicast_rtp_request(const char *type, struct ast_format_cap *cap, const struct ast_channel *requestor, void *data, int *cause);
|
||||
static int multicast_rtp_call(struct ast_channel *ast, char *dest, int timeout);
|
||||
static struct ast_channel *multicast_rtp_request(const char *type, struct ast_format_cap *cap, const struct ast_channel *requestor, const char *data, int *cause);
|
||||
static int multicast_rtp_call(struct ast_channel *ast, const char *dest, int timeout);
|
||||
static int multicast_rtp_hangup(struct ast_channel *ast);
|
||||
static struct ast_frame *multicast_rtp_read(struct ast_channel *ast);
|
||||
static int multicast_rtp_write(struct ast_channel *ast, struct ast_frame *f);
|
||||
@@ -88,7 +88,7 @@ static int multicast_rtp_write(struct ast_channel *ast, struct ast_frame *f)
|
||||
}
|
||||
|
||||
/*! \brief Function called when we should actually call the destination */
|
||||
static int multicast_rtp_call(struct ast_channel *ast, char *dest, int timeout)
|
||||
static int multicast_rtp_call(struct ast_channel *ast, const char *dest, int timeout)
|
||||
{
|
||||
struct ast_rtp_instance *instance = ast->tech_pvt;
|
||||
|
||||
@@ -110,7 +110,7 @@ static int multicast_rtp_hangup(struct ast_channel *ast)
|
||||
}
|
||||
|
||||
/*! \brief Function called when we should prepare to call the destination */
|
||||
static struct ast_channel *multicast_rtp_request(const char *type, struct ast_format_cap *cap, const struct ast_channel *requestor, void *data, int *cause)
|
||||
static struct ast_channel *multicast_rtp_request(const char *type, struct ast_format_cap *cap, const struct ast_channel *requestor, const char *data, int *cause)
|
||||
{
|
||||
char *tmp = ast_strdupa(data), *multicast_type = tmp, *destination, *control;
|
||||
struct ast_rtp_instance *instance;
|
||||
|
Reference in New Issue
Block a user