summaryrefslogtreecommitdiffstats
path: root/src/H5Cprivate.h
diff options
context:
space:
mode:
authorVailin Choi <vchoi@hdfgroup.org>2014-01-29 22:54:07 (GMT)
committerVailin Choi <vchoi@hdfgroup.org>2014-01-29 22:54:07 (GMT)
commit3d7d7f3f24384dc38c54e51c9033ce07ee4e5152 (patch)
tree823127dc6675e9267f6eff76c4a97d3ce8152db9 /src/H5Cprivate.h
parente1d277b660e0fc572fb768fc954316bc9170a4dd (diff)
downloadhdf5-3d7d7f3f24384dc38c54e51c9033ce07ee4e5152.zip
hdf5-3d7d7f3f24384dc38c54e51c9033ce07ee4e5152.tar.gz
hdf5-3d7d7f3f24384dc38c54e51c9033ce07ee4e5152.tar.bz2
[svn-r24663] Implementation for H5Ocork, H5Ouncork, H5Ois_corked public routines.
Tested on jam, koala, ostrich, platypus. PENDING: (1) Code review. (2) More work on tests, comments, cache related work.
Diffstat (limited to 'src/H5Cprivate.h')
-rw-r--r--src/H5Cprivate.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/H5Cprivate.h b/src/H5Cprivate.h
index 581e89d..3ee74ea 100644
--- a/src/H5Cprivate.h
+++ b/src/H5Cprivate.h
@@ -141,6 +141,12 @@ typedef enum {
#define H5C_CALLBACK__SIZE_CHANGED_FLAG 0x1
#define H5C_CALLBACK__MOVED_FLAG 0x2
+/* Cork actions: cork/uncork/get cork status of an object */
+#define H5C__SET_CORK 0x1
+#define H5C__UNCORK 0x2
+#define H5C__GET_CORKED 0x4
+
+
/* Actions that can be reported to 'notify' client callback */
typedef enum H5C_notify_action_t {
H5C_NOTIFY_ACTION_AFTER_INSERT, /* Entry has been added to the cache */
@@ -275,6 +281,9 @@ typedef herr_t (*H5C_log_flush_func_t)(H5C_t * cache_ptr,
* The name is not particularly descriptive, but is retained
* to avoid changes in existing code.
*
+ * is_corked: Boolean flag indicating whether the cache entry associated
+ * with an object is corked or not corked.
+ *
* is_dirty: Boolean flag indicating whether the contents of the cache
* entry has been modified since the last time it was written
* to disk.
@@ -600,6 +609,7 @@ typedef struct H5C_cache_entry_t
const H5C_class_t * type;
haddr_t tag;
int globality;
+ hbool_t is_corked;
hbool_t is_dirty;
hbool_t dirtied;
hbool_t is_protected;
@@ -1243,5 +1253,7 @@ H5_DLL herr_t H5C_ignore_tags(H5C_t * cache_ptr);
H5_DLL void H5C_retag_entries(H5C_t * cache_ptr, haddr_t src_tag, haddr_t dest_tag);
+H5_DLL herr_t H5C_cork(H5C_t *cache_ptr, haddr_t obj_addr, unsigned action, hbool_t *corked);
+
#endif /* !_H5Cprivate_H */