summaryrefslogtreecommitdiffstats
path: root/src/H5Ounknown.c
blob: d4a3801862232319ef84b4d0b0af01c24f83d330 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Copyright by The HDF Group.                                               *
 * Copyright by the Board of Trustees of the University of Illinois.         *
 * All rights reserved.                                                      *
 *                                                                           *
 * This file is part of HDF5.  The full HDF5 copyright notice, including     *
 * terms governing use, modification, and redistribution, is contained in    *
 * the files COPYING and Copyright.html.  COPYING can be found at the root   *
 * of the source code distribution tree; Copyright.html can be found at the  *
 * root level of an installed copy of the electronic HDF5 document set and   *
 * is linked from the top-level documents page.  It can also be found at     *
 * http://hdfgroup.org/HDF5/doc/Copyright.html.  If you do not have          *
 * access to either file, you may request a copy from help@hdfgroup.org.     *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

/*-------------------------------------------------------------------------
 *
 * Created:             H5Ounknown.c
 *                      Apr 19 2007
 *                      Quincey Koziol <koziol@hdfgroup.org>
 *
 * Purpose:             Handle unknown message classes in a minimal way.
 *
 *-------------------------------------------------------------------------
 */

#define H5O_PACKAGE		/*suppress error about including H5Opkg	  */

#include "H5private.h"		/* Generic Functions			*/
#include "H5Eprivate.h"		/* Error handling		  	*/
#include "H5FLprivate.h"	/* Free lists                           */
#include "H5Opkg.h"             /* Object headers			*/


/* PRIVATE PROTOTYPES */
static herr_t H5O_unknown_free(void *_mesg);

/* This message derives from H5O message class */
const H5O_msg_class_t H5O_MSG_UNKNOWN[1] = {{
    H5O_UNKNOWN_ID,           	/*message id number             */
    "unknown",                	/*message name for debugging    */
    0,				/*native message size           */
    FALSE,			/* messages are sharable?       */
    NULL,			/*decode message                */
    NULL,			/*encode message                */
    NULL,			/*copy the native value         */
    NULL,			/*size of symbol table entry    */
    NULL,                   	/*default reset method          */
    H5O_unknown_free,	        /* free method			*/
    NULL,			/* file delete method		*/
    NULL,			/* link method			*/
    NULL, 			/*set share method		*/
    NULL,		    	/*can share method		*/
    NULL,			/* pre copy native value to file */
    NULL,			/* copy native value to file    */
    NULL,			/* post copy native value to file */
    NULL,			/* get creation index		*/
    NULL,			/* set creation index		*/
    NULL			/*debug the message             */
}};

/* Declare a free list to manage the H5O_unknown_t struct */
H5FL_DEFINE(H5O_unknown_t);


/*-------------------------------------------------------------------------
 * Function:	H5O_unknown_free
 *
 * Purpose:	Free's the message
 *
 * Return:	Non-negative on success/Negative on failure
 *
 * Programmer:	Quincey Koziol
 *              Tuesday, May 1, 2007
 *
 *-------------------------------------------------------------------------
 */
static herr_t
H5O_unknown_free(void *mesg)
{
    FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5O_unknown_free)

    HDassert(mesg);

    mesg = H5FL_FREE(H5O_unknown_t, mesg);

    FUNC_LEAVE_NOAPI(SUCCEED)
} /* end H5O_unknown_free() */

> | |\ \ | | * \ \ Merge remote-tracking branch 'origin/develop' into alloc_statsQuincey Koziol2020-03-121-5/+5 | | |\ \ \ | | * | | | Add routines to query the library's free list sizes and allocation stats.Quincey Koziol2020-03-109-212/+606 * | | | | | Correct syntaxAllen Byrne2020-03-231-2/+2 * | | | | | Update CMake compiler flags to use same set of warningsAllen Byrne2020-03-231-31/+82 * | | | | | Merging in latest from upstream (HDFFV/hdf5:refs/heads/develop)Allen Byrne2020-03-2339-80/+208 |\ \ \ \ \ \ | |/ / / / / | * | | | | Merge pull request #2402 in HDFFV/hdf5 from ~DYOUNG/werror:break-out-warnings...David Young2020-03-2339-80/+208 | |\ \ \ \ \ | | |_|_|_|/ | |/| | | | | | * | | | Move the GNU warnings configuration under config/gnu-warnings/ and trimDavid Young2020-03-1936-38/+38 | | * | | | By default, demote warnings promoted to errors back to warnings.David Young2020-02-251-1/+19 | | * | | | Incorporate the H5_ECFLAGS into the library CFLAGS. Now a bunch of errors willDavid Young2020-02-253-2/+6 | | * | | | Break out warnings into more files that autoconf and CMake can share. ThisDavid Young2020-02-2534-71/+177 * | | | | | Allow use of INTEL icl/icl++ for clangAllen Byrne2020-03-192-59/+63 |/ / / / / * | | | | Merge pull request #2457 in HDFFV/hdf5 from ~BYRN/hdf5_adb:develop to developAllen Byrne2020-03-191-1/+20 |\ \ \ \ \ | * | | | | Fix threadsafe for new testAllen Byrne2020-03-181-1/+20 | | |_|_|/ | |/| | | * | | | | Merge pull request #2456 in HDFFV/hdf5 from ~DEROBINS/hdf5_der:develop_minor ...Dana Robinson2020-03-185-3/+28 |\ \ \ \ \ | |/ / / / |/| | | | | * | | | Fixed the RELEASE.txt note for HDFFV-11057Dana Robinson2020-03-181-9/+8 | * | | | Fix shutdown errors when using the HDF5_VOL_CONNECTOR environmentDana Robinson2020-03-184-2/+28 | * | | | Merge branch 'develop' into develop_minorDana Robinson2020-03-185-5/+23 | |\ \ \ \ | |/ / / / |/| | | | * | | | | Merge pull request #2451 in HDFFV/hdf5 from ~VCHOI/my_third_fork:bugfix/devel...Vailin Choi2020-03-165-5/+23 |\ \ \ \ \ | |_|_|_|/ |/| | | | | * | | | Fix issues when deserializing point/all/none selection with version beyond th...Vailin Choi2020-03-135-5/+23 | * | | | Merge pull request #26 in ~VCHOI/my_third_fork from develop to bugfix/develop...Vailin Choi2020-03-11