summaryrefslogtreecommitdiffstats
path: root/src/H5Opkg.h
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2006-11-17 20:12:28 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2006-11-17 20:12:28 (GMT)
commitb2acbc56c61fb388183ca13e8f54bd8ab3dc2899 (patch)
treebfa0dc5d9f61b29dc8d9a0d7d3ee6b19f12710d0 /src/H5Opkg.h
parentd6d549e5bfa37e599255766f3add2accc367548d (diff)
downloadhdf5-b2acbc56c61fb388183ca13e8f54bd8ab3dc2899.zip
hdf5-b2acbc56c61fb388183ca13e8f54bd8ab3dc2899.tar.gz
hdf5-b2acbc56c61fb388183ca13e8f54bd8ab3dc2899.tar.bz2
[svn-r12938] Description:
Add src/H5Oalloc.c file forgotten in previous object header checkin Break out more object header routines into separate file (debugging routines this time). Fix "//" style comment in recent ISOHM source changes. Fix 'size_t' vs. 'unsigned' problem (visible in 64-bit testing) in recent ISOHM test changes. Tested on: FreeBSD/32 4.11 (sleipnir) Linux/32 2.4 (heping) Linux/64 2.4 (mir)
Diffstat (limited to 'src/H5Opkg.h')
-rw-r--r--src/H5Opkg.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/H5Opkg.h b/src/H5Opkg.h
index 1f50eeb..074c902 100644
--- a/src/H5Opkg.h
+++ b/src/H5Opkg.h
@@ -28,6 +28,7 @@
/* Object header macros */
#define H5O_NMESGS 8 /*initial number of messages */
#define H5O_NCHUNKS 2 /*initial number of chunks */
+#define H5O_MIN_SIZE 32 /*min obj header data size */
/* Versions of object header structure */
@@ -341,12 +342,23 @@ H5_DLLVAR const H5O_obj_class_t H5O_OBJ_DATATYPE[1];
H5_DLL herr_t H5O_flush_msgs(H5F_t *f, H5O_t *oh);
H5_DLL void * H5O_read_real(const H5O_loc_t *loc, const H5O_msg_class_t *type,
int sequence, void *mesg, hid_t dxpl_id);
+H5_DLL herr_t H5O_delete_mesg(H5F_t *f, hid_t dxpl_id, H5O_mesg_t *mesg,
+ hbool_t adj_link);
H5_DLL herr_t H5O_free_mesg(H5O_mesg_t *mesg);
H5_DLL void * H5O_free_real(const H5O_msg_class_t *type, void *mesg);
H5_DLL void * H5O_copy_mesg_file(const H5O_msg_class_t *copy_type,
const H5O_msg_class_t *mesg_type, H5F_t *file_src, void *mesg_src,
H5F_t *file_dst, hid_t dxpl_id, H5O_copy_t *cpy_info, void *udata);
H5_DLL const H5O_obj_class_t *H5O_obj_class_real(H5O_t *oh);
+
+/* Object header allocation routines */
+H5_DLL unsigned H5O_alloc(H5F_t *f, hid_t dxpl_id, H5O_t *oh,
+ const H5O_msg_class_t *type, size_t size, hbool_t * oh_dirtied_ptr);
+H5_DLL herr_t H5O_condense_header(H5F_t *f, H5O_t *oh, hid_t dxpl_id);
+H5_DLL herr_t H5O_release_mesg(H5F_t *f, hid_t dxpl_id, H5O_t *oh,
+ H5O_mesg_t *mesg, hbool_t delete_mesg, hbool_t adj_link);
+
+/* Object header debugging routines */
#ifdef H5O_DEBUG
H5_DLL herr_t H5O_assert(const H5O_t *oh);
#endif /* H5O_DEBUG */