mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +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 = {
|
||||
|
Reference in New Issue
Block a user