diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2005-02-24 17:23:26 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2005-02-24 17:23:26 (GMT) |
commit | b1485cfdcff1963c15f98bea565f4737cb9ad397 (patch) | |
tree | beb4b59c7719565ea9b00c05e81f127a25991eec /src/H5B2test.c | |
parent | 13bb955536b57f50cd4e4338d07c7a2e60acf4ba (diff) | |
download | hdf5-b1485cfdcff1963c15f98bea565f4737cb9ad397.zip hdf5-b1485cfdcff1963c15f98bea565f4737cb9ad397.tar.gz hdf5-b1485cfdcff1963c15f98bea565f4737cb9ad397.tar.bz2 |
[svn-r10077] Purpose:
New feature, refactor code
Description:
Add call to search for a record in a B-tree by key value
Refactored some of the existing callbacks to simplify them.
Platforms tested:
FreeBSD 4.11 (sleipnir)
Solaris 2.9 (shanti)
Diffstat (limited to 'src/H5B2test.c')
-rw-r--r-- | src/H5B2test.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/H5B2test.c b/src/H5B2test.c index 99690fc..ac45377 100644 --- a/src/H5B2test.c +++ b/src/H5B2test.c @@ -26,10 +26,8 @@ #include "H5B2pkg.h" /* B-trees */ /* Static Prototypes */ -static herr_t H5B2_test_store(const H5F_t *f, hid_t dxpl_id, const void *udata, - void *nrecord); -static herr_t H5B2_test_compare(const H5F_t *f, hid_t dxpl_id, const void *rec1, - const void *rec2); +static herr_t H5B2_test_store(const void *udata, void *nrecord); +static herr_t H5B2_test_compare(const void *rec1, const void *rec2); static herr_t H5B2_test_encode(const H5F_t *f, uint8_t *raw, const void *nrecord); static herr_t H5B2_test_decode(const H5F_t *f, const uint8_t *raw, @@ -66,7 +64,7 @@ const H5B2_class_t H5B2_TEST[1]={{ /* B-tree class information */ *------------------------------------------------------------------------- */ static herr_t -H5B2_test_store(const H5F_t UNUSED *f, hid_t UNUSED dxpl_id, const void *udata, void *nrecord) +H5B2_test_store(const void *udata, void *nrecord) { FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5B2_test_store) @@ -93,7 +91,7 @@ H5B2_test_store(const H5F_t UNUSED *f, hid_t UNUSED dxpl_id, const void *udata, *------------------------------------------------------------------------- */ static herr_t -H5B2_test_compare(const H5F_t UNUSED *f, hid_t UNUSED dxpl_id, const void *rec1, const void *rec2) +H5B2_test_compare(const void *rec1, const void *rec2) { FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5B2_test_compare) |