summaryrefslogtreecommitdiff
path: root/firmware/core_alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/core_alloc.c')
-rw-r--r--firmware/core_alloc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/core_alloc.c b/firmware/core_alloc.c
index 68c400f669..58e12141e1 100644
--- a/firmware/core_alloc.c
+++ b/firmware/core_alloc.c
@@ -87,6 +87,12 @@ bool core_shrink(int handle, void* new_start, size_t new_size)
87 return buflib_shrink(&core_ctx, handle, new_start, new_size); 87 return buflib_shrink(&core_ctx, handle, new_start, new_size);
88} 88}
89 89
90const char* core_get_name(int handle)
91{
92 const char *name = buflib_get_name(&core_ctx, handle);
93 return name ?: "<anonymous>";
94}
95
90int core_get_num_blocks(void) 96int core_get_num_blocks(void)
91{ 97{
92 return buflib_get_num_blocks(&core_ctx); 98 return buflib_get_num_blocks(&core_ctx);