summaryrefslogtreecommitdiffstats
path: root/src/H5MVpkg.h
blob: cb298798f174949b28a50d41c90d3472ee21a8bf (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
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * 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 COPYING file, which can be found at the root of the source code       *
 * distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases.  *
 * If you do not have access to either file, you may request a copy from     *
 * help@hdfgroup.org.                                                        *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

/*
 * Programmer:  Quincey Koziol <koziol@hdfgroup.org>
 *              Tuesday, January 8, 2008
 *
 * Purpose:     This file contains declarations which are visible only within
 *              the H5MV package.  Source files outside the H5MV package should
 *              include H5MVprivate.h instead.
 */
#if !(defined H5MV_FRIEND || defined H5MV_MODULE)
#error "Do not include this file outside the H5MV package!"
#endif

#ifndef _H5MVpkg_H
#define _H5MVpkg_H

/* Get package's private header */
#include "H5MVprivate.h"

/* Other private headers needed by this file */
#include "H5FSprivate.h"	/* File free space                      */


/**************************/
/* Package Private Macros */
/**************************/

/* Define this to display information about file allocations */
/* #define H5MV_VFD_SWMR_DEBUG */

/* Free-space section types for file */
/* (values stored in free space data structures in file) */
#define H5MV_FSPACE_SECT_SIMPLE     0   /* For non-paged aggregation: section is a range of actual bytes in file */

/****************************/
/* Package Private Typedefs */
/****************************/

/* File free space section info */
typedef struct H5MV_free_section_t {
    H5FS_section_info_t sect_info;              /* Free space section information (must be first in struct) */
} H5MV_free_section_t;

/*****************************/
/* Package Private Variables */
/*****************************/

/* H5MF single section inherits serializable properties from H5FS_section_class_t */
H5_DLLVAR H5FS_section_class_t H5MV_FSPACE_SECT_CLS_SIMPLE[1];


/******************************/
/* Package Private Prototypes */
/******************************/

H5_DLL htri_t H5MV__find_sect(H5F_t *f, hsize_t size, H5FS_t *fspace, haddr_t *addr);
H5_DLL herr_t H5MV__create(H5F_t *f);

/* free-space section routines */
H5_DLL H5MV_free_section_t *H5MV__sect_new(haddr_t sect_off, hsize_t sect_size);
H5_DLL herr_t H5MV__sect_free(H5FS_section_info_t *sect);
H5_DLL htri_t H5MV__sect_can_shrink(const H5FS_section_info_t *_sect, void *udata);
H5_DLL herr_t H5MV__sect_shrink(H5FS_section_info_t **_sect, void *udata);
H5_DLL haddr_t H5MV_get_vfd_swmr_md_eoa(const H5F_shared_t *);
H5_DLL herr_t H5MV__free_md(H5F_shared_t *, haddr_t, hsize_t);


/* Testing routines */
#ifdef H5MF_TESTING
#endif /* H5MF_TESTING */

#endif /* _H5MFpkg_H */