summaryrefslogtreecommitdiffstats
path: root/src/H5Fpublic.h
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1998-10-16 15:40:37 (GMT)
committerRobb Matzke <matzke@llnl.gov>1998-10-16 15:40:37 (GMT)
commit80f20333264434b449ba014161899a6d7b522b98 (patch)
tree0188b179ec625f3aeea1ee349e7dc53b1598c283 /src/H5Fpublic.h
parent194c45d07d5fd876e6ada1e27148035f223a0e29 (diff)
downloadhdf5-80f20333264434b449ba014161899a6d7b522b98.zip
hdf5-80f20333264434b449ba014161899a6d7b522b98.tar.gz
hdf5-80f20333264434b449ba014161899a6d7b522b98.tar.bz2
[svn-r764] Changes since 19981014
---------------------- ./bin/trace ./src/H5.c ./src/H5F.c ./src/H5Fprivate.h ./src/H5Fpublic.h Added a `scope' argument to H5Fflush() which should be either H5F_SCOPE_LOCAL or H5F_SCOPE_GLOBAL and determines which files are flushed (just the specified file or the entire virtual file). ./src/H5F.c Added reference counts to the H5F_t struct so we get the correct behavior between H5Funmount() and H5Fclose(). ./src/H5O.c Fixed a memory leak that happens during error handling. ./test/cmpd_dset.c ./test/unlink.c Fixed a memory leak. ./test/mount.c Enabled the H5Fclose() test.
Diffstat (limited to 'src/H5Fpublic.h')
-rw-r--r--src/H5Fpublic.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/H5Fpublic.h b/src/H5Fpublic.h
index 319eeeb..6a81d52 100644
--- a/src/H5Fpublic.h
+++ b/src/H5Fpublic.h
@@ -69,6 +69,12 @@ typedef enum H5F_driver_t {
H5F_LOW_FAMILY = 5 /*split addr space over many files */
} H5F_driver_t;
+typedef enum H5F_scope_t {
+ H5F_SCOPE_LOCAL = 0, /*specified file handle only */
+ H5F_SCOPE_GLOBAL = 1, /*entire virtual file */
+ H5F_SCOPE_DOWN = 2 /*for internal use only */
+} H5F_scope_t;
+
/* Unlimited file size for H5Pset_external() */
#define H5F_UNLIMITED ((hsize_t)(-1L))
@@ -81,7 +87,7 @@ hbool_t H5Fis_hdf5 (const char *filename);
hid_t H5Fcreate (const char *filename, unsigned flags, hid_t create_plist,
hid_t access_plist);
hid_t H5Fopen (const char *filename, unsigned flags, hid_t access_plist);
-herr_t H5Fflush(hid_t object_id);
+herr_t H5Fflush(hid_t object_id, H5F_scope_t scope);
herr_t H5Fclose (hid_t file_id);
hid_t H5Fget_create_plist (hid_t file_id);
hid_t H5Fget_access_plist (hid_t file_id);