Lines Matching refs:out

2234 _scf_tmpl_prop_value(scf_propertygroup_t *pg, const char *pname, char **out)
2239 *out = _scf_read_single_astring_from_pg(pg, pname);
2241 if (*out != NULL && *out[0] == '\0') {
2243 free(*out);
2244 *out = strdup(SCF_TMPL_WILDCARD);
2245 if (*out == NULL)
2248 if (*out == NULL) {
2266 return (strlen(*out));
2916 scf_tmpl_pg_name(const scf_pg_tmpl_t *t, char **out)
2918 return (_scf_tmpl_prop_value(t->pt_pg, SCF_PROPERTY_TM_NAME, out));
2990 scf_tmpl_pg_common_name(const scf_pg_tmpl_t *t, const char *locale, char **out)
2992 assert(out != NULL);
2993 if ((*out = _read_localized_astring_from_pg(t->pt_pg,
2997 return (strlen(*out));
3020 scf_tmpl_pg_description(const scf_pg_tmpl_t *t, const char *locale, char **out)
3022 assert(out != NULL);
3023 if ((*out = _read_localized_astring_from_pg(t->pt_pg,
3027 return (strlen(*out));
3047 scf_tmpl_pg_type(const scf_pg_tmpl_t *t, char **out)
3049 return (_scf_tmpl_prop_value(t->pt_pg, SCF_PROPERTY_TM_TYPE, out));
3067 scf_tmpl_pg_required(const scf_pg_tmpl_t *t, uint8_t *out)
3071 out) == -1) {
3081 *out = 0;
3109 scf_tmpl_pg_target(const scf_pg_tmpl_t *t, char **out)
3111 *out = _scf_read_single_astring_from_pg(t->pt_pg,
3114 if (*out == NULL) {
3132 return (strlen(*out));
3149 scf_tmpl_prop_name(const scf_prop_tmpl_t *t, char **out)
3151 *out = _scf_read_single_astring_from_pg(t->prt_pg,
3154 if (*out != NULL && *out[0] == '\0') {
3155 free(*out);
3156 *out = NULL;
3159 if (*out == NULL) {
3178 return (strlen(*out));
3199 scf_tmpl_prop_type(const scf_prop_tmpl_t *t, scf_type_t *out)
3230 *out = scf_string_to_type(type);
3233 if (*out == SCF_TYPE_INVALID) {
3257 scf_tmpl_prop_required(const scf_prop_tmpl_t *t, uint8_t *out)
3260 out) == -1) {
3270 *out = 0;
3304 char **out)
3306 assert(out != NULL);
3307 if ((*out = _read_localized_astring_from_pg(t->prt_pg,
3311 return (strlen(*out));
3334 char **out)
3336 assert(out != NULL);
3337 if ((*out = _read_localized_astring_from_pg(t->prt_pg,
3341 return (strlen(*out));
3363 scf_tmpl_prop_units(const scf_prop_tmpl_t *t, const char *locale, char **out)
3365 assert(out != NULL);
3366 if ((*out = _read_localized_astring_from_pg(t->prt_pg,
3370 return (strlen(*out));
3388 scf_tmpl_prop_visibility(const scf_prop_tmpl_t *t, uint8_t *out)
3400 *out = SCF_TMPL_VISIBILITY_READWRITE;
3415 *out = SCF_TMPL_VISIBILITY_READWRITE;
3417 *out = SCF_TMPL_VISIBILITY_HIDDEN;
3419 *out = SCF_TMPL_VISIBILITY_READONLY;
4221 * Populates "out" with an allocated string containing the value's
4223 * out must be freed with free() on successful return.
4246 const char *value, char **out)
4254 *out = _read_localized_astring_from_pg(t->prt_pg, value_name, locale);
4258 if (*out == NULL)
4261 return (strlen(*out));
4267 * Populates "out" with an allocated string containing the value's
4269 * out must be freed with free() on successful return.
4292 const char *value, char **out)
4301 *out = _read_localized_astring_from_pg(t->prt_pg, value_name, locale);
4305 if (*out == NULL)
4308 return (strlen(*out));
4391 { "Property value is out of range", NULL, NULL, "Actual value" },
4398 { "Value is out of range", NULL, NULL, "Value" },