mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
pbx.h: Make ast_state_cb_type take more const.
This eliminates some casts that I made a note saying v10 and above would no longer need them. Better late than never :) Change-Id: I346cdb3032b6478ceb40eb6fe732978b54035572
This commit is contained in:
@@ -1269,7 +1269,7 @@ static void check_for_nat(const struct ast_sockaddr *them, struct sip_pvt *p);
|
||||
|
||||
/*--- Device monitoring and Device/extension state/event handling */
|
||||
static int extensionstate_update(const char *context, const char *exten, struct state_notify_data *data, struct sip_pvt *p, int force);
|
||||
static int cb_extensionstate(char *context, char *exten, struct ast_state_cb_info *info, void *data);
|
||||
static int cb_extensionstate(const char *context, const char *exten, struct ast_state_cb_info *info, void *data);
|
||||
static int sip_poke_noanswer(const void *data);
|
||||
static int sip_poke_peer(struct sip_peer *peer, int force);
|
||||
static void sip_poke_all_peers(void);
|
||||
@@ -17389,7 +17389,7 @@ static int extensionstate_update(const char *context, const char *exten, struct
|
||||
/*! \brief Callback for the devicestate notification (SUBSCRIBE) support subsystem
|
||||
\note If you add an "hint" priority to the extension in the dial plan,
|
||||
you will get notifications on device state changes */
|
||||
static int cb_extensionstate(char *context, char *exten, struct ast_state_cb_info *info, void *data)
|
||||
static int cb_extensionstate(const char *context, const char *exten, struct ast_state_cb_info *info, void *data)
|
||||
{
|
||||
struct sip_pvt *p = data;
|
||||
struct state_notify_data notify_data = {
|
||||
|
@@ -1671,7 +1671,7 @@ static struct ast_channel_tech skinny_tech = {
|
||||
.send_digit_end = skinny_senddigit_end,
|
||||
};
|
||||
|
||||
static int skinny_extensionstate_cb(char *context, char *id, struct ast_state_cb_info *info, void *data);
|
||||
static int skinny_extensionstate_cb(const char *context, const char *exten, struct ast_state_cb_info *info, void *data);
|
||||
|
||||
static struct skinny_line *skinny_line_alloc(void)
|
||||
{
|
||||
@@ -3413,7 +3413,7 @@ static void transmit_serviceurlstat(struct skinny_device *d, int instance)
|
||||
transmit_response(d, req);
|
||||
}
|
||||
|
||||
static int skinny_extensionstate_cb(char *context, char *exten, struct ast_state_cb_info *info, void *data)
|
||||
static int skinny_extensionstate_cb(const char *context, const char *exten, struct ast_state_cb_info *info, void *data)
|
||||
{
|
||||
struct skinny_container *container = data;
|
||||
struct skinny_device *d = NULL;
|
||||
|
Reference in New Issue
Block a user