summaryrefslogtreecommitdiffstats
path: root/src/H5A.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2012-03-31 04:40:52 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2012-03-31 04:40:52 (GMT)
commit0e573bd2406448e9380d15d17c41bb1d8b5300e7 (patch)
tree05e65759f44f60fe7b39067ac220654b53a20cff /src/H5A.c
parentd73d19fb0a4df62b8d0dcaa08e59f04904467c0a (diff)
downloadhdf5-0e573bd2406448e9380d15d17c41bb1d8b5300e7.zip
hdf5-0e573bd2406448e9380d15d17c41bb1d8b5300e7.tar.gz
hdf5-0e573bd2406448e9380d15d17c41bb1d8b5300e7.tar.bz2
[svn-r22215] Description:
Bring r22171 from trunk to 1.8 branch: Bring "merge committed datatypes during H5Ocopy" feature from branch to trunk. (Also has some minor bugfixes with it) Tested on: Mac OSX/64 10.7.3 (amazon) w/debug (h5committest coming up)
Diffstat (limited to 'src/H5A.c')
-rw-r--r--src/H5A.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/H5A.c b/src/H5A.c
index 8945669..221d190 100644
--- a/src/H5A.c
+++ b/src/H5A.c
@@ -2523,6 +2523,36 @@ done:
/*-------------------------------------------------------------------------
+ * Function: H5A_type
+ *
+ * Purpose: Return the datatype for an attribute.
+ *
+ * Return: Success: Ptr to entry
+ * Failure: NULL
+ *
+ * Programmer: Neil Fortner
+ * Friday, November 11, 2011
+ *
+ *-------------------------------------------------------------------------
+ */
+H5T_t *
+H5A_type(const H5A_t *attr)
+{
+ H5T_t *ret_value; /* Return value */
+
+ FUNC_ENTER_NOAPI(NULL)
+
+ HDassert(attr);
+
+ /* Set return value */
+ ret_value = attr->shared->dt;
+
+done:
+ FUNC_LEAVE_NOAPI(ret_value)
+} /* end H5A_type() */
+
+
+/*-------------------------------------------------------------------------
* Function: H5Aexists
*
* Purpose: Checks if an attribute with a given name exists on an opened