Esempio n. 1
0
static int w_cfg_lock_wrapper(struct sip_msg *msg, gparam_p key, int mode)
{
	str s;
	if(fixup_get_svalue(msg, key, &s)!=0)
	{
		LM_ERR("cannot get first parameter\n");
		return -1;
	}
	return cfg_lock_helper(&s, mode);
}
Esempio n. 2
0
static int cfg_trylock(str *lkey)
{
	return cfg_lock_helper(lkey, 2);
}
Esempio n. 3
0
int cfgutils_unlock(str *lkey)
{
	return cfg_lock_helper(lkey, 1);
}
Esempio n. 4
0
static int cfg_unlock(str *lkey)
{
	return cfg_lock_helper(lkey, 1);
}
Esempio n. 5
0
static int cfg_trylock(sip_msg_t *msg, str *lkey)
{
	return cfg_lock_helper(lkey, 2);
}