20
20
 
 */
21
21
 
22
22
 
#define H5O_PACKAGE     /*suppress error about including H5Opkg   */
23
23
 
24
24
 
#include "H5private.h"      /* Generic Functions            */
25
25
 
#include "H5Eprivate.h"     /* Error handling           */
26
26
 
#include "H5Opkg.h"             /* Object headers           */
27
27
 
#include "H5MMprivate.h"    /* Memory management            */
28
28
 
29
29
 
static void  *H5O_drvinfo_decode(H5F_t *f, hid_t dxpl_id, H5O_t *open_oh,
30
 
-
    unsigned mesg_flags, unsigned *ioflags, const uint8_t *p);
 
30
+
    unsigned mesg_flags, unsigned *ioflags, size_t p_size, const uint8_t *p);
31
31
 
static herr_t H5O_drvinfo_encode(H5F_t *f, hbool_t disable_shared, uint8_t *p, const void *_mesg);
32
32
 
static void  *H5O_drvinfo_copy(const void *_mesg, void *_dest);
33
33
 
static size_t H5O_drvinfo_size(const H5F_t *f, hbool_t disable_shared, const void *_mesg);
34
34
 
static herr_t H5O_drvinfo_reset(void *_mesg);
35
35
 
static herr_t H5O_drvinfo_debug(H5F_t *f, hid_t dxpl_id, const void *_mesg, FILE *stream,
36
36
 
                 int indent, int fwidth);
37
37
 
38
38
 
/* This message derives from H5O message class */
39
39
 
const H5O_msg_class_t H5O_MSG_DRVINFO[1] = {{
40
40
 
    H5O_DRVINFO_ID,             /*message id number                     */
Show more
72
72
 
 * Return:  Success:    Ptr to new message in native struct.
73
73
 
 *      Failure:    NULL
74
74
 
 *
75
75
 
 * Programmer:  Quincey Koziol
76
76
 
 *              Mar  1, 2007
77
77
 
 *
78
78
 
 *-------------------------------------------------------------------------
79
79
 
 */
80
80
 
static void *
81
81
 
H5O_drvinfo_decode(H5F_t H5_ATTR_UNUSED *f, hid_t H5_ATTR_UNUSED dxpl_id, H5O_t H5_ATTR_UNUSED *open_oh,
82
 
-
    unsigned H5_ATTR_UNUSED mesg_flags, unsigned H5_ATTR_UNUSED *ioflags, const uint8_t *p)
 
82
+
    unsigned H5_ATTR_UNUSED mesg_flags, unsigned H5_ATTR_UNUSED *ioflags,
 
83
+
    size_t H5_ATTR_UNUSED p_size, const uint8_t *p)
83
84
 
{
84
85
 
    H5O_drvinfo_t   *mesg;          /* Native message */
85
86
 
    void                *ret_value;     /* Return value */
86
87
 
87
88
 
    FUNC_ENTER_NOAPI_NOINIT
88
89
 
89
90
 
    /* Sanity check */
90
91
 
    HDassert(f);
91
92
 
    HDassert(p);
92
93