summaryrefslogtreecommitdiffstats
path: root/src/H5FDhdfs.h
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2020-11-13 16:19:52 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2020-11-13 16:19:52 (GMT)
commit815cff2eb3c3d3a194078ef064ee2fc6422c2e5d (patch)
tree0e7d3b3949df3c5ac82530aaa32ef647258fe428 /src/H5FDhdfs.h
parenta53e716e83fe2203b96fc86c71f4022c7ee7dc68 (diff)
downloadhdf5-815cff2eb3c3d3a194078ef064ee2fc6422c2e5d.zip
hdf5-815cff2eb3c3d3a194078ef064ee2fc6422c2e5d.tar.gz
hdf5-815cff2eb3c3d3a194078ef064ee2fc6422c2e5d.tar.bz2
Brings HDFS VFD binary compatibility stubs from 1.10
The implementation of the HDFS VFD included no-op stubs for HDFS functionality, even when the HDFS VFD was not being built. These were removed in the develop branch and those changes were merged to the 1.12 development trunk after 1.12.0 was released. This would lead to binary compatibility problems if released in HDF5 1.12.1. This commit restores the no-op stubs.
Diffstat (limited to 'src/H5FDhdfs.h')
-rw-r--r--src/H5FDhdfs.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/H5FDhdfs.h b/src/H5FDhdfs.h
index 9d14e9a..5fbc54b 100644
--- a/src/H5FDhdfs.h
+++ b/src/H5FDhdfs.h
@@ -28,11 +28,6 @@
#define H5FD_HDFS (-1)
#endif /* H5_HAVE_LIBHDFS */
-#ifdef H5_HAVE_LIBHDFS
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/****************************************************************************
*
* Structure: H5FD_hdfs_fapl_t
@@ -112,6 +107,10 @@ typedef struct H5FD_hdfs_fapl_t {
int32_t stream_buffer_size;
} H5FD_hdfs_fapl_t;
+#ifdef __cplusplus
+extern "C" {
+#endif
+
H5_DLL hid_t H5FD_hdfs_init(void);
H5_DLL herr_t H5Pget_fapl_hdfs(hid_t fapl_id, H5FD_hdfs_fapl_t *fa_out);
H5_DLL herr_t H5Pset_fapl_hdfs(hid_t fapl_id, H5FD_hdfs_fapl_t *fa);
@@ -119,6 +118,5 @@ H5_DLL herr_t H5Pset_fapl_hdfs(hid_t fapl_id, H5FD_hdfs_fapl_t *fa);
#ifdef __cplusplus
}
#endif
-#endif /* H5_HAVE_LIBHDFS */
#endif /* ifndef H5FDhdfs_H */