summaryrefslogtreecommitdiffstats
path: root/src/H5EA.c
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/H5EA.c
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/H5EA.c')
-rw-r--r--src/H5EA.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/H5EA.c b/src/H5EA.c
index 85ae821..e35738d 100644
--- a/src/H5EA.c
+++ b/src/H5EA.c
@@ -110,7 +110,7 @@ H5FL_DEFINE_STATIC(H5EA_t);
*/
BEGIN_FUNC(PRIV, ERR,
H5EA_t *, NULL, NULL,
-H5EA_create(H5F_t *f, hid_t dxpl_id, const H5EA_create_t *cparam))
+H5EA_create(H5F_t *f, hid_t dxpl_id, const H5EA_create_t *cparam, void *ctx_udata))
/* Local variables */
H5EA_t *ea = NULL; /* Pointer to new extensible array */
@@ -128,7 +128,7 @@ HDfprintf(stderr, "%s: Called\n", FUNC);
HDassert(cparam);
/* Create extensible array header */
- if(HADDR_UNDEF == (ea_addr = H5EA__hdr_create(f, dxpl_id, cparam)))
+ if(HADDR_UNDEF == (ea_addr = H5EA__hdr_create(f, dxpl_id, cparam, ctx_udata)))
H5E_THROW(H5E_CANTINIT, "can't create extensible array header")
/* Allocate extensible array wrapper */
@@ -181,7 +181,8 @@ END_FUNC(PRIV) /* end H5EA_create() */
*/
BEGIN_FUNC(PRIV, ERR,
H5EA_t *, NULL, NULL,
-H5EA_open(H5F_t *f, hid_t dxpl_id, haddr_t ea_addr, const H5EA_class_t *cls))
+H5EA_open(H5F_t *f, hid_t dxpl_id, haddr_t ea_addr, const H5EA_class_t *cls,
+ void *ctx_udata))
/* Local variables */
H5EA_t *ea = NULL; /* Pointer to new extensible array wrapper */
@@ -198,7 +199,7 @@ H5EA_open(H5F_t *f, hid_t dxpl_id, haddr_t ea_addr, const H5EA_class_t *cls))
#ifdef QAK
HDfprintf(stderr, "%s: ea_addr = %a\n", FUNC, ea_addr);
#endif /* QAK */
- if(NULL == (hdr = (H5EA_hdr_t *)H5AC_protect(f, dxpl_id, H5AC_EARRAY_HDR, ea_addr, cls, NULL, H5AC_READ)))
+ if(NULL == (hdr = (H5EA_hdr_t *)H5AC_protect(f, dxpl_id, H5AC_EARRAY_HDR, ea_addr, cls, ctx_udata, H5AC_READ)))
H5E_THROW(H5E_CANTPROTECT, "unable to load extensible array header, address = %llu", (unsigned long long)ea_addr)
/* Check for pending array deletion */