summaryrefslogtreecommitdiffstats
path: root/src/H5EAprivate.h
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2009-03-31 19:24:31 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2009-03-31 19:24:31 (GMT)
commit448e1b78ee37cc01f5f08e2e9c9528c7687c5318 (patch)
tree05f32e991c350565cff8c430c1ad4e243c3dad67 /src/H5EAprivate.h
parent0d1d64ad87c42dd3c283c0598295260826e3d819 (diff)
downloadhdf5-448e1b78ee37cc01f5f08e2e9c9528c7687c5318.zip
hdf5-448e1b78ee37cc01f5f08e2e9c9528c7687c5318.tar.gz
hdf5-448e1b78ee37cc01f5f08e2e9c9528c7687c5318.tar.bz2
[svn-r16636] Description:
Pass some user data down into the extensible array client context creation callback. Tested on: FreeBSD/32 6.3 (duty) Too minor to require h5committest
Diffstat (limited to 'src/H5EAprivate.h')
-rw-r--r--src/H5EAprivate.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/H5EAprivate.h b/src/H5EAprivate.h
index 9e3fa48..f525a01 100644
--- a/src/H5EAprivate.h
+++ b/src/H5EAprivate.h
@@ -62,7 +62,7 @@ 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 */
+ void *(*crt_context)(void *udata); /* 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, void *ctx); /* Encode elements from native form to disk storage form */
@@ -118,9 +118,10 @@ typedef struct H5EA_t H5EA_t;
/***************************************/
/* General routines */
-H5_DLL H5EA_t *H5EA_create(H5F_t *f, hid_t dxpl_id, const H5EA_create_t *cparam);
+H5_DLL H5EA_t *H5EA_create(H5F_t *f, hid_t dxpl_id, const H5EA_create_t *cparam,
+ void *ctx_udata);
H5_DLL H5EA_t *H5EA_open(H5F_t *f, hid_t dxpl_id, haddr_t ea_addr,
- const H5EA_class_t *cls);
+ const H5EA_class_t *cls, void *ctx_udata);
H5_DLL herr_t H5EA_get_nelmts(const H5EA_t *ea, hsize_t *nelmts);
H5_DLL herr_t H5EA_get_addr(const H5EA_t *ea, haddr_t *addr);
H5_DLL herr_t H5EA_set(const H5EA_t *ea, hid_t dxpl_id, hsize_t idx, const void *elmt);