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
17void* cmpct_alloc(size_t);
18void* cmpct_realloc(void*, size_t);
19void cmpct_free(void*);
20void* cmpct_memalign(size_t size, size_t alignment);
21
22void cmpct_init(void);
23void cmpct_dump(bool panic_time);
24void cmpct_get_info(size_t* size_bytes, size_t* free_bytes);
25void cmpct_test(void);
26void cmpct_trim(void);
27
28__END_CDECLS
29