summaryrefslogtreecommitdiffstats
path: root/src/H5B2pkg.h
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2006-02-27 03:30:22 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2006-02-27 03:30:22 (GMT)
commit3e8948df52ce165edd3238a7e2ae3b047eac7836 (patch)
tree26cca419d73ec343bc6fefc3851949e60b07bebb /src/H5B2pkg.h
parentb2d288804d3f17e824383436d038976c159d0eda (diff)
downloadhdf5-3e8948df52ce165edd3238a7e2ae3b047eac7836.zip
hdf5-3e8948df52ce165edd3238a7e2ae3b047eac7836.tar.gz
hdf5-3e8948df52ce165edd3238a7e2ae3b047eac7836.tar.bz2
[svn-r11966] Purpose:
Code cleanup Description: Style fixes for consistency & other minor cleanups Platforms tested: FreeBSD 4.11 (sleipnir) Mac OSX (amazon) Linux 2.4
Diffstat (limited to 'src/H5B2pkg.h')
-rw-r--r--src/H5B2pkg.h31
1 files changed, 19 insertions, 12 deletions
diff --git a/src/H5B2pkg.h b/src/H5B2pkg.h
index b49ed45..4abf5aa 100644
--- a/src/H5B2pkg.h
+++ b/src/H5B2pkg.h
@@ -55,15 +55,15 @@
/* Size of the B-tree header on disk */
#define H5B2_HEADER_SIZE(f) ( \
- 4 + /* Signature */ \
- 1 + /* Version */ \
- 1 + /* Tree type */ \
- 4 + /* Node size, in bytes */ \
- 2 + /* Key size, in bytes */ \
- 2 + /* Depth of tree */ \
- 2 + /* Split % of full (as integer, ie. "98" means 98%) */ \
- 2 + /* Merge % of full (as integer, ie. "98" means 98%) */ \
- H5B2_NODE_POINTER_SIZE(f)) /* Node pointer to root node in tree */
+ 4 /* Signature */ \
+ + 1 /* Version */ \
+ + 1 /* Tree type */ \
+ + 4 /* Node size, in bytes */ \
+ + 2 /* Key size, in bytes */ \
+ + 2 /* Depth of tree */ \
+ + 2 /* Split % of full (as integer, ie. "98" means 98%) */ \
+ + 2 /* Merge % of full (as integer, ie. "98" means 98%) */ \
+ + H5B2_NODE_POINTER_SIZE(f)) /* Node pointer to root node in tree */
/* Macro to retrieve pointer to i'th native record for native record buffer */
#define H5B2_NAT_NREC(b,shared,idx) (b+(shared)->nat_off[(idx)])
@@ -179,12 +179,17 @@ H5_DLLVAR const H5B2_class_t H5B2_TEST[1];
/******************************/
/* Package Private Prototypes */
/******************************/
-H5_DLL herr_t H5B2_shared_free (void *_shared);
-H5_DLL herr_t H5B2_shared_init (H5F_t *f, H5B2_t *bt2, const H5B2_class_t *type,
+
+/* Routines for managing shared B-tree info */
+H5_DLL herr_t H5B2_shared_init(H5F_t *f, H5B2_t *bt2, const H5B2_class_t *type,
size_t node_size, size_t rrec_size, unsigned split_percent, unsigned merge_percent);
+
+/* Metadata cache callbacks */
H5_DLL herr_t H5B2_cache_hdr_dest(H5F_t *f, H5B2_t *b);
H5_DLL herr_t H5B2_cache_leaf_dest(H5F_t *f, H5B2_leaf_t *l);
H5_DLL herr_t H5B2_cache_internal_dest(H5F_t *f, H5B2_internal_t *i);
+
+/* Debugging routines for dumping file structures */
H5_DLL herr_t H5B2_hdr_debug(H5F_t *f, hid_t dxpl_id, haddr_t addr,
FILE *stream, int indent, int fwidth, const H5B2_class_t *type);
H5_DLL herr_t H5B2_int_debug(H5F_t *f, hid_t dxpl_id, haddr_t addr,
@@ -193,8 +198,10 @@ H5_DLL herr_t H5B2_int_debug(H5F_t *f, hid_t dxpl_id, haddr_t addr,
H5_DLL herr_t H5B2_leaf_debug(H5F_t *f, hid_t dxpl_id, haddr_t addr,
FILE *stream, int indent, int fwidth, const H5B2_class_t *type,
haddr_t hdr_addr, unsigned nrec);
+
+/* Testing routines */
#ifdef H5B2_TESTING
-H5_DLL herr_t H5B2_get_root_addr(H5F_t *f, hid_t dxpl_id,
+H5_DLL herr_t H5B2_get_root_addr_test(H5F_t *f, hid_t dxpl_id,
const H5B2_class_t *type, haddr_t addr, haddr_t *root_addr);
#endif /* H5B2_TESTING */