1 // Copyright 2016 The Fuchsia Authors
2 // Copyright (c) 2015 Travis Geiselbrecht
3 //
4 // Use of this source code is governed by a MIT-style
5 // license that can be found in the LICENSE file or at
6 // https://opensource.org/licenses/MIT
7 
8 #pragma once
9 
10 #include <stdbool.h>
11 #include <stddef.h>
12 
13 #include <zircon/compiler.h>
14 
15 __BEGIN_CDECLS
16 
17 void* cmpct_alloc(size_t);
18 void* cmpct_realloc(void*, size_t);
19 void cmpct_free(void*);
20 void* cmpct_memalign(size_t size, size_t alignment);
21 
22 void cmpct_init(void);
23 void cmpct_dump(bool panic_time);
24 void cmpct_get_info(size_t* size_bytes, size_t* free_bytes);
25 void cmpct_test(void);
26 void cmpct_trim(void);
27 
28 __END_CDECLS
29