summaryrefslogtreecommitdiffstats
path: root/src/H5D.c
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1998-04-24 17:19:49 (GMT)
committerRobb Matzke <matzke@llnl.gov>1998-04-24 17:19:49 (GMT)
commitefd9b6e5257c5fecc78ca768c3e0067864f4e698 (patch)
tree07f76a4721ba126350cd5bb964e7c7936e3862cc /src/H5D.c
parent7b7ae438f722517017247b522e2848c645d96aa3 (diff)
downloadhdf5-efd9b6e5257c5fecc78ca768c3e0067864f4e698.zip
hdf5-efd9b6e5257c5fecc78ca768c3e0067864f4e698.tar.gz
hdf5-efd9b6e5257c5fecc78ca768c3e0067864f4e698.tar.bz2
[svn-r374] ./src/H5A.c
./src/H5D.c ./src/H5Dprivate.h ./src/H5Dpkg.h [REMOVED] ./src/H5Tpkg.h ./src/H5Tprivate.h Rearranged some header stuff so H5A doesn't have to include the package-private header files that don't belong to it. ./src/H5E.c Added the H5E_ATTR message to the major error struct.
Diffstat (limited to 'src/H5D.c')
-rw-r--r--src/H5D.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/H5D.c b/src/H5D.c
index 8461abf..5027844 100644
--- a/src/H5D.c
+++ b/src/H5D.c
@@ -1746,3 +1746,25 @@ H5D_extend (H5D_t *dataset, const hsize_t *size)
FUNC_LEAVE (SUCCEED);
}
+
+/*-------------------------------------------------------------------------
+ * Function: H5D_entof
+ *
+ * Purpose: Returns a pointer to the entry for a dataset.
+ *
+ * Return: Success: Ptr to entry
+ *
+ * Failure: NULL
+ *
+ * Programmer: Robb Matzke
+ * Friday, April 24, 1998
+ *
+ * Modifications:
+ *
+ *-------------------------------------------------------------------------
+ */
+H5G_entry_t *
+H5D_entof (H5D_t *dataset)
+{
+ return dataset ? &(dataset->ent) : NULL;
+}