summaryrefslogtreecommitdiffstats
path: root/src/H5.c
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1998-01-30 19:25:44 (GMT)
committerRobb Matzke <matzke@llnl.gov>1998-01-30 19:25:44 (GMT)
commitb227b388533896337f436f01763ad26def14844c (patch)
tree4771c187539c0f8bd36572914b63b0137fde2ea8 /src/H5.c
parent0a7b2071a0589bef1abf8fd1b2f7cd470312d7f9 (diff)
downloadhdf5-b227b388533896337f436f01763ad26def14844c.zip
hdf5-b227b388533896337f436f01763ad26def14844c.tar.gz
hdf5-b227b388533896337f436f01763ad26def14844c.tar.bz2
[svn-r204] Changes since 19980129
---------------------- ./RELEASE Added Library functions that I missed the first time. ./html/Datasets.html Added an example for Elena's question about how to read a single member of a compound data type so it becomes an array of that member in memory. ./src/H5Pprivate.h Fixed the prototype for H5P_get_hyperslab() to match the definition. ./src/H5Psimp.c Oops, added the kludge back in for the offset argument, which is still an `intn' instead of a `size_t'. ./src/H5.c ./src/H5public.h ./src/H5F.c ./src/H5T.c ./src/H5Tpublic.h Changed H5init() to H5open() and added an H5close() to fit our create/open/close paradigm. The H5open() happens automatically on the first call to the HDF5 library. The H5close() happens automatically on exit() (unless the app turns off that feature). H5close() closes all datasets and files and releases all resources used by the library. ./test/dsets.c Added calls to H5open() and H5close() to test them. ./test/dtypes.c Removed call to H5init() since we no longer need it there. ./src/H5Fstdio.c Changed the PABLO_MASK to the right value. Thanks Kim.
Diffstat (limited to 'src/H5.c')
-rw-r--r--src/H5.c37
1 files changed, 33 insertions, 4 deletions
diff --git a/src/H5.c b/src/H5.c
index abbc54d..30a33e0 100644
--- a/src/H5.c
+++ b/src/H5.c
@@ -142,7 +142,7 @@ H5_add_exit(void (*func) (void))
PURPOSE
Terminate various static buffers and shutdown the library.
USAGE
- void HPend()
+ void H5_term_library()
RETURNS
SUCCEED/FAIL
DESCRIPTION
@@ -322,7 +322,7 @@ H5version(uintn *majnum, uintn *minnum, uintn *relnum, uintn *patnum)
}
/*-------------------------------------------------------------------------
- * Function: H5init
+ * Function: H5open
*
* Purpose: Initialize the library. This is normally called
* automatically, but if you find that an HDF5 library function
@@ -341,9 +341,38 @@ H5version(uintn *majnum, uintn *minnum, uintn *relnum, uintn *patnum)
*-------------------------------------------------------------------------
*/
herr_t
-H5init(void)
+H5open(void)
{
- FUNC_ENTER(H5init, FAIL);
+ FUNC_ENTER(H5open, FAIL);
/* all work is done by FUNC_ENTER() */
FUNC_LEAVE(SUCCEED);
}
+
+
+/*-------------------------------------------------------------------------
+ * Function: H5close
+ *
+ * Purpose: Terminate the library and release all resources.
+ *
+ * Return: Success: SUCCEED
+ *
+ * Failure: FAIL
+ *
+ * Programmer: Robb Matzke
+ * Friday, January 30, 1998
+ *
+ * Modifications:
+ *
+ *-------------------------------------------------------------------------
+ */
+herr_t
+H5close (void)
+{
+ /*
+ * Don't call FUNC_ENTER() since we don't want to initialize the whole
+ * thing just to release it all right away. It is safe to call this
+ * function for an uninitialized library.
+ */
+ H5_term_library ();
+ return SUCCEED;
+}