Lines Matching refs:nv
108 struct mt_status_nv *nv; in mt_start_element() local
135 nv = malloc(sizeof(*nv)); in mt_start_element()
136 if (nv == NULL) { in mt_start_element()
141 __func__, sizeof(*nv)); in mt_start_element()
143 bzero(nv, sizeof(*nv)); in mt_start_element()
144 nv->name = strdup(attr[i]); in mt_start_element()
145 nv->value = strdup(attr[i+1]); in mt_start_element()
146 STAILQ_INSERT_TAIL(&entry->nv_list, nv, links); in mt_start_element()
230 struct mt_status_nv *nv; in mt_status_tree_sbuf() local
240 STAILQ_FOREACH(nv, &entry->nv_list, links) { in mt_status_tree_sbuf()
242 indent + 1, "", nv->name, nv->value); in mt_status_tree_sbuf()
356 struct mt_status_nv *nv, *nv2; in mt_status_entry_free() local
369 STAILQ_FOREACH_SAFE(nv, &entry->nv_list, links, nv2) { in mt_status_entry_free()
370 STAILQ_REMOVE(&entry->nv_list, nv, mt_status_nv, links); in mt_status_entry_free()
371 free(nv->name); in mt_status_entry_free()
372 free(nv->value); in mt_status_entry_free()
373 free(nv); in mt_status_entry_free()