Function wyrd_get_property_type
Defined in File properties.h
Function Documentation
-
wyrd_error_t wyrd_get_property_type(struct wyrd_handle *handle, char const *path, wyrd_property_type *type)
Retrieve the type of a property.
If the property is not found, an error is returned. On WYRD_ERR_SUCCESS, type will give the type of the named property.
- Parameters
handle – [in] A handle to an opened resource.
path – [in] The path to the property.
type – [out] The curent property type.
- Return values
WYRD_ERR_SUCCESS – If the given property type matches the current property type.
WYRD_ERR_INVALID_VALUE – If any of the parameters are invalid, such as e.g. NULL when they should not be, etc.
WYRD_ERR_PROPERTY_NOT_FOUND – If the specified property does not exist.