src/H5VLcallback.c
/*-------------------------------------------------------------------------
 * Function:    H5VL_token_from_str
 *
 * Purpose:     Deserialize a string into a connector object token
 *
 * Return:      Success:    Non-negative
 *              Failure:    Negative
 *
 *-------------------------------------------------------------------------
 */
H5VL_token_from_str
Purpose:     Deserialize a string into a connector object token

Non-negative
Failure:    Negative
H5VL_token_from_str Purpose : Deserialize a string into a connector object token Non - negative Failure : Negative
herr_t
H5VL_token_from_str(const H5VL_object_t *vol_obj, H5I_type_t obj_type, const char *token_str,
                    H5O_token_t *token)
{
    hbool_t vol_wrapper_set = FALSE;   
    herr_t  ret_value       = SUCCEED; 
    FUNC_ENTER_NOAPI(FAIL)
    HDassert(vol_obj);
    HDassert(token);
    HDassert(token_str);
    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_from_str(vol_obj->data, obj_type, vol_obj->connector->cls, token_str, token)) < 0)
        HGOTO_ERROR(H5E_VOL, H5E_CANTUNSERIALIZE, FAIL, "token deserialization 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_from_str ( const H5VL_object_t * vol_obj , H5I_type_t obj_type , const char * token_str , H5O_token_t * token ) { hbool_t vol_wrapper_set = FALSE ; herr_t ret_value = SUCCEED ; FUNC_ENTER_NOAPI ( FAIL ) HDassert ( vol_obj ) ; HDassert ( token ) ; HDassert ( token_str ) ; if ( H5VL_set_vol_wrapper ( vol_obj ) < 0 ) HGOTO_ERROR ( H5E_VOL , H5E_CANTSET , FAIL , " " ) vol_wrapper_set = TRUE ; if ( ( ret_value = H5VL__token_from_str ( vol_obj -> data , obj_type , vol_obj -> connector -> cls , token_str , token ) ) < 0 ) HGOTO_ERROR ( H5E_VOL , H5E_CANTUNSERIALIZE , 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_from_str
 Purpose:     Deserialize a string into a connector object token
Function : H5VL_token_from_str Purpose : Deserialize a string into a connector object token
/* 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 */