summaryrefslogtreecommitdiffstats
path: root/include/libtf/memory.h
blob: 04c2242878bf76a26ab47bbea130b4599d6d4a16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* memory.h - libtf memory allocator
 *
 * Copyright (C) 2009-2010 Timo Teräs <timo.teras@iki.fi>
 * All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2 or later as
 * published by the Free Software Foundation.
 *
 * See http://www.gnu.org/ for details.
 */

#ifndef TF_MEMORY_H
#define TF_MEMORY_H

/* Big/bulk memory allocation using mmap() or similar */
void *tf_bmem_alloc(size_t size);
void *tf_bmem_resize(void *ptr, size_t oldsize, size_t newsize);
void tf_bmem_free(void *ptr, size_t size);

#endif