Lines Matching defs:pt

436 _scf_read_tmpl_prop_type_as_string(const scf_prop_tmpl_t *pt)
440 type = _scf_read_single_astring_from_pg(pt->prt_pg,
2671 scf_prop_tmpl_t *pt;
2677 pt = calloc(1, sizeof (scf_prop_tmpl_t));
2678 if (pt == NULL)
2681 pt->prt_h = handle;
2683 return (pt);
2713 scf_tmpl_iter_props(scf_pg_tmpl_t *t, scf_prop_tmpl_t *pt, int flags)
2727 if (t == NULL || pt == NULL) {
2740 if (pt->prt_populated == 0) {
2771 prop_tmpl = pt;
2777 prop_tmpl = pt;
5138 scf_propertygroup_t *pg, const scf_prop_tmpl_t *pt)
5158 if (scf_tmpl_prop_name(pt, &t_prop_name) == -1) {
5161 t_prop_type = _scf_read_tmpl_prop_type_as_string(pt);
5208 scf_propertygroup_t *pg, const scf_prop_tmpl_t *pt, scf_property_t *prop)
5220 if ((t_fmri = _scf_tmpl_get_fmri(pt->prt_t)) == NULL)
5228 if (scf_tmpl_pg_name(pt->prt_t, &t_pg_name) == -1) {
5231 if (scf_tmpl_pg_type(pt->prt_t, &t_pg_type) == -1) {
5234 if (scf_tmpl_prop_name(pt, &t_prop_name) == -1) {
5237 t_prop_type = _scf_read_tmpl_prop_type_as_string(pt);
5286 scf_propertygroup_t *pg, const scf_prop_tmpl_t *pt, scf_property_t *prop,
5300 if ((t_fmri = _scf_tmpl_get_fmri(pt->prt_t)) == NULL)
5314 if (scf_tmpl_pg_name(pt->prt_t, &t_pg_name) == -1) {
5317 if (scf_tmpl_pg_type(pt->prt_t, &t_pg_type) == -1) {
5320 if (scf_tmpl_prop_name(pt, &t_prop_name) == -1) {
5323 t_prop_type = _scf_read_tmpl_prop_type_as_string(pt);
5395 scf_propertygroup_t *pg, const scf_prop_tmpl_t *pt, scf_property_t *prop,
5408 if ((t_fmri = _scf_tmpl_get_fmri(pt->prt_t)) == NULL)
5433 if (scf_tmpl_pg_name(pt->prt_t, &t_pg_name) == -1) {
5436 if (scf_tmpl_pg_type(pt->prt_t, &t_pg_type) == -1) {
5439 if (scf_tmpl_prop_name(pt, &t_prop_name) == -1) {
5442 t_prop_type = _scf_read_tmpl_prop_type_as_string(pt);
5486 scf_propertygroup_t *pg, const scf_prop_tmpl_t *pt, scf_property_t *prop,
5500 if ((t_fmri = _scf_tmpl_get_fmri(pt->prt_t)) == NULL)
5514 if (scf_tmpl_pg_name(pt->prt_t, &t_pg_name) == -1) {
5517 if (scf_tmpl_pg_type(pt->prt_t, &t_pg_type) == -1) {
5520 if (scf_tmpl_prop_name(pt, &t_prop_name) == -1) {
5523 t_prop_type = _scf_read_tmpl_prop_type_as_string(pt);
5690 const scf_prop_tmpl_t *pt, scf_value_t *value, scf_tmpl_errors_t *errs)
5714 if (scf_tmpl_prop_type(pt, &tmpl_type) == -1) {
5722 SCF_TERR_PROP_TYPE_MISMATCH, NULL, pt,
5736 if (scf_tmpl_value_count_range_constraints(pt, &cr) != 0) {
5761 if (scf_tmpl_value_int_range_constraints(pt, &ir) != 0) {
5796 if (scf_tmpl_value_name_constraints(pt, &vals) != 0) {
5840 if (_add_tmpl_count_error(errs, terr_type, pg, pt,
5849 if (_add_tmpl_int_error(errs, terr_type, pg, pt, prop,
5859 pt, prop, value) == -1)
5881 scf_tmpl_value_in_constraint(const scf_prop_tmpl_t *pt, scf_value_t *value,
5889 if ((fmri = _scf_tmpl_get_fmri(pt->prt_t)) == NULL)
5898 return (_value_in_constraint(NULL, NULL, pt, value, e));
5977 _validate_cardinality(scf_propertygroup_t *pg, scf_prop_tmpl_t *pt,
5988 if (scf_tmpl_prop_cardinality(pt, &min, &max) != 0) {
6040 pg, pt, prop, (uint64_t)count, &min, &max) == -1)
6065 _check_property(scf_prop_tmpl_t *pt, scf_propertygroup_t *pg,
6095 if (scf_tmpl_prop_required(pt, &required) != 0)
6099 if (scf_tmpl_prop_type(pt, &tmpl_type) == -1) {
6112 if (_add_tmpl_wrong_prop_type_error(errs, pg, pt,
6131 if (_validate_cardinality(pg, pt, prop, errs) == -1)
6146 if (_value_in_constraint(pg, prop, pt, val, errs) == -1) {
6195 scf_prop_tmpl_t *pt = NULL;
6216 if ((pt = scf_tmpl_prop_create(h)) == NULL) {
6271 if (scf_tmpl_get_by_prop(t, prop_name, pt, 0) != 0) {
6286 if (_check_property(pt, pg, prop, errs) != 0)
6299 scf_tmpl_prop_reset(pt);
6305 while ((r = scf_tmpl_iter_props(t, pt,
6309 if (scf_tmpl_prop_name(pt, &prop_name) == -1)
6313 if (scf_tmpl_prop_type(pt, &prop_type) == -1) {
6326 pt) == -1)
6364 scf_tmpl_prop_destroy(pt);