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/H5EAhdr.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/H5EAhdr.c')
-rw-r--r-- | src/H5EAhdr.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/H5EAhdr.c b/src/H5EAhdr.c index 0a7ddef..1e01601 100644 --- a/src/H5EAhdr.c +++ b/src/H5EAhdr.c @@ -116,7 +116,7 @@ H5FL_SEQ_DEFINE_STATIC(H5EA_sblk_info_t); */ BEGIN_FUNC(PKG, ERR, H5EA_hdr_t *, NULL, NULL, -H5EA__hdr_alloc(H5F_t *f, const H5EA_class_t *cls)) +H5EA__hdr_alloc(H5F_t *f, const H5EA_class_t *cls, void *udata)) /* Local variables */ H5EA_hdr_t *hdr = NULL; /* Shared extensible array header */ @@ -141,7 +141,7 @@ H5EA__hdr_alloc(H5F_t *f, const H5EA_class_t *cls)) hdr->cparam.cls = cls; /* Create the callback context */ - if(NULL == (hdr->cb_ctx = (*cls->crt_context)(f))) + if(NULL == (hdr->cb_ctx = (*cls->crt_context)(udata))) H5E_THROW(H5E_CANTCREATE, "unable to create extensible array client callback context") /* Set the return value */ @@ -368,7 +368,8 @@ END_FUNC(PKG) /* end H5EA__hdr_free_elmts() */ */ BEGIN_FUNC(PKG, ERR, haddr_t, HADDR_UNDEF, HADDR_UNDEF, -H5EA__hdr_create(H5F_t *f, hid_t dxpl_id, const H5EA_create_t *cparam)) +H5EA__hdr_create(H5F_t *f, hid_t dxpl_id, const H5EA_create_t *cparam, + void *ctx_udata)) /* Local variables */ H5EA_hdr_t *hdr = NULL; /* Extensible array header */ @@ -416,7 +417,7 @@ HDfprintf(stderr, "%s: Called\n", FUNC); #endif /* NDEBUG */ /* Allocate space for the shared information */ - if(NULL == (hdr = H5EA__hdr_alloc(f, cparam->cls))) + if(NULL == (hdr = H5EA__hdr_alloc(f, cparam->cls, ctx_udata))) H5E_THROW(H5E_CANTALLOC, "memory allocation failed for extensible array shared header") /* Set the internal parameters for the array */ |