Lines Matching refs:tag

130  * return position from parser config given tag and field
133 cfg_get_item(struct parser *tbl, const char *tag, const char *field)
140 if (tbl[i].tag.l_word[0] == '\0') {
144 if (strcmp(tbl[i].tag.l_word, tag) == 0)
164 * return number of fields for given parser tag
167 cfg_get_num_flds(struct parser *tbl, const char *tag, int *table_index)
175 if (tbl[i].tag.l_word[0] == '\0') {
179 if (strcmp(tbl[i].tag.l_word, tag) == 0) {
225 * ie. parser info for sndr is chead[3].tag.l_word
236 if (chead[i].tag.l_word[0] == '\0') {
240 if (strcmp(chead[i].tag.l_word, section) == 0)
304 cfg_filter_node(CFGFILE *cfg, struct parser *tbl, char *buf, char *tag)
314 fld = cfg_get_item(tbl, tag, "cnode");
340 cfg_insert_node(CFGFILE *cfg, struct parser *tbl, char *buf, char *tag)
349 fld = cfg_get_item(tbl, tag, "cnode");
350 nflds = cfg_get_num_flds(tbl, tag, &table_index);
370 cfg_is_cnode(CFGFILE *cfg, struct parser *tbl, char *buf, char *tag)
373 int fld = cfg_get_item(tbl, tag, "cnode");
387 * AA = data service tag
676 * tag Add entry (in entirely) to config
677 * tag.setn Add entry to setn If it exists overwrite old entry
678 * tag.setn.field Change field in setn
1056 /* first, scan through the tag string converting %-signs */
1142 * into tag and val
1149 cfg_get_options(CFGFILE *cfg, int section, const char *basekey, char *tag,
1187 strncpy(tag, decode_buf, tag_len);
1195 * Replaces existing tag with new val. If tag doesn't exist,
1196 * then it adds a new tag with the specified val.
1203 cfg_put_options(CFGFILE *cfg, int section, const char *basekey, char *tag,
1224 if (!tag || !*tag || !val || !*val)
1231 enclen = cfg_encode_string(tag, &encode_buf[1], CFG_MAX_BUF - 1) + 1;
1245 /* add the new tag to the end */
1249 /* completely overwrite the existing tag */
1311 cfg_get_single_option(CFGFILE *cfg, int section, const char *basekey, char *tag,
1338 enclen = cfg_encode_string(tag, &encode_buf[1], CFG_MAX_BUF - 1) + 1;
1393 cfg_del_option(CFGFILE *cfg, int section, const char *basekey, char *tag)
1418 enclen = cfg_encode_string(tag, &encode_buf[1], CFG_MAX_BUF - 1) + 1;
2361 * If tag and key exist return -1
2487 strcpy(thead[n].tag.l_word, key);
2488 thead[n].tag.l_value = 0;
2545 strdup(chead[i].tag.l_word);
2706 if (chead[i].tag.l_word[0] == '\0') {
3223 while ((i < MAX_CFG) && (chead[i].tag.l_word[0] != '\0')) {
3224 list[i] = strdup(chead[i].tag.l_word);