1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2  * Copyright by The HDF Group.                                               *
3  * Copyright by the Board of Trustees of the University of Illinois.         *
4  * All rights reserved.                                                      *
5  *                                                                           *
6  * This file is part of HDF5.  The full HDF5 copyright notice, including     *
7  * terms governing use, modification, and redistribution, is contained in    *
8  * the COPYING file, which can be found at the root of the source code       *
9  * distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases.  *
10  * If you do not have access to either file, you may request a copy from     *
11  * help@hdfgroup.org.                                                        *
12  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
13 
14 /*-------------------------------------------------------------------------
15  *
16  * Created:		H5MPprivate.h
17  *			May  2 2005
18  *			Quincey Koziol <koziol@ncsa.uiuc.edu>
19  *
20  * Purpose:		Private header for memory pool routines.
21  *
22  *-------------------------------------------------------------------------
23  */
24 
25 #ifndef _H5MPprivate_H
26 #define _H5MPprivate_H
27 
28 /* Include package's public header (not yet) */
29 /* #include "H5MPpublic.h" */
30 
31 /* Private headers needed by this file */
32 
33 
34 /**************************/
35 /* Library Private Macros */
36 /**************************/
37 
38 /* Pool creation flags */
39 /* Default settings */
40 #define H5MP_FLG_DEFAULT        0
41 #define H5MP_PAGE_SIZE_DEFAULT  4096    /* (bytes) */
42 
43 
44 /****************************/
45 /* Library Private Typedefs */
46 /****************************/
47 
48 /* Memory pool header (defined in H5MPpkg.c) */
49 typedef struct H5MP_pool_t H5MP_pool_t;
50 
51 
52 /***************************************/
53 /* Library-private Function Prototypes */
54 /***************************************/
55 H5_DLL H5MP_pool_t *H5MP_create (size_t page_size, unsigned flags);
56 H5_DLL void * H5MP_malloc (H5MP_pool_t *mp, size_t request);
57 H5_DLL void * H5MP_free (H5MP_pool_t *mp, void *spc);
58 H5_DLL herr_t H5MP_close (H5MP_pool_t *mp);
59 
60 #endif /* _H5MPprivate_H */
61