summaryrefslogtreecommitdiffstats
path: root/src/H5Oattribute.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-11-01 22:19:04 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-11-01 22:19:04 (GMT)
commit522e714273faf7e8b1bbd0510a2a921ad6276ab3 (patch)
treec6773b372577a1c34e0803f7b27ec45a8fd0551e /src/H5Oattribute.c
parent579bb243077efc82e86d0723b2adec5abd6f1e4d (diff)
downloadhdf5-522e714273faf7e8b1bbd0510a2a921ad6276ab3.zip
hdf5-522e714273faf7e8b1bbd0510a2a921ad6276ab3.tar.gz
hdf5-522e714273faf7e8b1bbd0510a2a921ad6276ab3.tar.bz2
[svn-r14234] Description:
Add H5Aexists and H5Aexists_by_name API routines, to match H5Lexists. Tested on: FreeBSD/32 6.2 (duty) in debug mode FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe, in debug mode Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN, in production mode Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN, in production mode Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN, w/szip filter, in production mode Mac OS X/32 10.4.10 (amazon) in debug mode Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Diffstat (limited to 'src/H5Oattribute.c')
-rw-r--r--src/H5Oattribute.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/H5Oattribute.c b/src/H5Oattribute.c
index 5c0a91a..5c9f875 100644
--- a/src/H5Oattribute.c
+++ b/src/H5Oattribute.c
@@ -61,8 +61,6 @@ typedef struct {
/* User data for iteration when opening an attribute */
typedef struct {
/* down */
- H5F_t *f; /* Pointer to file attribute is in */
- hid_t dxpl_id; /* DXPL for operation */
const char *name; /* Name of attribute to open */
/* up */
@@ -117,6 +115,15 @@ typedef struct {
hbool_t found; /* Found attribute to delete */
} H5O_iter_rm_t;
+/* User data for iteration when checking if an attribute exists */
+typedef struct {
+ /* down */
+ const char *name; /* Name of attribute to open */
+
+ /* up */
+ hbool_t found; /* Found attribute */
+} H5O_iter_xst_t;
+
/********************/
/* Package Typedefs */
@@ -483,8 +490,6 @@ H5O_attr_open_by_name(const H5O_loc_t *loc, const char *name, hid_t dxpl_id)
H5O_mesg_operator_t op; /* Wrapper for operator */
/* Set up user data for callback */
- udata.f = loc->file;
- udata.dxpl_id = dxpl_id;
udata.name = name;
udata.attr = NULL;