Function rmw_discovery_options_equal
Defined in File discovery_options.h
Function Documentation
-
rmw_ret_t rmw_discovery_options_equal(const rmw_discovery_options_t *const left, const rmw_discovery_options_t *const right, bool *result)
Compare two discovery parameter instances for equality.
Equality means the automatic_discovery_range values are equal, they have the same static_peers_count value, and each entry in static_peers is evaluated as equal using strncmp.
NOTE: If the two parameter structs list the static peers in different orders then this will evaulate as NOT equal.
- Parameters:
left – [in] - The first set of options to compare
right – [in] - The second set of options to compare
result – [out] - The result of the calculation.
- Returns:
RMW_RET_OK when the input arguments are valid.
- Returns:
RMW_RET_INVALID_ARGUMENT will be returned when any input is a nullptr, or if something in either struct was malformed, such as static_peers being a nullptr while static_peers_count is non-zero.