Skip to content

Commit

Permalink
expose only 1.10.0 symbols for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
picca committed Jan 8, 2025
1 parent 1819f16 commit 168e9ad
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
11 changes: 11 additions & 0 deletions cbits/H5S_inline.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#include <H5Spublic.h>
#include <bindings.cmacros.h>

#if H5_VERSION_GE(1, 12, 0)
BC_INLINE3(H5Sencode, hid_t, void *, size_t *, herr_t);
#else
#define inline_H5Sencode H5Sencode
}
endif

#endif
8 changes: 0 additions & 8 deletions src/Bindings/HDF5/Raw/H5S.hsc
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,6 @@ import Foreign.Ptr.Conventions
-- Returns non-negative on success, negative on failure.
--
#cinline H5Sencode, <hid_t> -> OutArray CChar -> InOut <size_t> -> IO <herr_t>
#if H5_VERSION_GE(1,12,0)
# ccall H5Sencode2, <hid_t> -> OutArray CChar -> InOut <size_t> -> <hid_t> -> IO <herr_t>
# ccall H5Sencode1, <hid_t> -> OutArray CChar -> InOut <size_t> -> IO <herr_t>
#endif

-- |Decode a binary object description of dataspace and
-- return a new object handle.
Expand Down Expand Up @@ -424,16 +420,12 @@ import Foreign.Ptr.Conventions
-- > htri_t H5Sselect_valid(hid_t spaceid);
#ccall H5Sselect_valid, <hid_t> -> IO <htri_t>

#if H5_VERSION_GE(1,10,0)

-- > htri_t H5Sis_regular_hyperslab(hid_t spaceid);
#ccall H5Sis_regular_hyperslab, <hid_t> -> IO <htri_t>
-- > htri_t H5Sget_regular_hyperslab(hid_t spaceid, hsize_t start[],
-- > hsize_t stride[], hsize_t count[], hsize_t block[]);
#ccall H5Sget_regular_hyperslab, <hid_t> -> InArray <hsize_t> -> InArray <hsize_t> -> InArray <hsize_t> -> InArray <hsize_t> -> IO <htri_t>

#endif

-- |Get the number of hyperslab blocks in current hyperslab selection
--
-- Returns negative on failure
Expand Down

0 comments on commit 168e9ad

Please sign in to comment.