summaryrefslogtreecommitdiffstats
path: root/src/H5Tpkg.h
diff options
context:
space:
mode:
authorJerome Soumagne <jsoumagne@hdfgroup.org>2019-11-26 21:50:08 (GMT)
committerJerome Soumagne <jsoumagne@hdfgroup.org>2019-11-26 21:50:08 (GMT)
commit6b68cc352ffabb5fe997db1eb52216b3ee80e669 (patch)
treeff141b2b504db24deab1799be4a548d8fc660c1f /src/H5Tpkg.h
parentb8a56718e40efaf6954a760984b9d513dbff8f7d (diff)
downloadhdf5-6b68cc352ffabb5fe997db1eb52216b3ee80e669.zip
hdf5-6b68cc352ffabb5fe997db1eb52216b3ee80e669.tar.gz
hdf5-6b68cc352ffabb5fe997db1eb52216b3ee80e669.tar.bz2
H5R: fix H5Tconv to check for null references
Valid for both deprecated and non-deprecated references Update test
Diffstat (limited to 'src/H5Tpkg.h')
-rw-r--r--src/H5Tpkg.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/H5Tpkg.h b/src/H5Tpkg.h
index 1dbc229..39bff15 100644
--- a/src/H5Tpkg.h
+++ b/src/H5Tpkg.h
@@ -182,11 +182,15 @@ struct H5T_path_t {
};
/* Reference function pointers */
+typedef herr_t (*H5T_ref_isnullfunc_t)(const H5VL_object_t *file, const void *src_buf, hbool_t *isnull);
+typedef herr_t (*H5T_ref_setnullfunc_t)(H5VL_object_t *file, void *dst_buf, void *bg_buf);
typedef size_t (*H5T_ref_getsizefunc_t)(H5VL_object_t *src_file, const void *src_buf, size_t src_size, H5VL_object_t *dst_file, hbool_t *dst_copy);
typedef herr_t (*H5T_ref_readfunc_t)(H5VL_object_t *src_file, const void *src_buf, size_t src_size, H5VL_object_t *dst_file, void *dst_buf, size_t dst_size);
typedef herr_t (*H5T_ref_writefunc_t)(H5VL_object_t *src_file, const void *src_buf, size_t src_size, H5R_type_t src_type, H5VL_object_t *dst_file, void *dst_buf, size_t dst_size, void *bg_buf);
typedef struct H5T_ref_class_t {
+ H5T_ref_isnullfunc_t isnull; /* check if reference value is NIL */
+ H5T_ref_setnullfunc_t setnull; /* set a reference value to NIL */
H5T_ref_getsizefunc_t getsize; /* get reference size (bytes) */
H5T_ref_readfunc_t read; /* read reference into buffer */
H5T_ref_writefunc_t write; /* write reference from buffer */