1/*
2 * Copyright 2017, Data61
3 * Commonwealth Scientific and Industrial Research Organisation (CSIRO)
4 * ABN 41 687 119 230.
5 *
6 * This software may be distributed and modified according to the terms of
7 * the BSD 2-Clause license. Note that NO WARRANTY is provided.
8 * See "LICENSE_BSD2.txt" for details.
9 *
10 * @TAG(DATA61_BSD)
11 */
12
13#pragma once
14
15#include <stdlib.h>
16#include <allocman/properties.h>
17
18struct allocman;
19
20struct mspace_interface {
21    void *(*alloc)(struct allocman *alloc, void *cookie, size_t bytes, int *error);
22    void (*free)(struct allocman *alloc, void *cookie, void *ptr, size_t bytes);
23    struct allocman_properties properties;
24    void *mspace;
25};
26
27