src/H5VLcallback.c
/*-------------------------------------------------------------------------
 * Function:    H5VL_token_cmp
 *
 * Purpose:     Compares two VOL connector object tokens. Sets *cmp_value
 *              to positive if token1 is greater than token2, negative if
 *              token2 is greater than token1 and zero if token1 and
 *              token2 are equal.
 *
 * Return:      Success:    Non-negative
 *              Failure:    Negative
 *
 *-------------------------------------------------------------------------
 */
H5VL_token_cmp
Purpose:     Compares two VOL connector object tokens. Sets *cmp_value
to positive if token1 is greater than token2, negative if
token2 is greater than token1 and zero if token1 and
token2 are equal.

Non-negative
Failure:    Negative
H5VL_token_cmp Purpose : Compares two VOL connector object tokens . Sets * cmp_value to positive if token1 is greater than token2 negative if token2 is greater than token1 and zero if token1 and token2 are equal . Non - negative Failure : Negative
herr_t
H5VL_token_cmp(const H5VL_object_t *vol_obj, const H5O_token_t *token1, const H5O_token_t *token2,
               int *cmp_value)
{
    hbool_t vol_wrapper_set = FALSE;   
    herr_t  ret_value       = SUCCEED; 
    FUNC_ENTER_NOAPI(FAIL)
    HDassert(vol_obj);
    HDassert(cmp_value);
    if (H5VL_set_vol_wrapper(vol_obj) < 0)
        HGOTO_ERROR(H5E_VOL, H5E_CANTSET, FAIL, "can't set VOL wrapper info")
    vol_wrapper_set = TRUE;
    if ((ret_value = H5VL__token_cmp(vol_obj->data, vol_obj->connector->cls, token1, token2, cmp_value)) < 0)
        HGOTO_ERROR(H5E_VOL, H5E_CANTCOMPARE, FAIL, "token compare failed")
done:
    if (vol_wrapper_set && H5VL_reset_vol_wrapper() < 0)
        HDONE_ERROR(H5E_VOL, H5E_CANTRESET, FAIL, "can't reset VOL wrapper info")
    FUNC_LEAVE_NOAPI(ret_value)
}
herr_t H5VL_token_cmp ( const H5VL_object_t * vol_obj , const H5O_token_t * token1 , const H5O_token_t * token2 , int * cmp_value ) { hbool_t vol_wrapper_set = FALSE ; herr_t ret_value = SUCCEED ; FUNC_ENTER_NOAPI ( FAIL ) HDassert ( vol_obj ) ; HDassert ( cmp_value ) ; if ( H5VL_set_vol_wrapper ( vol_obj ) < 0 ) HGOTO_ERROR ( H5E_VOL , H5E_CANTSET , FAIL , " " ) vol_wrapper_set = TRUE ; if ( ( ret_value = H5VL__token_cmp ( vol_obj -> data , vol_obj -> connector -> cls , token1 , token2 , cmp_value ) ) < 0 ) HGOTO_ERROR ( H5E_VOL , H5E_CANTCOMPARE , FAIL , " " ) done : if ( vol_wrapper_set && H5VL_reset_vol_wrapper ( ) < 0 ) HDONE_ERROR ( H5E_VOL , H5E_CANTRESET , FAIL , " " ) FUNC_LEAVE_NOAPI ( ret_value ) }
Function:    H5VL_token_cmp
 Purpose:     Compares two VOL connector object tokens.
Function : H5VL_token_cmp Purpose : Compares two VOL connector object tokens .
/* Whether the VOL object wrapping context was set up */ /* Return value */ /* Sanity checks */ /* Set wrapper info in API context */ /* Call the corresponding internal VOL routine */ /* Reset object wrapping info in API context */