summaryrefslogtreecommitdiffstats
path: root/src/H5Pint.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2012-07-16 23:43:29 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2012-07-16 23:43:29 (GMT)
commit1e612c3a46880773d53ad315f3aef2104abb9347 (patch)
tree1259838b4fe2f3bb8ca78c8f0b4dea00557c89d1 /src/H5Pint.c
parent5e94d0336fa7a0ebc0a25d002b413221284691b6 (diff)
parent75f4e51a1a076ea2f1602619e2a7d7bcce13c2f1 (diff)
downloadhdf5-1e612c3a46880773d53ad315f3aef2104abb9347.zip
hdf5-1e612c3a46880773d53ad315f3aef2104abb9347.tar.gz
hdf5-1e612c3a46880773d53ad315f3aef2104abb9347.tar.bz2
[svn-r22584] merge from trunk and resolve type ID registration
Diffstat (limited to 'src/H5Pint.c')
-rw-r--r--src/H5Pint.c29
1 files changed, 25 insertions, 4 deletions
diff --git a/src/H5Pint.c b/src/H5Pint.c
index 4a80bef..9de7e4a 100644
--- a/src/H5Pint.c
+++ b/src/H5Pint.c
@@ -38,6 +38,7 @@
#include "H5MMprivate.h" /* Memory management */
#include "H5Ppkg.h" /* Property lists */
+
/****************/
/* Local Macros */
/****************/
@@ -236,6 +237,27 @@ H5FL_DEFINE_STATIC(H5P_genprop_t);
/* Declare a free list to manage the H5P_genplist_t struct */
H5FL_DEFINE_STATIC(H5P_genplist_t);
+/* Generic Property Class ID class */
+static const H5I_class_t H5I_GENPROPCLS_CLS[1] = {{
+ H5I_GENPROP_CLS, /* ID class value */
+ 0, /* Class flags */
+ 64, /* Minimum hash size for class */
+ 0, /* # of reserved IDs for class */
+ (H5I_free_t)H5P_close_class,/* Callback routine for closing objects of this class */
+ NULL /* Callback routine for closing auxilary objects of this class */
+}};
+
+/* Generic Property List ID class */
+static const H5I_class_t H5I_GENPROPLST_CLS[1] = {{
+ H5I_GENPROP_LST, /* ID class value */
+ 0, /* Class flags */
+ 128, /* Minimum hash size for class */
+ 0, /* # of reserved IDs for class */
+ (H5I_free_t)H5P_close, /* Callback routine for closing objects of this class */
+ NULL /* Callback routine for closing auxilary objects of this class */
+}};
+
+
/*--------------------------------------------------------------------------
NAME
@@ -357,11 +379,10 @@ H5P_init_interface(void)
/*
* Initialize the Generic Property class & object groups.
*/
- if(H5I_register_type(H5I_GENPROP_CLS, (size_t)H5I_GENPROPCLS_HASHSIZE, 0,
- (H5I_free_t)H5P_close_class, NULL) < 0)
+ if(H5I_register_type(H5I_GENPROPCLS_CLS) < 0)
HGOTO_ERROR(H5E_ATOM, H5E_CANTINIT, FAIL, "unable to initialize ID group")
- if(H5I_register_type(H5I_GENPROP_LST, (size_t)H5I_GENPROPOBJ_HASHSIZE, 0,
- (H5I_free_t)H5P_close, NULL) < 0)
+
+ if(H5I_register_type(H5I_GENPROPLST_CLS) < 0)
HGOTO_ERROR(H5E_ATOM, H5E_CANTINIT, FAIL, "unable to initialize ID group")
/* Repeatedly pass over the list of property list classes for the library,