@@ -523,7 +523,7 @@ LIBYANG_API_DECL typedef LY_ERR (*lyplg_type_store_clb)(const struct ly_ctx *ctx
523523 * @param[in] tree External data tree (e.g. when validating RPC/Notification) with possibly referenced data.
524524 * @param[in,out] storage Storage of the value successfully filled by ::lyplg_type_store_clb. May be modified.
525525 * @param[out] err Optionally provided error information in case of failure. If not provided to the caller, a generic
526- * error message is prepared instead. The error structure can be created by ::ly_err_new().
526+ * error message is prepared instead. The error structure can be created by ::ly_err_new().
527527 * @return LY_SUCCESS on success,
528528 * @return LY_ERR value on error.
529529 */
@@ -533,12 +533,12 @@ LIBYANG_API_DECL typedef LY_ERR (*lyplg_type_validate_clb)(const struct ly_ctx *
533533/**
534534 * @brief Callback for comparing 2 values of the same type.
535535 *
536- * In case the value types (::lyd_value.realtype) are different, ::LY_ENOT must always be returned.
537- * It can be assumed that the same context (dictionary) was used for storing both values .
536+ * It can be assumed that the same context (dictionary) was used for storing both values and the realtype
537+ * member of both the values is the same .
538538 *
539539 * @param[in] val1 First value to compare.
540540 * @param[in] val2 Second value to compare.
541- * @return LY_SUCCESS if values are same (according to the type's definition of being same) .
541+ * @return LY_SUCCESS if values are considered equal .
542542 * @return LY_ENOT if values differ.
543543 */
544544typedef LY_ERR (* lyplg_type_compare_clb )(const struct lyd_value * val1 , const struct lyd_value * val2 );
0 commit comments