Function wyrd_check_property_type
Defined in File properties.h
Function Documentation
-
wyrd_error_t wyrd_check_property_type(struct wyrd_handle *handle, char const *path, wyrd_property_type type)
Check if the given property type currently applies to the given path.
This is equivalent to invoking wyrd_get_property_type, and comparing the result to your expected property type.
- Parameters
handle – [in] A handle to an opened resource.
path – [in] The path to the property.
type – [in] The expected 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_BAD_PROPERTY_TYPE – If the property types do NOT match.
WYRD_ERR_PROPERTY_NOT_FOUND – If the specified property does not exist.