+ move the definition of netlock as it was not related to the
comment just above; + decouple the struct definition and variable declaration (iflist); git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@45658 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
9934b7f4d2
commit
d553659017
1 changed files with 6 additions and 3 deletions
|
@ -551,9 +551,10 @@ static struct ast_flags global_flags[2] = {{0}}; /*!< global SIP_ flags *
|
|||
/*! \brief Protect the SIP dialog list (of sip_pvt's) */
|
||||
AST_MUTEX_DEFINE_STATIC(iflock);
|
||||
|
||||
AST_MUTEX_DEFINE_STATIC(netlock);
|
||||
|
||||
/*! \brief Protect the monitoring thread, so only one process can kill or start it, and not
|
||||
when it's doing something critical. */
|
||||
AST_MUTEX_DEFINE_STATIC(netlock);
|
||||
|
||||
AST_MUTEX_DEFINE_STATIC(monlock);
|
||||
|
||||
|
@ -861,7 +862,7 @@ struct sip_refer {
|
|||
};
|
||||
|
||||
/*! \brief sip_pvt: PVT structures are used for each SIP dialog, ie. a call, a registration, a subscribe */
|
||||
static struct sip_pvt {
|
||||
struct sip_pvt {
|
||||
ast_mutex_t lock; /*!< Dialog private lock */
|
||||
int method; /*!< SIP method that opened this dialog */
|
||||
AST_DECLARE_STRING_FIELDS(
|
||||
|
@ -973,7 +974,9 @@ static struct sip_pvt {
|
|||
struct sip_pvt *next; /*!< Next dialog in chain */
|
||||
struct sip_invite_param *options; /*!< Options for INVITE */
|
||||
int autoframing;
|
||||
} *iflist = NULL;
|
||||
};
|
||||
|
||||
static struct sip_pvt *iflist = NULL;
|
||||
|
||||
#define FLAG_RESPONSE (1 << 0)
|
||||
#define FLAG_FATAL (1 << 1)
|
||||
|
|
Loading…
Reference in a new issue