summaryrefslogtreecommitdiffstats
path: root/java/src/jni/h5fImp.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-01-04 18:52:25 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2019-01-04 18:52:37 (GMT)
commit28d5d987b5f7531f5709e65fa731b3972413ddb8 (patch)
treee49cf44830dab5d8fd4c691d1bc06e4b764425b2 /java/src/jni/h5fImp.c
parent46bf1647d40bfab34f4d7726cbd8ae9668d1759f (diff)
downloadhdf5-28d5d987b5f7531f5709e65fa731b3972413ddb8.zip
hdf5-28d5d987b5f7531f5709e65fa731b3972413ddb8.tar.gz
hdf5-28d5d987b5f7531f5709e65fa731b3972413ddb8.tar.bz2
HDFFV-10664 add missing function and check for restriction
Diffstat (limited to 'java/src/jni/h5fImp.c')
-rw-r--r--java/src/jni/h5fImp.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/java/src/jni/h5fImp.c b/java/src/jni/h5fImp.c
index 7f10ca5..80adffb 100644
--- a/java/src/jni/h5fImp.c
+++ b/java/src/jni/h5fImp.c
@@ -149,6 +149,9 @@ Java_hdf_hdf5lib_H5_H5Fis_1hdf5
(JNIEnv *env, jclass clss, jstring name)
{
htri_t bval = JNI_FALSE;
+#ifdef H5_NO_DEPRECATED_SYMBOLS
+ h5unimplemented(env, "H5Fis_hdf5: not implemented");
+#else
const char *fileName;
PIN_JAVA_STRING(name, fileName);
@@ -162,7 +165,7 @@ Java_hdf_hdf5lib_H5_H5Fis_1hdf5
else if (bval < 0)
h5libraryError(env);
}
-
+#endif
return (jboolean)bval;
} /* end Java_hdf_hdf5lib_H5_H5Fis_1hdf5 */
@@ -681,6 +684,22 @@ Java_hdf_hdf5lib_H5_H5Fget_1dset_1no_1attrs_1hint
return bval;
}
+/*
+ * Class: hdf_hdf5lib_H5
+ * Method: H5Fset_libver_bounds
+ * Signature: (JII)V
+ */
+JNIEXPORT void JNICALL
+Java_hdf_hdf5lib_H5_H5Fset_1libver_1bounds
+ (JNIEnv *env, jclass clss, jlong file_id, jint low, jint high)
+{
+ herr_t retVal = -1;
+
+ retVal = H5Fset_libver_bounds((hid_t)file_id, (H5F_libver_t)low, (H5F_libver_t)high);
+ if(retVal < 0)
+ h5libraryError(env);
+} /* end Java_hdf_hdf5lib_H5_H5Fset_1libver_1bounds */
+
#ifdef __cplusplus
} /* end extern "C" */