Lines Matching refs:out

2231 _scf_tmpl_prop_value(scf_propertygroup_t *pg, const char *pname, char **out)
2236 *out = _scf_read_single_astring_from_pg(pg, pname);
2238 if (*out != NULL && *out[0] == '\0') {
2240 free(*out);
2241 *out = strdup(SCF_TMPL_WILDCARD);
2242 if (*out == NULL)
2245 if (*out == NULL) {
2263 return (strlen(*out));
2913 scf_tmpl_pg_name(const scf_pg_tmpl_t *t, char **out)
2915 return (_scf_tmpl_prop_value(t->pt_pg, SCF_PROPERTY_TM_NAME, out));
2980 goto out; /* lname_prop == NULL */
3009 goto out; /* lname_prop == NULL */
3012 goto out; /* lname_prop == NULL */
3026 out:
3033 char **out, const char **elocale)
3035 assert(out != NULL);
3036 if ((*out = _read_localized_astring_from_pg(t->pt_pg,
3040 return (strlen(*out));
3062 scf_tmpl_pg_common_name(const scf_pg_tmpl_t *t, const char *locale, char **out)
3064 return (scf_tmpl_pg_common_name_loc(t, locale, out, NULL));
3069 char **out, const char **elocale)
3071 assert(out != NULL);
3072 if ((*out = _read_localized_astring_from_pg(t->pt_pg,
3076 return (strlen(*out));
3099 scf_tmpl_pg_description(const scf_pg_tmpl_t *t, const char *locale, char **out)
3101 return (scf_tmpl_pg_description_loc(t, locale, out, NULL));
3121 scf_tmpl_pg_type(const scf_pg_tmpl_t *t, char **out)
3123 return (_scf_tmpl_prop_value(t->pt_pg, SCF_PROPERTY_TM_TYPE, out));
3141 scf_tmpl_pg_required(const scf_pg_tmpl_t *t, uint8_t *out)
3145 out) == -1) {
3155 *out = 0;
3183 scf_tmpl_pg_target(const scf_pg_tmpl_t *t, char **out)
3185 *out = _scf_read_single_astring_from_pg(t->pt_pg,
3188 if (*out == NULL) {
3206 return (strlen(*out));
3223 scf_tmpl_prop_name(const scf_prop_tmpl_t *t, char **out)
3225 *out = _scf_read_single_astring_from_pg(t->prt_pg,
3228 if (*out != NULL && *out[0] == '\0') {
3229 free(*out);
3230 *out = NULL;
3233 if (*out == NULL) {
3252 return (strlen(*out));
3273 scf_tmpl_prop_type(const scf_prop_tmpl_t *t, scf_type_t *out)
3304 *out = scf_string_to_type(type);
3307 if (*out == SCF_TYPE_INVALID) {
3331 scf_tmpl_prop_required(const scf_prop_tmpl_t *t, uint8_t *out)
3334 out) == -1) {
3344 *out = 0;
3360 char **out, const char **elocale)
3362 assert(out != NULL);
3363 if ((*out = _read_localized_astring_from_pg(t->prt_pg,
3367 return (strlen(*out));
3390 char **out)
3392 return (scf_tmpl_prop_common_name_loc(t, locale, out, NULL));
3397 char **out, const char **elocale)
3399 assert(out != NULL);
3400 if ((*out = _read_localized_astring_from_pg(t->prt_pg,
3404 return (strlen(*out));
3427 char **out)
3429 return (scf_tmpl_prop_description_loc(t, locale, out, NULL));
3434 char **out, const char **elocale)
3436 assert(out != NULL);
3437 if ((*out = _read_localized_astring_from_pg(t->prt_pg,
3441 return (strlen(*out));
3463 scf_tmpl_prop_units(const scf_prop_tmpl_t *t, const char *locale, char **out)
3465 return (scf_tmpl_prop_units_loc(t, locale, out, NULL));
3483 scf_tmpl_prop_visibility(const scf_prop_tmpl_t *t, uint8_t *out)
3495 *out = SCF_TMPL_VISIBILITY_READWRITE;
3510 *out = SCF_TMPL_VISIBILITY_READWRITE;
3512 *out = SCF_TMPL_VISIBILITY_HIDDEN;
3514 *out = SCF_TMPL_VISIBILITY_READONLY;
4315 const char *value, char **out, const char **elocale)
4323 *out = _read_localized_astring_from_pg(t->prt_pg, value_name, locale,
4328 if (*out == NULL)
4331 return (strlen(*out));
4337 * Populates "out" with an allocated string containing the value's
4339 * out must be freed with free() on successful return.
4362 const char *value, char **out)
4364 return (scf_tmpl_value_common_name_loc(t, locale, value, out, NULL));
4369 const char *value, char **out, const char **elocale)
4378 *out = _read_localized_astring_from_pg(t->prt_pg, value_name, locale,
4383 if (*out == NULL)
4386 return (strlen(*out));
4392 * Populates "out" with an allocated string containing the value's
4394 * out must be freed with free() on successful return.
4417 const char *value, char **out)
4419 return (scf_tmpl_value_description_loc(t, locale, value, out, NULL));
4502 { "Property value is out of range", NULL, NULL, "Actual value" },
4509 { "Value is out of range", NULL, NULL, "Value" },