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