summaryrefslogtreecommitdiffstats
path: root/src/H5Ocont.c
diff options
context:
space:
mode:
authorJames Laird <jlaird@hdfgroup.org>2006-11-13 20:41:36 (GMT)
committerJames Laird <jlaird@hdfgroup.org>2006-11-13 20:41:36 (GMT)
commitb6c317f27cd150aa7bfc4e9cf275629570c9a319 (patch)
tree3413a54aec3bbebb821088a473f6ff425c3d39be /src/H5Ocont.c
parent77c265f26746359cf348437702c93c162f7022f6 (diff)
downloadhdf5-b6c317f27cd150aa7bfc4e9cf275629570c9a319.zip
hdf5-b6c317f27cd150aa7bfc4e9cf275629570c9a319.tar.gz
hdf5-b6c317f27cd150aa7bfc4e9cf275629570c9a319.tar.bz2
[svn-r12902] Checkin of Shared Object Header Message work.
This feature is still in progress; Shared Object Header Messages are not complete as a feature and are not thoroughly tested. There are still "TODO" comments in the code (comments with the word "JAMES" in them, so as not to be confused with other TODO comments). Hopefully this checkin will reduce the liklihood of conflicts as I finish implementing this feature. All current tests pass on juniper, copper (parallel), heping, kagiso, and mir.
Diffstat (limited to 'src/H5Ocont.c')
-rw-r--r--src/H5Ocont.c55
1 files changed, 2 insertions, 53 deletions
diff --git a/src/H5Ocont.c b/src/H5Ocont.c
index b0966d3..eab8749 100644
--- a/src/H5Ocont.c
+++ b/src/H5Ocont.c
@@ -41,8 +41,6 @@ static herr_t H5O_cont_encode(H5F_t *f, uint8_t *p, const void *_mesg);
static size_t H5O_cont_size(const H5F_t *f, const void *_mesg);
static herr_t H5O_cont_free(void *mesg);
static herr_t H5O_cont_delete(H5F_t *f, hid_t dxpl_id, const void *_mesg, hbool_t adj_link);
-static void *H5O_cont_copy_file(H5F_t *file_src, void *mesg_src, H5F_t *file_dst,
- hid_t dxpl_id, H5O_copy_t *cpy_info, void *udata);
static herr_t H5O_cont_debug(H5F_t *f, hid_t dxpl_id, const void *_mesg, FILE * stream,
int indent, int fwidth);
@@ -61,8 +59,9 @@ const H5O_msg_class_t H5O_MSG_CONT[1] = {{
NULL, /* link method */
NULL, /*get share method */
NULL, /*set share method */
+ NULL, /*is shared method */
NULL, /* pre copy native value to file */
- H5O_cont_copy_file, /* copy native value to file */
+ NULL, /* copy native value to file */
NULL, /* post copy native value to file */
H5O_cont_debug /*debugging */
}};
@@ -249,56 +248,6 @@ done:
/*-------------------------------------------------------------------------
- * Function: H5O_cont_copy_file
- *
- * Purpose: Copies a continuation block message from _MESG to _DEST in file
- *
- * Return: Success: Ptr to _DEST
- *
- * Failure: NULL
- *
- * Programmer: Peter Cao
- * September 22, 2005
- *
- *-------------------------------------------------------------------------
- */
-static void *
-H5O_cont_copy_file(H5F_t UNUSED *file_src, void *mesg_src, H5F_t UNUSED *file_dst,
- hid_t UNUSED dxpl_id, H5O_copy_t UNUSED *cpy_info, void *udata)
-{
- H5O_cont_t *cont_src = (H5O_cont_t *)mesg_src;
- H5O_chunk_t *chunk = (H5O_chunk_t *)udata;
- H5O_cont_t *cont_dst = NULL;
- void *ret_value; /* Return value */
-
- FUNC_ENTER_NOAPI_NOINIT(H5O_cont_copy_file)
-
- /* check args */
- HDassert(cont_src);
-
- /* Allocate space for the destination cont */
- if(NULL == (cont_dst = H5FL_MALLOC(H5O_cont_t)))
- HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed")
-
- /* Shallow copy all the fields */
- *cont_dst = *cont_src;
-
- /* Update the destination address to point to correct address in dest. file */
- cont_dst->addr = chunk[cont_src->chunkno].addr;
-
- /* Set return value */
- ret_value = cont_dst;
-
-done:
- if(!ret_value)
- if(cont_dst)
- H5FL_FREE(H5O_cont_t, cont_dst);
-
- FUNC_LEAVE_NOAPI(ret_value)
-} /* end H5O_cont_copy_file() */
-
-
-/*-------------------------------------------------------------------------
* Function: H5O_cont_debug
*
* Purpose: Prints debugging info.