summaryrefslogtreecommitdiffstats
path: root/src/H5Bprivate.h
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1997-09-24 16:30:22 (GMT)
committerRobb Matzke <matzke@llnl.gov>1997-09-24 16:30:22 (GMT)
commit0f7fcaad25171bd5d4eb8f822d88b5770d9b235d (patch)
tree0e187af66ca6ec2036d56a882133008f46d78fb2 /src/H5Bprivate.h
parent8a4d8a5b0c7e473566ae9347ac228eaea0490875 (diff)
downloadhdf5-0f7fcaad25171bd5d4eb8f822d88b5770d9b235d.zip
hdf5-0f7fcaad25171bd5d4eb8f822d88b5770d9b235d.tar.gz
hdf5-0f7fcaad25171bd5d4eb8f822d88b5770d9b235d.tar.bz2
[svn-r111] Changed hdf5_file_t to H5F_t, split data struct ito two halves, fixed
problems when opening the same file more than once.
Diffstat (limited to 'src/H5Bprivate.h')
-rw-r--r--src/H5Bprivate.h31
1 files changed, 14 insertions, 17 deletions
diff --git a/src/H5Bprivate.h b/src/H5Bprivate.h
index f7c3e50..7814eeb 100644
--- a/src/H5Bprivate.h
+++ b/src/H5Bprivate.h
@@ -31,7 +31,7 @@
2*H5F_SIZEOF_OFFSET(F)) /*left and right sibling addresses */
#define H5B_K(F,TYPE) /*K value given file and Btree subclass */ \
- ((F)->file_create_parms.btree_k[(TYPE)->id])
+ ((F)->shared->file_create_parms.btree_k[(TYPE)->id])
#define H5B_ANCHOR_LT 0 /* left node is anchored, right is new */
#define H5B_ANCHOR_RT 1 /* right node is anchored, left is new */
@@ -51,15 +51,15 @@ typedef enum H5B_subid_t {
typedef struct H5B_class_t {
H5B_subid_t id; /*id as found in file */
size_t sizeof_nkey; /*size of native (memory) key */
- size_t (*get_sizeof_rkey)(hdf5_file_t*);
- haddr_t (*new)(hdf5_file_t*,void*,void*,void*);
- intn (*cmp)(hdf5_file_t*,void*,void*,void*);
- herr_t (*found)(hdf5_file_t*,haddr_t,const void*,void*,const void*);
- haddr_t (*insert)(hdf5_file_t*,haddr_t,int*,void*,hbool_t*,void*,void*,
+ size_t (*get_sizeof_rkey)(H5F_t*);
+ haddr_t (*new)(H5F_t*,void*,void*,void*);
+ intn (*cmp)(H5F_t*,void*,void*,void*);
+ herr_t (*found)(H5F_t*,haddr_t,const void*,void*,const void*);
+ haddr_t (*insert)(H5F_t*,haddr_t,int*,void*,hbool_t*,void*,void*,
void*,hbool_t*);
- herr_t (*list)(hdf5_file_t*,haddr_t,void*);
- herr_t (*decode)(hdf5_file_t*,uint8*,void*);
- herr_t (*encode)(hdf5_file_t*,uint8*,void*);
+ herr_t (*list)(H5F_t*,haddr_t,void*);
+ herr_t (*decode)(H5F_t*,uint8*,void*);
+ herr_t (*encode)(H5F_t*,uint8*,void*);
} H5B_class_t;
/*
@@ -90,15 +90,12 @@ typedef struct H5B_t {
/*
* Library prototypes.
*/
-herr_t H5B_debug (hdf5_file_t *f, haddr_t addr, FILE *stream, intn indent,
+herr_t H5B_debug (H5F_t *f, haddr_t addr, FILE *stream, intn indent,
intn fwidth, H5B_class_t *type);
-haddr_t H5B_new (hdf5_file_t *f, const H5B_class_t *type);
-herr_t H5B_find (hdf5_file_t *f, H5B_class_t *type, haddr_t addr,
- void *udata);
-haddr_t H5B_insert (hdf5_file_t *f, H5B_class_t *type, haddr_t addr,
- void *udata);
-herr_t H5B_list (hdf5_file_t *f, H5B_class_t *type, haddr_t addr,
- void *udata);
+haddr_t H5B_new (H5F_t *f, const H5B_class_t *type);
+herr_t H5B_find (H5F_t *f, H5B_class_t *type, haddr_t addr, void *udata);
+haddr_t H5B_insert (H5F_t *f, H5B_class_t *type, haddr_t addr, void *udata);
+herr_t H5B_list (H5F_t *f, H5B_class_t *type, haddr_t addr, void *udata);
#endif