summaryrefslogtreecommitdiffstats
path: root/src/H5VL.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/H5VL.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/H5VL.c')
-rw-r--r--src/H5VL.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/H5VL.c b/src/H5VL.c
index fcd8d47..9c42f99 100644
--- a/src/H5VL.c
+++ b/src/H5VL.c
@@ -48,6 +48,20 @@
/********************/
static herr_t H5VL_free_cls(H5VL_class_t *cls);
+/*******************/
+/* Local Variables */
+/*******************/
+
+/* VOL ID class */
+static const H5I_class_t H5I_VOL_CLS[1] = {{
+ H5I_VOL, /* ID class value */
+ 0, /* Class flags */
+ 64, /* Minimum hash size for class */
+ 0, /* # of reserved IDs for class */
+ (H5I_free_t)H5VL_free_cls, /* Callback routine for closing objects of this class */
+ NULL, /* Callback routine for closing auxilary objects of this class */
+}};
+
/*-------------------------------------------------------------------------
* Function: H5VL_init
@@ -99,8 +113,7 @@ H5VL_init_interface(void)
FUNC_ENTER_NOAPI_NOINIT
/* register VOL ID type */
- if(H5I_register_type(H5I_VOL, (size_t)H5I_VOL_HASHSIZE, 0,
- (H5I_free_t)H5VL_free_cls, NULL)<H5I_FILE)
+ if(H5I_register_type(H5I_VOL_CLS) < 0)
HGOTO_ERROR(H5E_VOL, H5E_CANTINIT, FAIL, "unable to initialize interface")
done: