Source
30
30
31
31
#include "H5private.h" /* Generic Functions */
32
32
#include "H5Eprivate.h" /* Error handling */
33
33
#include "H5MMprivate.h" /* Memory management */
34
34
#include "H5Opkg.h" /* Object headers */
35
35
36
36
#ifdef H5O_ENABLE_BOGUS
37
37
38
38
/* PRIVATE PROTOTYPES */
39
39
static void *H5O_bogus_decode(H5F_t *f, hid_t dxpl_id, H5O_t *open_oh,
40
-
unsigned mesg_flags, unsigned *ioflags, const uint8_t *p);
40
+
unsigned mesg_flags, unsigned *ioflags, size_t p_size, const uint8_t *p);
41
41
static herr_t H5O_bogus_encode(H5F_t *f, hbool_t disable_shared, uint8_t *p, const void *_mesg);
42
42
static size_t H5O_bogus_size(const H5F_t *f, hbool_t disable_shared, const void *_mesg);
43
43
static herr_t H5O_bogus_debug(H5F_t *f, hid_t dxpl_id, const void *_mesg, FILE * stream,
44
44
int indent, int fwidth);
45
45
46
46
/* This message derives from H5O message class */
47
47
const H5O_msg_class_t H5O_MSG_BOGUS_VALID[1] = {{
48
48
H5O_BOGUS_VALID_ID, /*message id number */
49
49
"bogus valid", /*message name for debugging */
50
50
0, /*native message size */
103
103
* Failure: NULL
104
104
*
105
105
* Programmer: Quincey Koziol
106
106
* koziol@ncsa.uiuc.edu
107
107
* Jan 21 2003
108
108
*
109
109
*-------------------------------------------------------------------------
110
110
*/
111
111
static void *
112
112
H5O_bogus_decode(H5F_t *f, hid_t H5_ATTR_UNUSED dxpl_id, H5O_t H5_ATTR_UNUSED *open_oh,
113
-
unsigned H5_ATTR_UNUSED mesg_flags, unsigned H5_ATTR_UNUSED *ioflags, const uint8_t *p)
113
+
unsigned H5_ATTR_UNUSED mesg_flags, unsigned H5_ATTR_UNUSED *ioflags,
114
+
size_t H5_ATTR_UNUSED p_size, const uint8_t *p)
114
115
{
115
116
H5O_bogus_t *mesg = NULL;
116
117
void *ret_value; /* Return value */
117
118
118
119
FUNC_ENTER_NOAPI_NOINIT
119
120
120
121
/* check args */
121
122
HDassert(f);
122
123
HDassert(p);
123
124