Beispiel #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);
}
Beispiel #2
0
static int cfg_trylock(str *lkey)
{
	return cfg_lock_helper(lkey, 2);
}
Beispiel #3
0
int cfgutils_unlock(str *lkey)
{
	return cfg_lock_helper(lkey, 1);
}
Beispiel #4
0
static int cfg_unlock(str *lkey)
{
	return cfg_lock_helper(lkey, 1);
}
Beispiel #5
0
static int cfg_trylock(sip_msg_t *msg, str *lkey)
{
	return cfg_lock_helper(lkey, 2);
}