summaryrefslogtreecommitdiffstats
path: root/src/H5ACprivate.h
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1997-08-01 16:51:29 (GMT)
committerRobb Matzke <matzke@llnl.gov>1997-08-01 16:51:29 (GMT)
commitfc4bcbc21f9a530aa03e1525516507de2c8dadb5 (patch)
tree0d79d7649f3c58b67d8d0a0cfeff64b50bdcb79f /src/H5ACprivate.h
parent3ecc8c71b5f8e546f608f5d15f272c98fd593f61 (diff)
downloadhdf5-fc4bcbc21f9a530aa03e1525516507de2c8dadb5.zip
hdf5-fc4bcbc21f9a530aa03e1525516507de2c8dadb5.tar.gz
hdf5-fc4bcbc21f9a530aa03e1525516507de2c8dadb5.tar.bz2
[svn-r4] Changed SIZEOF_OFFSET and SIZEOF_SIZE to H5F_SIZEOF_OFFSET and
H5F_SIZEOF_SIZE. Modified files to use these instead of accessing the hdf5_file_t struct directly. Changed address return values from H5B to -1 for error. Changed off_t to haddr_t for anything that's a file address.
Diffstat (limited to 'src/H5ACprivate.h')
-rw-r--r--src/H5ACprivate.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/H5ACprivate.h b/src/H5ACprivate.h
index 5dce2cd..9d10f19 100644
--- a/src/H5ACprivate.h
+++ b/src/H5ACprivate.h
@@ -37,8 +37,9 @@
* by the LOAD method if the DEST argument is non-zero.
*/
typedef struct H5AC_class_t {
- void *(*load)(hdf5_file_t*, off_t addr, const void *udata);
- herr_t (*flush)(hdf5_file_t*, hbool_t dest, off_t addr, void *thing);
+ void *(*load)(hdf5_file_t*, haddr_t addr, const void *udata);
+ herr_t (*flush)(hdf5_file_t*, hbool_t dest, haddr_t addr,
+ void *thing);
} H5AC_class_t;
/*
@@ -50,7 +51,7 @@ typedef struct H5AC_class_t {
typedef struct H5AC_cache_t {
const H5AC_class_t *type; /*type of object stored here */
- off_t addr; /*file address for object */
+ haddr_t addr; /*file address for object */
void *thing; /*the thing which is cached */
} H5AC_cache_t;
@@ -58,14 +59,14 @@ typedef struct H5AC_cache_t {
* Library prototypes.
*/
herr_t H5AC_dest (hdf5_file_t *f);
-void *H5AC_find (hdf5_file_t *f, const H5AC_class_t *type, off_t addr,
+void *H5AC_find (hdf5_file_t *f, const H5AC_class_t *type, haddr_t addr,
const void *udata);
-herr_t H5AC_flush (hdf5_file_t *f, const H5AC_class_t *type, off_t addr,
+herr_t H5AC_flush (hdf5_file_t *f, const H5AC_class_t *type, haddr_t addr,
hbool_t destroy);
herr_t H5AC_new (hdf5_file_t *f);
herr_t H5AC_rename (hdf5_file_t *f, const H5AC_class_t *type,
- off_t old, off_t new);
-herr_t H5AC_set (hdf5_file_t *f, const H5AC_class_t *type, off_t addr,
+ haddr_t old, haddr_t new);
+herr_t H5AC_set (hdf5_file_t *f, const H5AC_class_t *type, haddr_t addr,
void *thing);
#endif /* !_H5ACprivate_H */