summaryrefslogtreecommitdiffstats
path: root/src/H5.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2000-07-25 17:35:17 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2000-07-25 17:35:17 (GMT)
commit2c8c5f96924b1e143d6047b802eda1aed9003d1c (patch)
tree49d081a241a9fb61c66b2fd6676c2cdba5f57604 /src/H5.c
parent2a14d16d805762296e53ab25a6bc8b6a39230c11 (diff)
downloadhdf5-2c8c5f96924b1e143d6047b802eda1aed9003d1c.zip
hdf5-2c8c5f96924b1e143d6047b802eda1aed9003d1c.tar.gz
hdf5-2c8c5f96924b1e143d6047b802eda1aed9003d1c.tar.bz2
[svn-r2444] Checkpoint the Generic Property implementation. It's not active yet, but it's
close. This shouldn't interfere with other development work. (I think.. :-)
Diffstat (limited to 'src/H5.c')
-rw-r--r--src/H5.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/H5.c b/src/H5.c
index c7fab81..d13bd10 100644
--- a/src/H5.c
+++ b/src/H5.c
@@ -19,6 +19,7 @@ static char RcsId[] = "@(#)$Revision$";
/* private headers */
#include <H5private.h> /*library */
#include <H5Bprivate.h> /*B-link trees */
+#include <H5Dprivate.h> /*datasets */
#include <H5Eprivate.h> /*error handling */
#include <H5FDprivate.h> /*file driver */
#include <H5FLprivate.h> /*Free Lists */
@@ -110,8 +111,11 @@ H5_init_library(void)
/*
* Initialize interfaces that might not be able to initialize themselves
- * soon enough. The file interface must be initialized because calling
- * H5Pcreate() might require the H5F_access_dflt to be initialized.
+ * soon enough. The file & dataset interfaces must be initialized because
+ * calling H5Pcreate() might require the file/dataset property classes to be
+ * initialized. The property lists are be initialized during the H5F/H5D
+ * init calls (because they call H5P functions, which initialize the H5P
+ * API, before using the properties).
*/
if (H5F_init()<0) {
HRETURN_ERROR(H5E_FUNC, H5E_CANTINIT, FAIL,
@@ -121,6 +125,10 @@ H5_init_library(void)
HRETURN_ERROR(H5E_FUNC, H5E_CANTINIT, FAIL,
"unable to initialize type interface");
}
+ if (H5D_init()<0) {
+ HRETURN_ERROR(H5E_FUNC, H5E_CANTINIT, FAIL,
+ "unable to initialize file interface");
+ }
/* Debugging? */
H5_debug_mask("-all");