Signature:

      SUBROUTINE h5rdereference_f(obj_id, ref, ref_obj_id, hdferr)
        INTEGER(HID_T)    , INTENT(IN)  :: obj_id
        TYPE(hobj_ref_t_f), INTENT(IN)  :: ref
        INTEGER(HID_T)    , INTENT(OUT) :: ref_obj_id
        INTEGER           , INTENT(OUT) :: hdferr

Inputs:

      obj_id      - Valid identifier in file
      ref         - Object reference

Outputs:

      ref_obj_id  - Identifier of referenced object
      hdferr      - Error code
                     0 on success and -1 on failure