diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2006-02-27 14:52:21 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2006-02-27 14:52:21 (GMT) |
commit | 658bf4a8fb16cd3334b3fbfa2628226ffc20931f (patch) | |
tree | fea930220af70816b8ee849a24bb0c0e47c3acb9 /src/H5HFtest.c | |
parent | 3713db1174ff83154ff63f93b4ba512eebed9748 (diff) | |
download | hdf5-658bf4a8fb16cd3334b3fbfa2628226ffc20931f.zip hdf5-658bf4a8fb16cd3334b3fbfa2628226ffc20931f.tar.gz hdf5-658bf4a8fb16cd3334b3fbfa2628226ffc20931f.tar.bz2 |
[svn-r11968] Purpose:
Incrementtal checkin
Description:
Revise & update v2 B-tree code to separate the internal package-specific
routines from the library-callable "private" routines.
Similar updates for the fractal heap code.
Platforms tested:
FreeBSD 4.11 (sleipnir)
Mac OSX (amazon)
Diffstat (limited to 'src/H5HFtest.c')
-rw-r--r-- | src/H5HFtest.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/H5HFtest.c b/src/H5HFtest.c index e9a3eeb..ef14b2b 100644 --- a/src/H5HFtest.c +++ b/src/H5HFtest.c @@ -64,9 +64,9 @@ /*------------------------------------------------------------------------- - * Function: H5HF_get_addrmap_test + * Function: H5HF_get_cparam_test * - * Purpose: Retrieve the address mapping type + * Purpose: Retrieve the parameters used to create the fractal heap * * Return: Success: non-negative * @@ -78,18 +78,18 @@ *------------------------------------------------------------------------- */ herr_t -H5HF_get_addrmap_test(H5F_t *f, hid_t dxpl_id, haddr_t fh_addr, H5HF_type_t *heap_type) +H5HF_get_cparam_test(H5F_t *f, hid_t dxpl_id, haddr_t fh_addr, H5HF_create_t *cparam) { H5HF_t *fh = NULL; /* Pointer to the B-tree header */ H5HF_shared_t *shared; /* Shared fractal heap information */ herr_t ret_value = SUCCEED; /* Return value */ - FUNC_ENTER_NOAPI_NOINIT(H5HF_get_addrmap_test) + FUNC_ENTER_NOAPI_NOINIT(H5HF_get_cparam_test) /* Check arguments. */ HDassert(f); HDassert(H5F_addr_defined(fh_addr)); - HDassert(heap_type); + HDassert(cparam); /* Look up the fractal heap header */ if(NULL == (fh = H5AC_protect(f, dxpl_id, H5AC_FHEAP_HDR, fh_addr, NULL, NULL, H5AC_READ))) @@ -99,8 +99,10 @@ H5HF_get_addrmap_test(H5F_t *f, hid_t dxpl_id, haddr_t fh_addr, H5HF_type_t *hea shared = H5RC_GET_OBJ(fh->shared); HDassert(shared); - /* Get fractal heap address mapping */ - *heap_type = shared->type; + /* Get fractal heap creation parameters */ + cparam->addrmap = shared->addrmap; + cparam->standalone_size = shared->standalone_size; + cparam->fixed_len_size = shared->fixed_len_size; done: /* Release fractal heap header node */ @@ -108,5 +110,5 @@ done: HDONE_ERROR(H5E_HEAP, H5E_CANTUNPROTECT, FAIL, "unable to release fractal heap header info") FUNC_LEAVE_NOAPI(ret_value) -} /* H5HF_get_addrmap_test() */ +} /* H5HF_get_cparam_test() */ |