Lines Matching refs:cfg

231 	smb_cfg_param_t *cfg;  in smb_config_getname()  local
232 cfg = smb_config_getent(id); in smb_config_getname()
233 return (cfg->sc_name); in smb_config_getname()
442 smb_cfg_param_t *cfg; in smb_config_getstr() local
449 cfg = smb_config_getent(id); in smb_config_getstr()
450 assert(cfg->sc_type == SCF_TYPE_ASTRING); in smb_config_getstr()
461 if (cfg->sc_flags & SMB_CF_PROTECTED) { in smb_config_getstr()
466 if ((rc = smb_smf_get_string_property(handle, cfg->sc_name, in smb_config_getstr()
476 pg = (cfg->sc_flags & SMB_CF_EXEC) ? SMBD_EXEC_PG_NAME : in smb_config_getstr()
480 rc = smb_smf_get_string_property(handle, cfg->sc_name, in smb_config_getstr()
502 smb_cfg_param_t *cfg; in smb_config_getip() local
538 cfg = smb_config_getent(sc_id); in smb_config_getip()
540 "address: %d", cfg->sc_name, ipstr, in smb_config_getip()
558 smb_cfg_param_t *cfg; in smb_config_getnum() local
562 cfg = smb_config_getent(id); in smb_config_getnum()
563 assert(cfg->sc_type == SCF_TYPE_INTEGER); in smb_config_getnum()
571 rc = smb_smf_get_integer_property(handle, cfg->sc_name, cint); in smb_config_getnum()
586 smb_cfg_param_t *cfg; in smb_config_getbool() local
590 cfg = smb_config_getent(id); in smb_config_getbool()
591 assert(cfg->sc_type == SCF_TYPE_BOOLEAN); in smb_config_getbool()
599 rc = smb_smf_get_boolean_property(handle, cfg->sc_name, &vbool); in smb_config_getbool()
615 smb_cfg_param_t *cfg; in smb_config_get() local
619 cfg = smb_config_getent(id); in smb_config_get()
620 switch (cfg->sc_type) { in smb_config_get()
651 smb_cfg_param_t *cfg; in smb_config_setstr() local
657 cfg = smb_config_getent(id); in smb_config_setstr()
658 assert(cfg->sc_type == SCF_TYPE_ASTRING); in smb_config_setstr()
667 switch (cfg->sc_flags) { in smb_config_setstr()
703 rc = smb_smf_set_string_property(handle, cfg->sc_name, value); in smb_config_setstr()
720 smb_cfg_param_t *cfg; in smb_config_setnum() local
723 cfg = smb_config_getent(id); in smb_config_setnum()
724 assert(cfg->sc_type == SCF_TYPE_INTEGER); in smb_config_setnum()
739 rc = smb_smf_set_integer_property(handle, cfg->sc_name, value); in smb_config_setnum()
755 smb_cfg_param_t *cfg; in smb_config_setbool() local
758 cfg = smb_config_getent(id); in smb_config_setbool()
759 assert(cfg->sc_type == SCF_TYPE_BOOLEAN); in smb_config_setbool()
774 rc = smb_smf_set_boolean_property(handle, cfg->sc_name, value); in smb_config_setbool()
791 smb_cfg_param_t *cfg; in smb_config_set() local
794 cfg = smb_config_getent(id); in smb_config_set()
795 switch (cfg->sc_type) { in smb_config_set()