summaryrefslogtreecommitdiffstats
path: root/src/H5EAprivate.h
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2009-01-27 22:43:58 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2009-01-27 22:43:58 (GMT)
commit05f1e4f778a3535135339293953d89cee8874854 (patch)
treecb2617bd90fdbdd010c4e143abdcbb112fae9012 /src/H5EAprivate.h
parentc7407a8ccbe548c765da063204114107b5bb566a (diff)
downloadhdf5-05f1e4f778a3535135339293953d89cee8874854.zip
hdf5-05f1e4f778a3535135339293953d89cee8874854.tar.gz
hdf5-05f1e4f778a3535135339293953d89cee8874854.tar.bz2
[svn-r16366] Description:
Add context pointer for extensible array client callbacks. Tested on: Mac OS X/32 (amazon) FreeBSD/32 (duty) (too minor to require full h5committest)
Diffstat (limited to 'src/H5EAprivate.h')
-rw-r--r--src/H5EAprivate.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/H5EAprivate.h b/src/H5EAprivate.h
index a1f3221..3b9ba4d 100644
--- a/src/H5EAprivate.h
+++ b/src/H5EAprivate.h
@@ -62,9 +62,11 @@ typedef struct H5EA_class_t {
size_t nat_elmt_size; /* Size of native (memory) element */
/* Extensible array client callback methods */
+ void *(*crt_context)(const H5F_t *f); /* Create context for other callbacks */
+ herr_t (*dst_context)(void *ctx); /* Destroy context */
herr_t (*fill)(void *nat_blk, size_t nelmts); /* Fill array of elements with encoded form of "missing element" value */
- herr_t (*encode)(void *raw, const void *elmt, size_t nelmts); /* Encode elements from native form to disk storage form */
- herr_t (*decode)(const void *raw, void *elmt, size_t nelmts); /* Decode elements from disk storage form to native form */
+ herr_t (*encode)(void *raw, const void *elmt, size_t nelmts, void *ctx); /* Encode elements from native form to disk storage form */
+ herr_t (*decode)(const void *raw, void *elmt, size_t nelmts, void *ctx); /* Decode elements from disk storage form to native form */
herr_t (*debug)(FILE *stream, int indent, int fwidth, hsize_t idx, const void *elmt); /* Print an element for debugging */
} H5EA_class_t;