Lines Matching refs:val

343 add_entry(scf_transaction_entry_t *te, scf_value_t *val)
345 if (scf_entry_add_value(te, val) != 0) {
346 scf_value_destroy(val);
356 scf_value_t *val = scf_value_create(h);
358 if (val == NULL)
361 scf_value_set_boolean(val, v);
363 return (add_entry(te, val));
369 scf_value_t *val = scf_value_create(h);
371 if (val == NULL)
374 scf_value_set_count(val, v);
376 return (add_entry(te, val));
382 scf_value_t *val = scf_value_create(h);
384 if (val == NULL)
387 scf_value_set_integer(val, v);
389 return (add_entry(te, val));
395 scf_value_t *val = scf_value_create(h);
397 if (val == NULL)
400 if (scf_value_set_astring(val, s) != 0) {
401 scf_value_destroy(val);
405 return (add_entry(te, val));
411 scf_value_t *val = scf_value_create(h);
415 if (val == NULL)
906 get_value(scf_value_t *val, scf_values_t *v, int c, char *buf, int sz)
910 return (scf_value_get_boolean(val, v->values.v_boolean + c));
912 return (scf_value_get_count(val, v->values.v_count + c));
914 return (scf_value_get_integer(val, v->values.v_integer + c));
916 if (scf_value_get_astring(val, buf, sz) < 0 ||
923 if (scf_value_get_ustring(val, buf, sz) < 0 ||
944 scf_value_t *val = scf_value_create(h);
966 if (val == NULL || it == NULL)
985 while ((err = scf_iter_next_value(it, val)) == 1) {
998 if (get_value(val, v, count, buf, sz) != 0)
1019 scf_value_destroy(val);
1164 * and parameter. *mech must be freed by caller. *val points into
1172 get_mech_name(const char *name, char **mech, char **val)
1187 *val = p + 1;
1430 char *val;
1438 if (get_mech_name(name, &mech, &val) != SCF_SUCCESS) {
1453 if (add_prop_to_nvlist(p, val, nvl, 1) != SCF_SUCCESS) {