mGNCS API Reference
v1.2.0
A new control set and a new framework for MiniGUI apps
Main Page
Modules
Data Structures
Files
File List
Globals
include
mem-slab.h
Go to the documentation of this file.
1
42
#ifndef MEM_SLAB_H
43
#define MEM_SLAB_H
44
45
#ifdef __cplusplus
46
extern
"C"
{
47
#endif
48
49
MGNCS_EXPORT
void
* slab_new_heap(
int
min_size,
int
max_size);
50
51
MGNCS_EXPORT
void
slab_free_heap(
void
*heap);
52
53
MGNCS_EXPORT
void
* slab_new_mem(
void
*heap,
int
size,
int
padding);
54
55
MGNCS_EXPORT
void
slab_free_mem(
void
*heap,
void
*p);
56
57
MGNCS_EXPORT
int
slab_init_default_heap(
void
);
58
59
MGNCS_EXPORT
void
slab_unit_default_heap(
void
);
60
61
#define _SLAB_ALLOC(size) slab_new_mem(NULL, (size), 0)
62
#define _SLAB_FREE(p) slab_free_mem(NULL, p)
63
64
#ifdef __cplusplus
65
}
66
#endif
67
68
#endif
69
70
Generated by
1.8.11