From a5afaee3d027a66148b0f184d401ed76e6c0f8ff Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Wed, 1 Nov 2023 21:13:00 +0000 Subject: heap_free_page returns true if page was successfully deleted --- lib/heap.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/heap.h') diff --git a/lib/heap.h b/lib/heap.h index d289ffa..486f28c 100644 --- a/lib/heap.h +++ b/lib/heap.h @@ -15,6 +15,7 @@ #include "./base.h" +#include #include typedef struct Page @@ -34,7 +35,7 @@ typedef struct } heap_t; void heap_create(heap_t *); -void heap_free_page(heap_t *, page_t *); +bool heap_free_page(heap_t *, page_t *); page_t *heap_allocate(heap_t *, size_t); void heap_stop(heap_t *); -- cgit v1.2.3-13-gbd6f