Lines Matching defs:tmpl
429 TEMPLATE * tmpl = NULL;
441 tmpl = (TEMPLATE *)malloc(sizeof (TEMPLATE));
444 if (! o || ! tmpl || ! new_tmpl) {
450 (void) memset(tmpl, 0x0, sizeof (TEMPLATE));
455 rc = template_copy(tmpl, old_obj->template);
471 found = template_get_class(tmpl, &class, &subclass);
489 rc = template_merge(tmpl, &new_tmpl);
494 rc = template_check_required_attributes(tmpl, class,
499 o->template = tmpl;
504 if (tmpl)
505 (void) template_free(tmpl);
757 TEMPLATE * tmpl = NULL;
785 rc = template_unflatten(&tmpl, data + offset, count);
789 obj->template = tmpl;
804 if (tmpl)
805 (void) template_free(tmpl);
820 TEMPLATE * tmpl = NULL;
833 tmpl = (TEMPLATE *)malloc(sizeof (TEMPLATE));
836 if (! o || ! tmpl || ! tmpl2) {
841 (void) memset(tmpl, 0x0, sizeof (TEMPLATE));
845 rc = template_add_default_attributes(tmpl, class, subclass, mode);
872 rc = template_merge(tmpl, &tmpl2);
878 o->template = tmpl;
884 if (tmpl)
885 (void) template_free(tmpl);