summaryrefslogtreecommitdiffstats
path: root/src/H5FD.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5FD.c')
-rw-r--r--src/H5FD.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/H5FD.c b/src/H5FD.c
index 18b0eb6..8ff9d9a 100644
--- a/src/H5FD.c
+++ b/src/H5FD.c
@@ -103,6 +103,16 @@ static int H5FD_driver_query(const H5FD_class_t *driver, unsigned long *flags/*o
*/
static unsigned long H5FD_file_serial_no_g;
+/* File driver ID class */
+static const H5I_class_t H5I_VFL_CLS[1] = {{
+ H5I_VFL, /* ID class value */
+ 0, /* Class flags */
+ 64, /* Minimum hash size for class */
+ 0, /* # of reserved IDs for class */
+ (H5I_free_t)H5FD_free_cls /* Callback routine for closing objects of this class */
+}};
+
+
/*-------------------------------------------------------------------------
* Function: H5FD_init
@@ -153,7 +163,7 @@ H5FD_init_interface(void)
FUNC_ENTER_NOAPI_NOINIT
- if(H5I_register_type(H5I_VFL, (size_t)H5I_VFL_HASHSIZE, 0, (H5I_free_t)H5FD_free_cls)<H5I_FILE)
+ if(H5I_register_type(H5I_VFL_CLS) < 0)
HGOTO_ERROR(H5E_VFL, H5E_CANTINIT, FAIL, "unable to initialize interface")
/* Reset the file serial numbers */