libdebian-installer
mem_chunk.h
1/*
2 * mem_chunk.h
3 *
4 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
5 * 2003 Bastian Blank <waldi@debian.org>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21#ifndef DEBIAN_INSTALLER__MEM_CHUNK_H
22#define DEBIAN_INSTALLER__MEM_CHUNK_H
23
24#include <debian-installer/types.h>
25
26typedef struct di_mem_chunk di_mem_chunk;
27
34void *di_mem_chunk_alloc (di_mem_chunk *mem_chunk);
35void *di_mem_chunk_alloc0 (di_mem_chunk *mem_chunk);
36void di_mem_chunk_destroy (di_mem_chunk *mem_chunk);
37size_t di_mem_chunk_size (di_mem_chunk *mem_chunk);
38
40#endif
void * di_mem_chunk_alloc(di_mem_chunk *mem_chunk)
Definition mem_chunk.c:120
di_mem_chunk * di_mem_chunk_new(di_ksize_t atom_size, di_ksize_t area_size)
Definition mem_chunk.c:87
void * di_mem_chunk_alloc0(di_mem_chunk *mem_chunk)
Definition mem_chunk.c:156
uint32_t di_ksize_t
Definition types.h:78
a mem chunk
Definition mem_chunk.c:47
size_t area_size
Definition mem_chunk.c:51
size_t atom_size
Definition mem_chunk.c:50