Function wyrd_check_merge_strategy
Defined in File properties.h
Function Documentation
-
wyrd_error_t wyrd_check_merge_strategy(struct wyrd_handle *handle, char const *path, wyrd_merge_strategy strategy)
Check if the given merge strategy currently applies to the given path.
This is equivalent to invoking wyrd_get_merge_strategy, and comparing the result to your expected merge strategy.
- Parameters
handle – [in] A handle to an opened resource.
path – [in] The path to the property.
strategy – [in] The expected merge strategy.
- Return values
WYRD_ERR_SUCCESS – If the given merge strategy matches the current merge strategy.
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 merge strategies do NOT match.
WYRD_ERR_PROPERTY_NOT_FOUND – If the specified property does not exist.