diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2001-11-02 19:46:36 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2001-11-02 19:46:36 (GMT) |
commit | 5122df335cc2627bfdd85e3fcff8bd1731e8c4ae (patch) | |
tree | b2f22fe06fb4fde61e7113b9aee17597a9fedd20 /src/H5FDfamily.c | |
parent | ec59e5f52aa06ed8267f8df2281f322fb6b9ed78 (diff) | |
download | hdf5-5122df335cc2627bfdd85e3fcff8bd1731e8c4ae.zip hdf5-5122df335cc2627bfdd85e3fcff8bd1731e8c4ae.tar.gz hdf5-5122df335cc2627bfdd85e3fcff8bd1731e8c4ae.tar.bz2 |
[svn-r4584]
Purpose:
Switch from old property list to new generic property list.
Description:
Mainly changed H5Pcreat, H5Pclose, H5Pcopy.
Platforms tested:
IRIX64 6.5, FreeBSD, SunOS 5.7.
Diffstat (limited to 'src/H5FDfamily.c')
-rw-r--r-- | src/H5FDfamily.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/H5FDfamily.c b/src/H5FDfamily.c index db492b3..5162163 100644 --- a/src/H5FDfamily.c +++ b/src/H5FDfamily.c @@ -185,8 +185,8 @@ H5Pset_fapl_family(hid_t fapl_id, hsize_t memb_size, hid_t memb_fapl_id) TRUE != H5Pisa_class(fapl_id, H5P_FILE_ACCESS)) HRETURN_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a file access property list"); - if(H5P_DEFAULT != memb_fapl_id && - TRUE != H5Pisa_class(fapl_id, H5P_FILE_ACCESS)) + if(H5P_DEFAULT != memb_fapl_id && + TRUE != H5Pisa_class(memb_fapl_id, H5P_FILE_ACCESS)) HRETURN_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a file access list"); /* @@ -241,7 +241,7 @@ H5Pget_fapl_family(hid_t fapl_id, hsize_t *memb_size/*out*/, if (NULL==(fa=H5Pget_driver_info(fapl_id))) HRETURN_ERROR(H5E_PLIST, H5E_BADVALUE, FAIL, "bad VFL driver info"); if (memb_size) *memb_size = fa->memb_size; - if (memb_fapl_id) *memb_fapl_id = H5P_copy_new(fa->memb_fapl_id); + if (memb_fapl_id) *memb_fapl_id = H5Pcopy(fa->memb_fapl_id); FUNC_LEAVE(SUCCEED); } @@ -845,7 +845,7 @@ H5FD_family_read(H5FD_t *_file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, si if (H5P_DEFAULT!=dxpl_id && H5FD_FAMILY==H5P_get_driver(dxpl_id)) { H5FD_family_dxpl_t *dx = H5Pget_driver_info(dxpl_id); - assert(H5P_DATASET_XFER==H5Pget_class(dxpl_id)); + assert(H5Pisa_class(dxpl_id, H5P_DATASET_XFER)); assert(dx); memb_dxpl_id = dx->memb_dxpl_id; } @@ -908,7 +908,7 @@ H5FD_family_write(H5FD_t *_file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, s if (H5P_DEFAULT!=dxpl_id && H5FD_FAMILY==H5P_get_driver(dxpl_id)) { H5FD_family_dxpl_t *dx = H5Pget_driver_info(dxpl_id); - assert(H5P_DATASET_XFER==H5Pget_class(dxpl_id)); + assert(H5Pisa_class(dxpl_id, H5P_DATASET_XFER)); assert(dx); memb_dxpl_id = dx->memb_dxpl_id; } |