diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2000-10-10 19:55:09 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2000-10-10 19:55:09 (GMT) |
commit | 46434499668593bb2421a58365700e53c128cb10 (patch) | |
tree | 4288cb29b1ab6b31aa2e0a9cf6c814d54373b044 /src/H5F.c | |
parent | 4f5328967e20f41f26b6f88901fdc79e80496ceb (diff) | |
download | hdf5-46434499668593bb2421a58365700e53c128cb10.zip hdf5-46434499668593bb2421a58365700e53c128cb10.tar.gz hdf5-46434499668593bb2421a58365700e53c128cb10.tar.bz2 |
[svn-r2656] Purpose:
Bug Fix
Description:
When parallel I/O is turned on, there were some macros used in the H5D
routines which poked around in the H5F_t structure. This breaks the
privacy of that structure and ties the H5D code too tightly to the H5F_t
struct.
Solution:
Added a small function to retrieve the the value (driver_id) needed from
the H5F_t function.
Platforms tested:
Eyeballed only, Albert needs this right away...
Diffstat (limited to 'src/H5F.c')
-rw-r--r-- | src/H5F.c | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -2507,6 +2507,33 @@ H5F_sizeof_size(H5F_t *f) /*------------------------------------------------------------------------- + * Function: H5F_get_intent + * + * Purpose: Quick and dirty routine to retrieve the file's 'driver_id' value + * (Mainly added to stop non-file routines from poking about in the + * H5F_t data structure) + * + * Return: 'driver_id' on success/abort on failure (shouldn't fail) + * + * Programmer: Quincey Koziol <koziol@ncsa.uiuc.edu> + * October 10, 2000 + * + * Modifications: + * + *------------------------------------------------------------------------- + */ +hid_t +H5F_get_driver_id(H5F_t *f) +{ + FUNC_ENTER(H5F_get_driver_id, 0); + + assert(f); + + FUNC_LEAVE(f->shared->lf->driver_id); +} + + +/*------------------------------------------------------------------------- * Function: H5F_block_read * * Purpose: Reads some data from a file/server/etc into a buffer. |