mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-21 01:04:10 +08:00
Update h5debug to retrieve file pointer through VOL framework
This commit is contained in:
parent
9facd2347a
commit
b8b6659deb
@ -249,6 +249,7 @@ int
|
|||||||
main(int argc, char *argv[])
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
hid_t fid, fapl;
|
hid_t fid, fapl;
|
||||||
|
H5VL_object_t *vol_obj;
|
||||||
H5F_t *f;
|
H5F_t *f;
|
||||||
haddr_t addr = 0, extra = 0, extra2 = 0, extra3 = 0, extra4 = 0;
|
haddr_t addr = 0, extra = 0, extra2 = 0, extra3 = 0, extra4 = 0;
|
||||||
uint8_t sig[H5F_SIGNATURE_LEN];
|
uint8_t sig[H5F_SIGNATURE_LEN];
|
||||||
@ -297,7 +298,12 @@ main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
api_ctx_pushed = TRUE;
|
api_ctx_pushed = TRUE;
|
||||||
|
|
||||||
if(NULL == (f = (H5F_t *)H5I_object(fid))) {
|
if(NULL == (vol_obj = (H5VL_object_t *)H5VL_vol_object(fid))) {
|
||||||
|
HDfprintf(stderr, "cannot obtain vol_obj pointer\n");
|
||||||
|
HDexit(2);
|
||||||
|
} /* end if */
|
||||||
|
|
||||||
|
if(NULL == (f = (H5F_t *)H5VL_object_data(vol_obj))) {
|
||||||
HDfprintf(stderr, "cannot obtain H5F_t pointer\n");
|
HDfprintf(stderr, "cannot obtain H5F_t pointer\n");
|
||||||
HDexit(2);
|
HDexit(2);
|
||||||
} /* end if */
|
} /* end if */
|
||||||
|
Loading…
Reference in New Issue
Block a user