Signature:

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

Inputs:

      obj_id     - Valid identifier for the file containing the
                   referenced object or any object in that file.
      ref_type   - The reference type of ref.
      ref        - Object reference

Outputs:

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