Lines Matching refs:errs

1673 add_scf_error(tmpl_errors_t *errs, scf_tmpl_error_type_t ec,  in add_scf_error()  argument
1804 rc = _scf_tmpl_add_error(errs->te_cur_scf->tve_errors, ec, in add_scf_error()
1818 tmpl_errors_add_im(tmpl_errors_t *errs, tmpl_validate_status_t ec, entity_t *e, in tmpl_errors_add_im() argument
1839 result = uu_list_insert_after(errs->te_list, NULL, ite); in tmpl_errors_add_im()
2095 tmpl_errors_t *errs) in gather_pattern() argument
2163 if (add_scf_error(errs, SCF_TERR_PG_PATTERN_CONFLICT, in gather_pattern()
2187 if (add_scf_error(errs, SCF_TERR_PROP_PATTERN_CONFLICT, in gather_pattern()
2586 tmpl_errors_t *errs) in include_values_support() argument
2604 (void) tmpl_errors_add_im(errs, TVS_BAD_TEMPLATE, in include_values_support()
2632 (void) add_scf_error(errs, SCF_TERR_INCLUDE_VALUES, pinfo->pi_enc_pgp, in include_values_support()
2646 tmpl_include_values_check(uu_avl_t *tree, tmpl_errors_t *errs) in tmpl_include_values_check() argument
2666 errs); in tmpl_include_values_check()
2683 tmpl_errors_t *errs) in tmpl_pattern_conflict() argument
2689 rc = gather_pattern(inst, type, tree, errs); in tmpl_pattern_conflict()
2692 r = gather_pattern(inst->sc_parent, type, tree, errs); in tmpl_pattern_conflict()
2700 tmpl_required_attr_present(uu_avl_t *tree, tmpl_errors_t *errs) in tmpl_required_attr_present() argument
2725 if (add_scf_error(errs, SCF_TERR_PG_PATTERN_INCOMPLETE, in tmpl_required_attr_present()
2744 rv = add_scf_error(errs, in tmpl_required_attr_present()
2749 rv = add_scf_error(errs, in tmpl_required_attr_present()
2774 tmpl_level_t level, tmpl_errors_t *errs) in tmpl_scan_general() argument
2831 if (add_scf_error(errs, SCF_TERR_GENERAL_REDEFINE, in tmpl_scan_general()
2855 tmpl_level_redefine(entity_t *inst, uu_avl_t *tree, tmpl_errors_t *errs) in tmpl_level_redefine() argument
2867 rc = tmpl_scan_general(restarter, tree, TL_RESTARTER, errs); in tmpl_level_redefine()
2869 TL_GLOBAL, errs); in tmpl_level_redefine()
2901 tmpl_consistency(entity_t *inst, tmpl_errors_t *errs) in tmpl_consistency() argument
2916 rc = tmpl_pattern_conflict(inst, tree, PG_PATTERN, errs); in tmpl_consistency()
2923 r = tmpl_level_redefine(inst, tree, errs); in tmpl_consistency()
2941 r = tmpl_required_attr_present(tree, errs); in tmpl_consistency()
2950 r = tmpl_pattern_conflict(inst, tree, PROP_PATTERN, errs); in tmpl_consistency()
2958 r = tmpl_required_attr_present(tree, errs); in tmpl_consistency()
2966 r = tmpl_include_values_check(tree, errs); in tmpl_consistency()
3042 tmpl_errors_print(FILE *out, tmpl_errors_t *errs, const char *prefix) in tmpl_errors_print() argument
3053 for (ite = uu_list_first(errs->te_list); in tmpl_errors_print()
3055 ite = uu_list_next(errs->te_list, ite)) { in tmpl_errors_print()
3061 for (scft = uu_list_first(errs->te_scf); in tmpl_errors_print()
3063 scft = uu_list_next(errs->te_scf, scft)) { in tmpl_errors_print()
3283 pgroup_t *pg, pgroup_t *pg_pattern, tmpl_errors_t *errs) in tmpl_validate_cardinality() argument
3318 (void) add_scf_error(errs, SCF_TERR_CARDINALITY_VIOLATION, in tmpl_validate_cardinality()
3332 tmpl_required_pg_present(entity_t *e, tmpl_errors_t *errs) in tmpl_required_pg_present() argument
3371 if (add_scf_error(errs, SCF_TERR_MISSING_PG, pg, in tmpl_required_pg_present()
3399 tmpl_errors_t *errs) in tmpl_required_props_present() argument
3444 if (add_scf_error(errs, ec, pg_pattern, pg, in tmpl_required_props_present()
3499 pgroup_t *pg_pattern, tmpl_errors_t *errs) in tmpl_validate_value_range() argument
3523 (void) tmpl_errors_add_im(errs, rc, pg_pattern->sc_parent, in tmpl_validate_value_range()
3534 (void) tmpl_errors_add_im(errs, rc, pg_pattern->sc_parent, in tmpl_validate_value_range()
3556 if (add_scf_error(errs, SCF_TERR_RANGE_VIOLATION, pg_pattern, in tmpl_validate_value_range()
3575 pgroup_t *pg_pattern, tmpl_errors_t *errs) in tmpl_validate_values() argument
3589 (void) tmpl_errors_add_im(errs, r, pg->sc_parent, pg_pattern, in tmpl_validate_values()
3634 if (add_scf_error(errs, in tmpl_validate_values()
3666 pgroup_t *pg, pgroup_t *pg_pattern, tmpl_errors_t *errs) in tmpl_validate_value_constraints() argument
3671 rc = tmpl_validate_value_range(pattern, prop, pg, pg_pattern, errs); in tmpl_validate_value_constraints()
3672 r = tmpl_validate_values(pattern, prop, pg, pg_pattern, errs); in tmpl_validate_value_constraints()
3694 pgroup_t *pg_pattern, tmpl_errors_t *errs) in tmpl_validate_prop() argument
3708 r = tmpl_errors_add_im(errs, rc, pg->sc_parent, NULL, in tmpl_validate_prop()
3726 status = add_scf_error(errs, ec, in tmpl_validate_prop()
3749 r = tmpl_validate_cardinality(tmpl, prop, pg, pg_pattern, errs); in tmpl_validate_prop()
3754 r = tmpl_validate_value_constraints(tmpl, prop, pg, pg_pattern, errs); in tmpl_validate_prop()
3770 tmpl_validate_pg(entity_t *e, pgroup_t *pg, tmpl_errors_t *errs) in tmpl_validate_pg() argument
3795 (void) tmpl_errors_add_im(errs, rc, e, NULL, pg, NULL, NULL, in tmpl_validate_pg()
3817 stat = add_scf_error(errs, in tmpl_validate_pg()
3831 r = tmpl_errors_add_im(errs, rc, e, pg_pattern, pg, in tmpl_validate_pg()
3860 (void) tmpl_errors_add_im(errs, r, e, NULL, pg, NULL, in tmpl_validate_pg()
3868 errs); in tmpl_validate_pg()
3876 r = tmpl_required_props_present(e, pg, pg_pattern, errs); in tmpl_validate_pg()
3897 tmpl_validate_entity_pgs(entity_t *e, tmpl_errors_t *errs) in tmpl_validate_entity_pgs() argument
3914 if ((r = tmpl_validate_pg(e, pg, errs)) != TVS_SUCCESS) in tmpl_validate_entity_pgs()
3933 tmpl_validate_instance(entity_t *e, tmpl_errors_t *errs) in tmpl_validate_instance() argument
3942 status = uu_list_insert_after(errs->te_scf, errs->te_cur_scf, ste); in tmpl_validate_instance()
3944 errs->te_cur_scf = ste; in tmpl_validate_instance()
3947 rc = tmpl_consistency(e, errs); in tmpl_validate_instance()
3950 r = tmpl_validate_entity_pgs(e, errs); in tmpl_validate_instance()
3955 r = tmpl_required_pg_present(e, errs); in tmpl_validate_instance()
3966 tmpl_validate_service(entity_t *svc, tmpl_errors_t *errs) in tmpl_validate_service() argument
3983 r = tmpl_validate_instance(inst, errs); in tmpl_validate_service()
4001 tmpl_errors_t *errs = NULL; in tmpl_validate_bundle() local
4014 errs = tmpl_errors_create(); in tmpl_validate_bundle()
4015 if (errs == NULL) in tmpl_validate_bundle()
4034 tmpl_errors_destroy(errs); in tmpl_validate_bundle()
4038 if ((r = tmpl_validate_service(svc, errs)) != TVS_SUCCESS) in tmpl_validate_bundle()
4045 tmpl_errors_destroy(errs); in tmpl_validate_bundle()
4047 *err_list = errs; in tmpl_validate_bundle()