summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2018-10-20 20:06:37 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2018-10-20 20:06:37 (GMT)
commit46c5b059f1a7c434bff7b04f56f74de84a41edd2 (patch)
treeeeef0e0419367e03115375fa986ee23a535fa32c /src
parent5f99891e6dc59524fb6e43ca96a86df22b403c61 (diff)
downloadhdf5-46c5b059f1a7c434bff7b04f56f74de84a41edd2.zip
hdf5-46c5b059f1a7c434bff7b04f56f74de84a41edd2.tar.gz
hdf5-46c5b059f1a7c434bff7b04f56f74de84a41edd2.tar.bz2
Split H5VLnative.h into public and private files and updated
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt1
-rw-r--r--src/H5Aint.c2
-rw-r--r--src/H5Dint.c2
-rw-r--r--src/H5Dvirtual.c2
-rw-r--r--src/H5Fint.c3
-rw-r--r--src/H5Gint.c2
-rw-r--r--src/H5Gtraverse.c2
-rw-r--r--src/H5L.c2
-rw-r--r--src/H5Lexternal.c2
-rw-r--r--src/H5Oint.c2
-rw-r--r--src/H5Pfapl.c2
-rw-r--r--src/H5VLnative.c2
-rw-r--r--src/H5VLnative.h8
-rw-r--r--src/H5VLnative_private.h40
-rw-r--r--src/hdf5.h3
15 files changed, 55 insertions, 20 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 5104019..f82b8de 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -835,6 +835,7 @@ set (H5_PRIVATE_HEADERS
${HDF5_SRC_DIR}/H5STprivate.h
${HDF5_SRC_DIR}/H5Tprivate.h
${HDF5_SRC_DIR}/H5TSprivate.h
+ ${HDF5_SRC_DIR}/H5VLnative_private.h
${HDF5_SRC_DIR}/H5VLprivate.h
${HDF5_SRC_DIR}/H5VMprivate.h
${HDF5_SRC_DIR}/H5WBprivate.h
diff --git a/src/H5Aint.c b/src/H5Aint.c
index 80a3e98..ca5cb80 100644
--- a/src/H5Aint.c
+++ b/src/H5Aint.c
@@ -43,7 +43,7 @@
#include "H5Opkg.h" /* Object headers */
#include "H5SMprivate.h" /* Shared Object Header Messages */
#include "H5VLprivate.h" /* Virtual Object Layer */
-#include "H5VLnative.h" /* Native VOL driver */
+#include "H5VLnative_private.h" /* Native VOL driver */
/****************/
diff --git a/src/H5Dint.c b/src/H5Dint.c
index 3436105..253d005 100644
--- a/src/H5Dint.c
+++ b/src/H5Dint.c
@@ -31,7 +31,7 @@
#include "H5Lprivate.h" /* Links */
#include "H5MMprivate.h" /* Memory management */
#include "H5VLprivate.h" /* Virtual Object Layer */
-#include "H5VLnative.h" /* Native VOL driver */
+#include "H5VLnative_private.h" /* Native VOL driver */
/****************/
diff --git a/src/H5Dvirtual.c b/src/H5Dvirtual.c
index 77047e9..c7c1eec 100644
--- a/src/H5Dvirtual.c
+++ b/src/H5Dvirtual.c
@@ -58,7 +58,7 @@
#include "H5Oprivate.h" /* Object headers */
#include "H5Pprivate.h" /* Property Lists */
#include "H5Sprivate.h" /* Dataspaces */
-#include "H5VLnative.h" /* Native VOL driver */
+#include "H5VLnative_private.h" /* Native VOL driver */
#include "H5VLprivate.h" /* Virtual Object Layer */
/****************/
diff --git a/src/H5Fint.c b/src/H5Fint.c
index 6a57ca5..1a0c8b9 100644
--- a/src/H5Fint.c
+++ b/src/H5Fint.c
@@ -38,8 +38,7 @@
#include "H5SMprivate.h" /* Shared Object Header Messages */
#include "H5Tprivate.h" /* Datatypes */
#include "H5VLprivate.h" /* VOL drivers */
-
-#include "H5VLnative.h" /* Native VOL driver */
+#include "H5VLnative_private.h" /* Native VOL driver */
/****************/
diff --git a/src/H5Gint.c b/src/H5Gint.c
index 88ef82b..26c582e 100644
--- a/src/H5Gint.c
+++ b/src/H5Gint.c
@@ -39,7 +39,7 @@
#include "H5Iprivate.h" /* IDs */
#include "H5Lprivate.h" /* Links */
#include "H5MMprivate.h" /* Memory management */
-#include "H5VLnative.h" /* Virtual Object Layer (native) */
+#include "H5VLnative_private.h" /* Native VOL driver */
/****************/
diff --git a/src/H5Gtraverse.c b/src/H5Gtraverse.c
index a103f53..8fefcd8 100644
--- a/src/H5Gtraverse.c
+++ b/src/H5Gtraverse.c
@@ -43,7 +43,7 @@
#include "H5MMprivate.h" /* Memory management */
#include "H5Ppublic.h" /* Property Lists */
#include "H5WBprivate.h" /* Wrapped Buffers */
-#include "H5VLnative.h" /* Virtual Object Layer (native) */
+#include "H5VLnative_private.h" /* Native VOL driver */
/****************/
diff --git a/src/H5L.c b/src/H5L.c
index 0beafba..5142c82 100644
--- a/src/H5L.c
+++ b/src/H5L.c
@@ -34,7 +34,7 @@
#include "H5Oprivate.h" /* File objects */
#include "H5Pprivate.h" /* Property lists */
#include "H5VLprivate.h" /* Virtual Object Layer */
-#include "H5VLnative.h" /* Virtual Object Layer (native) */
+#include "H5VLnative_private.h" /* Native VOL driver */
/****************/
diff --git a/src/H5Lexternal.c b/src/H5Lexternal.c
index d9cc7a3..34c96a8 100644
--- a/src/H5Lexternal.c
+++ b/src/H5Lexternal.c
@@ -34,7 +34,7 @@
#include "H5Opublic.h" /* File objects */
#include "H5Pprivate.h" /* Property lists */
#include "H5VLprivate.h" /* Virtual Object Layer */
-#include "H5VLnative.h" /* Native VOL Driver */
+#include "H5VLnative_private.h" /* Native VOL driver */
/****************/
diff --git a/src/H5Oint.c b/src/H5Oint.c
index c569226..30fe127 100644
--- a/src/H5Oint.c
+++ b/src/H5Oint.c
@@ -43,7 +43,7 @@
#endif /* H5O_ENABLE_BOGUS */
#include "H5Opkg.h" /* Object headers */
#include "H5VLprivate.h" /* Virtual Object Layer */
-#include "H5VLnative.h" /* Virtual Object Layer (native) */
+#include "H5VLnative_private.h" /* Native VOL driver */
/****************/
diff --git a/src/H5Pfapl.c b/src/H5Pfapl.c
index 0340b67..a50c5ee 100644
--- a/src/H5Pfapl.c
+++ b/src/H5Pfapl.c
@@ -49,7 +49,7 @@
#endif
/* Includes needed to set the default VOL driver */
-#include "H5VLnative.h" /* Native HDF5 file VOL driver */
+#include "H5VLnative_private.h" /* Native VOL driver */
/****************/
diff --git a/src/H5VLnative.c b/src/H5VLnative.c
index acd56cd..e71e08e 100644
--- a/src/H5VLnative.c
+++ b/src/H5VLnative.c
@@ -41,7 +41,7 @@
#include "H5SMprivate.h" /* Shared Object Header Messages */
#include "H5Tpkg.h" /* Datatypes */
#include "H5VLprivate.h" /* VOL drivers */
-#include "H5VLnative.h" /* Native VOL driver */
+#include "H5VLnative_private.h" /* Native VOL driver */
/*
* The VOL driver identification number.
diff --git a/src/H5VLnative.h b/src/H5VLnative.h
index 19b9ff9..832c758 100644
--- a/src/H5VLnative.h
+++ b/src/H5VLnative.h
@@ -17,9 +17,6 @@
#ifndef _H5VLnative_H
#define _H5VLnative_H
-/* Initializer function for native VOL driver */
-#define H5VL_NATIVE (H5VL_native_init())
-
/* Characteristics of the native VOL driver */
#define H5VL_NATIVE_NAME "native"
#define H5VL_NATIVE_VALUE H5_VOL_NATIVE /* enum value */
@@ -30,12 +27,7 @@
extern "C" {
#endif
-/* XXX (VOL_MERGE): Poor separation of public and private functionality here */
H5_DLL herr_t H5Pset_fapl_native(hid_t fapl_id);
-H5_DLL hid_t H5VL_native_get_driver_id(void);
-H5_DLL hid_t H5VL_native_init(void);
-H5_DLL hid_t H5VL_native_register(H5I_type_t type, const void *obj, hbool_t app_ref);
-H5_DLL herr_t H5VL_native_unregister(hid_t obj_id);
#ifdef __cplusplus
}
diff --git a/src/H5VLnative_private.h b/src/H5VLnative_private.h
new file mode 100644
index 0000000..79a6e1c
--- /dev/null
+++ b/src/H5VLnative_private.h
@@ -0,0 +1,40 @@
+/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
+ * Copyright by The HDF Group. *
+ * All rights reserved. *
+ * *
+ * This file is part of HDF5. The full HDF5 copyright notice, including *
+ * terms governing use, modification, and redistribution, is contained in *
+ * the COPYING file, which can be found at the root of the source code *
+ * distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases. *
+ * If you do not have access to either file, you may request a copy from *
+ * help@hdfgroup.org. *
+ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
+
+/*
+ * Purpose: The private header file for the native VOL driver.
+ */
+
+#ifndef _H5VLnative_private_H
+#define _H5VLnative_private_H
+
+/* Include driver's public header */
+#include "H5VLnative.h"
+
+/* Initializer function for native VOL driver */
+#define H5VL_NATIVE (H5VL_native_init())
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+H5_DLL hid_t H5VL_native_get_driver_id(void);
+H5_DLL hid_t H5VL_native_init(void);
+H5_DLL hid_t H5VL_native_register(H5I_type_t type, const void *obj, hbool_t app_ref);
+H5_DLL herr_t H5VL_native_unregister(hid_t obj_id);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _H5VLnative_private_H */
diff --git a/src/hdf5.h b/src/hdf5.h
index fbeae83..f19abd9 100644
--- a/src/hdf5.h
+++ b/src/hdf5.h
@@ -52,4 +52,7 @@
#include "H5FDwindows.h" /* Win32 I/O */
#endif
+/* Virtual object layer drivers */
+#include "H5VLnative.h" /* Native VOL driver */
+
#endif