summaryrefslogtreecommitdiffstats
path: root/src/H5FDint.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2017-05-24 11:44:18 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2017-05-24 11:44:18 (GMT)
commite5a57c97aa43d6c76d1bb1fe64d24aaa0bbbb7d3 (patch)
tree2f4f57f2bec05bd3bc2fb15e0b93052c578fd90f /src/H5FDint.c
parente3b22b8fa45697d6f73330b33cd201c37e0335d6 (diff)
downloadhdf5-e5a57c97aa43d6c76d1bb1fe64d24aaa0bbbb7d3.zip
hdf5-e5a57c97aa43d6c76d1bb1fe64d24aaa0bbbb7d3.tar.gz
hdf5-e5a57c97aa43d6c76d1bb1fe64d24aaa0bbbb7d3.tar.bz2
* Made H5FD_driver_query() a private function instead of static.
* Moved H5FD_driver_query() to H5FDint.c. * Minor typo fixes in H5I.c. * Updated swmr.c to check the VFD feature flags and skip the retries test when the VFD is not compatible with H5P_DEFAULT.
Diffstat (limited to 'src/H5FDint.c')
-rw-r--r--src/H5FDint.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/H5FDint.c b/src/H5FDint.c
index bc322d6..ccf0f2e 100644
--- a/src/H5FDint.c
+++ b/src/H5FDint.c
@@ -433,3 +433,40 @@ done:
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5FD_get_eof() */
+
+/*-------------------------------------------------------------------------
+* Function: H5FD_driver_query
+*
+* Purpose: Similar to H5FD_query(), but intended for cases when we don't
+* have a file available (e.g. before one is opened). Since we
+* can't use the file to get the driver, the driver is passed in
+* as a parameter.
+*
+* Return: Success: non-negative
+* Failure: negative
+*
+* Programmer: Jacob Gruber
+* Wednesday, August 17, 2011
+*
+*-------------------------------------------------------------------------
+*/
+int
+H5FD_driver_query(const H5FD_class_t *driver, unsigned long *flags/*out*/)
+{
+ int ret_value = 0; /* Return value */
+
+ FUNC_ENTER_NOAPI_NOINIT_NOERR
+
+ HDassert(driver);
+ HDassert(flags);
+
+ /* Check for the driver to query and then query it */
+ if(driver->query)
+ ret_value = (driver->query)(NULL, flags);
+ else
+ *flags = 0;
+
+ FUNC_LEAVE_NOAPI(ret_value)
+} /* end H5FD_driver_query() */
+
+