summaryrefslogtreecommitdiffstats
path: root/src/H5C.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5C.c')
-rw-r--r--src/H5C.c26
1 files changed, 25 insertions, 1 deletions
diff --git a/src/H5C.c b/src/H5C.c
index 23a0450..d19298c 100644
--- a/src/H5C.c
+++ b/src/H5C.c
@@ -83,13 +83,37 @@ static herr_t H5C_init_interface(void)
FUNC_ENTER (H5C_init_interface, NULL, FAIL);
/* Initialize the atom group for the file IDs */
- ret_value=H5Ainit_group(H5_TEMPLATE,H5A_TEMPID_HASHSIZE,0);
+ if((ret_value=H5Ainit_group(H5_TEMPLATE,H5A_TEMPID_HASHSIZE,0))!=FAIL)
+ ret_value=H5_add_exit(&H5C_term_interface);
FUNC_LEAVE(ret_value);
} /* H5C_init_interface */
/*--------------------------------------------------------------------------
NAME
+ H5C_term_interface
+ PURPOSE
+ Terminate various H5C objects
+ USAGE
+ void H5C_term_interface()
+ RETURNS
+ SUCCEED/FAIL
+ DESCRIPTION
+ Release the atom group and any other resources allocated.
+ GLOBAL VARIABLES
+ COMMENTS, BUGS, ASSUMPTIONS
+ Can't report errors...
+ EXAMPLES
+ REVISION LOG
+--------------------------------------------------------------------------*/
+void H5C_term_interface (void)
+{
+ H5Aremove_atom(default_file_id);
+ H5Adestroy_group(H5_TEMPLATE);
+} /* end H5C_term_interface() */
+
+/*--------------------------------------------------------------------------
+ NAME
H5C_get_default_atom
PURPOSE
Retrive an atom for a default HDF5 template.