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.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/firmware/core_alloc.c b/firmware/core_alloc.c
index bf2f8e8298..0374c801c1 100644
--- a/firmware/core_alloc.c
+++ b/firmware/core_alloc.c
@@ -104,6 +104,21 @@ bool core_shrink(int handle, void* new_start, size_t new_size)
104 return buflib_shrink(&core_ctx, handle, new_start, new_size); 104 return buflib_shrink(&core_ctx, handle, new_start, new_size);
105} 105}
106 106
107void core_pin(int handle)
108{
109 buflib_pin(&core_ctx, handle);
110}
111
112void core_unpin(int handle)
113{
114 buflib_unpin(&core_ctx, handle);
115}
116
117unsigned core_pin_count(int handle)
118{
119 return buflib_pin_count(&core_ctx, handle);
120}
121
107const char* core_get_name(int handle) 122const char* core_get_name(int handle)
108{ 123{
109 const char *name = buflib_get_name(&core_ctx, handle); 124 const char *name = buflib_get_name(&core_ctx, handle);