added extern "C" wrapper for C++

This commit is contained in:
2011-03-25 14:53:31 +00:00
parent 1000240374
commit 6661eca765
14 changed files with 96 additions and 10 deletions
+7
View File
@@ -16,6 +16,10 @@
#ifndef __H5_H
#define __H5_H
#ifdef __cplusplus
extern "C" {
#endif
h5_file_t *
H5OpenFile (
const char * filename,
@@ -129,5 +133,8 @@ H5SetThrottle (
int factor
);
#endif
#ifdef __cplusplus
}
#endif
#endif
+9
View File
@@ -1,6 +1,10 @@
#ifndef __H5BLOCK_H
#define __H5BLOCK_H
#ifdef __cplusplus
extern "C" {
#endif
h5_int64_t
H5Block3dHasView (
h5_file_t *const f /*!< IN: File handle */
@@ -188,5 +192,10 @@ H5Block3dSetFieldSpacing (
const h5_float64_t y_spacing,
const h5_float64_t z_spacing
);
#ifdef __cplusplus
}
#endif
#endif
+8
View File
@@ -2,6 +2,10 @@
#ifndef __H5BLOCK_READWRITE_H
#define __H5BLOCK_READWRITE_H
#ifdef __cplusplus
extern "C" {
#endif
h5_err_t
H5Block3dWriteScalarFieldFloat64 (
h5_file_t *f,
@@ -198,4 +202,8 @@ H5BlockReadFieldAttribInt32 (
h5_int32_t *buffer
);
#ifdef __cplusplus
}
#endif
#endif
+7 -1
View File
@@ -25,6 +25,10 @@
#include "H5Fed_store.h"
#include "H5Fed_tags.h"
#ifdef __cplusplus
extern "C" {
#endif
/****** General routines *****************************************************/
h5_err_t
@@ -51,7 +55,9 @@ H5FedLinkMeshToStep (
const h5_id_t mesh_id
);
#ifdef __cplusplus
}
#endif
#endif
+8
View File
@@ -1,6 +1,10 @@
#ifndef __H5FED_ADJACENCY_H
#define __H5FED_ADJACENCY_H
#ifdef __cplusplus
extern "C" {
#endif
h5_err_t
H5FedGetAdjacencies (
h5_file_t* const f,
@@ -15,4 +19,8 @@ H5FedReleaseListOfAdjacencies (
h5_loc_idlist_t **list
);
#ifdef __cplusplus
}
#endif
#endif
+9
View File
@@ -18,6 +18,10 @@
#ifndef __H5FED_INQUIRY_H
#define __H5FED_INQUIRY_H
#ifdef __cplusplus
extern "C" {
#endif
h5_ssize_t H5FedGetNumMeshes ( h5_file_t * const f, const h5_oid_t type_id );
h5_ssize_t H5FedGetNumLevels ( h5_file_t * const f );
h5t_lvl_idx_t H5FedGetLevel ( h5_file_t * const f );
@@ -27,4 +31,9 @@ h5_ssize_t H5FedGetNumVerticesTotal ( h5_file_t * const f );
h5_ssize_t H5FedGetNumElements ( h5_file_t * const f );
h5_ssize_t H5FedGetNumElementsCnode ( h5_file_t * const f, const h5_id_t cnode );
h5_ssize_t H5FedGetNumElementsTotal ( h5_file_t * const f );
#ifdef __cplusplus
}
#endif
#endif
+9
View File
@@ -15,6 +15,10 @@
#ifndef __H5FED_RETRIEVE_H
#define __H5FED_RETRIEVE_H
#ifdef __cplusplus
extern "C" {
#endif
h5t_iterator_t*
H5FedBeginTraverseEntities (
h5_file_t* const f,
@@ -82,4 +86,9 @@ H5FedGetVertexIndicesOfEntity (
h5_loc_id_t entity_id,
h5_loc_idx_t* const vertex_indices
);
#ifdef __cplusplus
}
#endif
#endif
+8
View File
@@ -19,6 +19,10 @@
#ifndef __H5FED_STORE_H
#define __H5FED_STORE_H
#ifdef __cplusplus
extern "C" {
#endif
h5_id_t
H5FedAddMesh (
h5_file_t * const f,
@@ -82,4 +86,8 @@ H5FedEndRefineElements (
h5_file_t * const f
);
#ifdef __cplusplus
}
#endif
#endif
+9
View File
@@ -1,5 +1,10 @@
#ifndef __H5FED_TAGS_H
#define __H5FED_TAGS_H
#ifdef __cplusplus
extern "C" {
#endif
h5_err_t
H5FedAddMTagset (
h5_file_t* const f,
@@ -44,4 +49,8 @@ H5FedRemoveMTag (
const h5_loc_id_t id
);
#ifdef __cplusplus
}
#endif
#endif
+7
View File
@@ -1,6 +1,10 @@
#ifndef __H5PART_H
#define __H5PART_H
#ifdef __cplusplus
extern "C" {
#endif
h5_err_t
H5PartSetNumParticles (
h5_file_t *f, /*!< [in] Handle to open file */
@@ -141,5 +145,8 @@ H5PartSetCanonicalView (
h5_file_t *f /*!< [in] Handle to open file */
);
#ifdef __cplusplus
}
#endif
#endif
+8
View File
@@ -1,6 +1,10 @@
#ifndef __H5_ATTACHMENTS_H
#define __H5_ATTACHMENTS_H
#ifdef __cplusplus
extern "C" {
#endif
h5_ssize_t
H5GetNumAttachments (
h5_file_t* const f
@@ -105,4 +109,8 @@ H5DeleteAttachment (
const char* const name
);
#ifdef __cplusplus
}
#endif
#endif
+7
View File
@@ -1,6 +1,10 @@
#ifndef __H5_ATTRIBS_H
#define __H5_ATTRIBS_H
#ifdef __cplusplus
extern "C" {
#endif
h5_err_t
H5WriteFileAttribString (
h5_file_t *const f, /*!< [in] Handle to open file */
@@ -183,5 +187,8 @@ H5GetStepAttribInfo (
h5_size_t *attrib_nelem /*!< [out] Number of elements */
);
#ifdef __cplusplus
}
#endif
#endif
-8
View File
@@ -1,10 +1,6 @@
#ifndef __H5HUT_H
#define __H5HUT_H
#ifdef __cplusplus
extern "C" {
#endif
#include "h5core/h5_core.h"
#include "H5.h"
#include "H5_attribs.h"
@@ -14,8 +10,4 @@ extern "C" {
#include "H5Block_readwrite.h"
#include "H5Fed.h"
#ifdef __cplusplus
}
#endif
#endif
-1
View File
@@ -1,7 +1,6 @@
#ifndef __H5_TYPES_H
#define __H5_TYPES_H
#include <stdarg.h>
#include <hdf5.h>
/*