Lines Matching defs:type

362 scf_type_base_type(scf_type_t type, scf_type_t *out)
364 rep_protocol_value_type_t t = scf_type_to_protocol_type(type);
1079 * entity already set up with different type
1569 * entity already set up with different type
1573 datael_init(scf_datael_t *dp, scf_handle_t *h, uint32_t type)
1583 dp->rd_type = type;
1701 datael_get_name(const scf_datael_t *dp, char *buf, size_t size, uint32_t type)
1712 request.rpr_answertype = type;
1774 * Fails with _HANDLE_MISMATCH, _INVALID_ARGUMENT (out does not have type type,
1776 * too big, bad id, iter already exists, element cannot have children of type,
1777 * type is invalid, iter was reset, sequence was bad, iter walks values, iter
1778 * does not walk type entities), _NOT_SET, _DELETED, _NO_RESOURCES,
1783 uint32_t type, scf_datael_t *out, scf_iter_t *iter)
1795 if (out->rd_type != type)
1802 iter->iter_type = type;
1807 request.rpr_itertype = type;
1864 * Fails with _HANDLE_MISMATCH, _INVALID_ARGUMENT (out does not have type type,
1866 * too big, bad id, element cannot have children of type, type is invalid),
1871 uint32_t type, scf_datael_t *out)
1882 if (out->rd_type != type)
1914 * Fails with _HANDLE_MISMATCH, _INVALID_ARGUMENT (out does not have type type,
1916 * too big, bad id, iter already exists, element cannot have children of type,
1917 * type is invalid, iter was reset, sequence was bad, iter walks values, iter
1918 * does not walk type entities), _NOT_SET, _DELETED, _NO_RESOURCES,
1922 datael_get_child(const scf_datael_t *dp, const char *name, uint32_t type,
1935 switch (type) {
1974 ret = datael_get_child_composed_locked(dp, name, type, out,
1977 ret = datael_get_child_locked(dp, name, type, out);
2065 * cannot create children for dp's type of node
2070 * type is _PROPERTYGRP
2071 * type is invalid
2072 * dp cannot have children of type type
2084 datael_add_child(const scf_datael_t *dp, const char *name, uint32_t type,
2095 switch (type) {
2128 request.rpr_childtype = type;
2149 r = datael_get_child(dp, name, type, cp, 0);
2169 datael_add_pg(const scf_datael_t *dp, const char *name, const char *type,
2197 if (type == NULL || strlcpy(request.rpr_type, type,
2351 * If the type is a property group then there is a
2805 const char *type)
2807 return (datael_setup_iter_pgtyped(iter, &svc->rd_d, type, 0));
2832 const char *type)
2834 return (datael_setup_iter_pgtyped(iter, &inst->rd_d, type, 0));
2850 const scf_instance_t *inst, const scf_snapshot_t *snap, const char *type)
2856 snap ? &snap->rd_d : &inst->rd_d, type, 1));
2868 const char *type)
2870 return (datael_setup_iter_pgtyped(iter, &inst->rd_d, type, 0));
2937 * entity already set up with different type
3427 const char *type, uint32_t flags, scf_propertygroup_t *pg)
3429 return (datael_add_pg(&svc->rd_d, name, type, flags,
3448 const char *type, uint32_t flags, scf_propertygroup_t *pg)
3450 return (datael_add_pg(&inst->rd_d, name, type, flags,
3939 scf_notify_add_pattern(scf_handle_t *h, int type, const char *name)
3947 request.rpr_type = type;
3970 _scf_notify_add_pgtype(scf_handle_t *h, const char *type)
3972 return (scf_notify_add_pattern(h, REP_PROTOCOL_NOTIFY_PGTYPE, type));
4262 rep_protocol_value_type_t type;
4269 ret = property_type_locked(prop, &type);
4273 if (!scf_is_compatible_protocol_type(base, type))
4332 rep_protocol_value_type_t type;
4339 ret = decoration_type_locked(dec, &type);
4343 if (!scf_is_compatible_protocol_type(base, type))
4353 rep_protocol_value_type_t type = scf_type_to_protocol_type(type_arg);
4356 type == REP_PROTOCOL_TYPE_INVALID)
4359 if (!scf_is_compatible_protocol_type(base, type))
4641 const char *prop, rep_protocol_value_type_t type)
4658 assert(type == REP_PROTOCOL_TYPE_INVALID);
4659 else if (type == REP_PROTOCOL_TYPE_INVALID)
4717 if (oldtype != type) {
4732 entry->entry_type = type;
4797 scf_transaction_pg_modify(scf_transaction_t *tran, const char *type,
4815 if ((tran->tran_pg_type = strdup(type)) == NULL) {
4842 scf_transaction_entry_t *entry, const char *prop, scf_type_t type)
4845 prop, scf_type_to_protocol_type(type)));
4855 scf_transaction_entry_t *entry, const char *prop, scf_type_t type)
4858 prop, scf_type_to_protocol_type(type)));
4868 scf_transaction_entry_t *entry, const char *prop, scf_type_t type)
4871 prop, scf_type_to_protocol_type(type)));
5366 * _TYPE_MISMATCH - val's type is not compatible with t
5479 * _TYPE_MISMATCH - val's type is not compatible with _TYPE_STRING.
5656 * _TYPE_MISMATCH - v_arg's type is not compatible with t
5732 scf_value_get_as_string_typed(const scf_value_t *v, scf_type_t type,
5735 rep_protocol_value_type_t ty = scf_type_to_protocol_type(type);
5743 scf_value_set_from_string(scf_value_t *v, scf_type_t type, const char *str)
5748 switch (type) {
5834 ty = scf_type_to_protocol_type(type);
5838 if (type == SCF_TYPE_OPAQUE) {
6329 scf_parse_fmri(char *fmri, int *type, const char **scope, const char **service,
6334 if (type)
6335 *type = SCF_FMRI_TYPE_SVC;
6340 if (type)
6341 *type = SCF_FMRI_TYPE_FILE;
6345 * Parse as a svc if the fmri type is not explicitly
6348 if (type)
6349 *type = SCF_FMRI_TYPE_SVC;
6910 * cannot have children of type, type is invalid, iter was reset, sequence
6911 * was bad, iter walks values, iter does not walk type entities),
6974 * qualify each pattern's type:
7735 * and the type of entity requested.
8532 * SMF infrastructure pg type functions
8535 * Returns pg type string. Returns NULL on error.
8602 * The pg type was validated against the SMF template