Source
29
29
#include "H5private.h" /* Generic Functions */
30
30
#include "H5Eprivate.h" /* Error handling */
31
31
#include "H5FLprivate.h" /* Free lists */
32
32
#include "H5Gpkg.h" /* Groups */
33
33
#include "H5Lpkg.h" /* Links */
34
34
#include "H5Opkg.h" /* Object headers */
35
35
36
36
37
37
/* PRIVATE PROTOTYPES */
38
38
static void *H5O_linfo_decode(H5F_t *f, hid_t dxpl_id, H5O_t *open_oh,
39
-
unsigned mesg_flags, unsigned *ioflags, const uint8_t *p);
39
+
unsigned mesg_flags, unsigned *ioflags, size_t p_size, const uint8_t *p);
40
40
static herr_t H5O_linfo_encode(H5F_t *f, hbool_t disable_shared, uint8_t *p, const void *_mesg);
41
41
static void *H5O_linfo_copy(const void *_mesg, void *_dest);
42
42
static size_t H5O_linfo_size(const H5F_t *f, hbool_t disable_shared, const void *_mesg);
43
43
static herr_t H5O_linfo_free(void *_mesg);
44
44
static herr_t H5O_linfo_delete(H5F_t *f, hid_t dxpl_id, H5O_t *open_oh,
45
45
void *_mesg);
46
46
static void *H5O_linfo_copy_file(H5F_t *file_src, void *native_src,
47
47
H5F_t *file_dst, hbool_t *recompute_size, unsigned *mesg_flags,
48
48
H5O_copy_t *cpy_info, void *udata, hid_t dxpl_id);
49
49
static herr_t H5O_linfo_post_copy_file(const H5O_loc_t *parent_src_oloc,
106
106
* Failure: NULL
107
107
*
108
108
* Programmer: Quincey Koziol
109
109
* koziol@ncsa.uiuc.edu
110
110
* Aug 23 2005
111
111
*
112
112
*-------------------------------------------------------------------------
113
113
*/
114
114
static void *
115
115
H5O_linfo_decode(H5F_t *f, hid_t H5_ATTR_UNUSED dxpl_id, H5O_t H5_ATTR_UNUSED *open_oh,
116
-
unsigned H5_ATTR_UNUSED mesg_flags, unsigned H5_ATTR_UNUSED *ioflags, const uint8_t *p)
116
+
unsigned H5_ATTR_UNUSED mesg_flags, unsigned H5_ATTR_UNUSED *ioflags,
117
+
size_t H5_ATTR_UNUSED p_size, const uint8_t *p)
117
118
{
118
119
H5O_linfo_t *linfo = NULL; /* Link info */
119
120
unsigned char index_flags; /* Flags for encoding link index info */
120
121
void *ret_value; /* Return value */
121
122
122
123
FUNC_ENTER_NOAPI_NOINIT
123
124
124
125
/* check args */
125
126
HDassert(f);
126
127
HDassert(p);