diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2011-10-05 18:32:19 +0000 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2011-10-05 18:32:19 +0000 |
| commit | 4478b25ede0129b1572145737627db7297dcc89f (patch) | |
| tree | 26e30d0021ee7d3433ec055c4576cb24f14d9080 /firmware/include/core_alloc.h | |
| parent | 6efb3f0760b54fb80423924a7aab17da043dbba9 (diff) | |
| download | rockbox-4478b25ede0129b1572145737627db7297dcc89f.zip rockbox-4478b25ede0129b1572145737627db7297dcc89f.tar.gz rockbox-4478b25ede0129b1572145737627db7297dcc89f.tar.bz2 rockbox-4478b25ede0129b1572145737627db7297dcc89f.tar.xz | |
core_alloc: Provide a tiny test allocation, which can be freed for debug purposes.
This allocation can be freed in the buflib debug menu (select it to free).
Doing a another allocation, e.g. by selecting another item in this debug menu
will cause compaction (all allocs move).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30719 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/include/core_alloc.h')
| -rw-r--r-- | firmware/include/core_alloc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/include/core_alloc.h b/firmware/include/core_alloc.h index b2edec5..0ac7e5b 100644 --- a/firmware/include/core_alloc.h +++ b/firmware/include/core_alloc.h @@ -28,6 +28,10 @@ int core_get_num_blocks(void); void core_print_block_at(int block_num, char* buf, size_t bufsize); #endif +/* frees the debug test alloc created at initialization, + * since this is the first any further alloc should force a compaction run */ +bool core_test_free(void); + static inline void* core_get_data(int handle) { extern struct buflib_context core_ctx; |