diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2009-03-31 19:24:31 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2009-03-31 19:24:31 (GMT) |
commit | 448e1b78ee37cc01f5f08e2e9c9528c7687c5318 (patch) | |
tree | 05f32e991c350565cff8c430c1ad4e243c3dad67 /src/H5EA.c | |
parent | 0d1d64ad87c42dd3c283c0598295260826e3d819 (diff) | |
download | hdf5-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.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 */ |