Lines Matching refs:template
131 split_fields(const ofmt_field_t *template, uint_t maxfields, uint_t maxcols) in split_fields() argument
145 cols += template[i].of_width; in split_fields()
153 sp->s_fields[sp->s_nfields++] = template[i].of_name; in split_fields()
178 ofmt_open(const char *str, const ofmt_field_t *template, uint_t flags, in ofmt_open() argument
208 if (template == NULL) in ofmt_open()
210 for (ofp = template; ofp->of_name != NULL; ofp++) in ofmt_open()
221 sp = split_fields(template, nfields, maxcols); in ofmt_open()
243 template[j].of_name) == 0) { in ofmt_open()
262 of[of_index].of_name = strdup(template[j].of_name); in ofmt_open()
270 of[of_index].of_width = template[j].of_width; in ofmt_open()
271 of[of_index].of_id = template[j].of_id; in ofmt_open()
272 of[of_index].of_cb = template[j].of_cb; in ofmt_open()