Lines Matching refs:section
80 char section[CFG_MAX_KEY]; member
230 cfg_get_parser_offset(const char *section) in cfg_get_parser_offset() argument
240 if (strcmp(chead[i].tag.l_word, section) == 0) in cfg_get_parser_offset()
397 char *section; in cfg_get_cstring() local
426 section = strtok(tmpkey, "."); in cfg_get_cstring()
433 section, setp); in cfg_get_cstring()
437 section, setp, itemp); in cfg_get_cstring()
440 table_offset = cfg_get_parser_offset(section); in cfg_get_cstring()
471 if (cfg_filter_node(cfg, &chead[0], buf, section)) in cfg_get_cstring()
498 needed = cfg_get_item(&chead[0], section, itemp); in cfg_get_cstring()
549 const char *section, int numflds, ...) { in cfg_find_cstring() argument
569 nflds = cfg_get_num_flds(&chead[0], section, &tbl_off); in cfg_find_cstring()
581 if ((rc = cfg_get_section(cfg, &list, section)) <= 0) { in cfg_find_cstring()
613 if ((rc = cfg_get_section(cfg, &list, section)) <= 0) { in cfg_find_cstring()
628 fieldnum = cfg_get_item(&chead[0], section, fldbuf[j]); in cfg_find_cstring()
693 char *section; in cfg_put_cstring() local
715 section = strtok(tmpkey, "."); in cfg_put_cstring()
749 table_offset = cfg_get_parser_offset(section); in cfg_put_cstring()
786 section)) in cfg_put_cstring()
806 nflds = cfg_get_num_flds(&chead[0], section, &table_index); in cfg_put_cstring()
840 cfg_insert_node(cfg, &chead[0], buf, section); in cfg_put_cstring()
879 section)) in cfg_put_cstring()
899 nflds = cfg_get_num_flds(&chead[0], section, &table_index); in cfg_put_cstring()
900 fldnum = cfg_get_item(&chead[0], section, itemp); in cfg_put_cstring()
918 cnodepos = cfg_get_item(&chead[0], section, "cnode"); in cfg_put_cstring()
922 newbuf, section); in cfg_put_cstring()
948 nflds = cfg_get_num_flds(&chead[0], section, &table_index); in cfg_put_cstring()
951 cnodepos = cfg_get_item(&chead[0], section, "cnode"); in cfg_put_cstring()
969 cfg_insert_node(cfg, &chead[0], buf, section); in cfg_put_cstring()
973 if (cfg_is_cnode(cfg, &chead[0], buf, section) && in cfg_put_cstring()
1149 cfg_get_options(CFGFILE *cfg, int section, const char *basekey, char *tag, in cfg_get_options() argument
1168 if (section == CFG_SEC_CONF) { in cfg_get_options()
1203 cfg_put_options(CFGFILE *cfg, int section, const char *basekey, char *tag, in cfg_put_options() argument
1219 if (section != CFG_SEC_CONF) { in cfg_put_options()
1311 cfg_get_single_option(CFGFILE *cfg, int section, const char *basekey, char *tag, in cfg_get_single_option() argument
1327 if (section != CFG_SEC_CONF) { in cfg_get_single_option()
1393 cfg_del_option(CFGFILE *cfg, int section, const char *basekey, char *tag) in cfg_del_option() argument
1407 if (section != CFG_SEC_CONF) { in cfg_del_option()
2080 int section; in cfg_commit() local
2122 section = 1; in cfg_commit()
2128 section = 2; in cfg_commit()
2142 if (section == 1) { in cfg_commit()
2241 cfg_rewind(CFGFILE *cfg, int section) in cfg_rewind() argument
2243 switch (section) { in cfg_rewind()
2367 cfg_update_parser_config(CFGFILE *cfg, const char *key, int section) in cfg_update_parser_config() argument
2390 if (section == CFG_PARSE_CONF) { in cfg_update_parser_config()
2667 int section = 0; in cfg_replace_lists() local
2681 section = 1; in cfg_replace_lists()
2693 if (section == 1) { in cfg_replace_lists()
3095 cfg_get_num_entries(CFGFILE *cfg, char *section) in cfg_get_num_entries() argument
3107 if ((table_offset = cfg_get_parser_offset(section)) < 0) { in cfg_get_num_entries()
3128 cfg_get_section(CFGFILE *cfg, char ***list, const char *section) in cfg_get_section() argument
3143 if ((table_offset = cfg_get_parser_offset(section)) < 0) { in cfg_get_section()
3331 cfg_get_srtdsec(CFGFILE *cfg, char ***list, const char *section, in cfg_get_srtdsec() argument
3348 if ((table_offset = cfg_get_parser_offset(section)) < 0) { in cfg_get_srtdsec()
3429 bzero(sortby.section, CFG_MAX_KEY); in cfg_get_srtdsec()
3432 strcpy(sortby.section, section); in cfg_get_srtdsec()
3435 sortby.offset = cfg_get_item(&chead[0], section, field); in cfg_get_srtdsec()
3467 cfg_free_section(char ***section, int size) in cfg_free_section() argument
3470 char **secpp = *section; in cfg_free_section()
3482 section = NULL; in cfg_free_section()