blob: 01674548d24bda000c445716eedab8e75d737b05 [file] [log] [blame]
Jeremy Kerr3d36ee22019-05-30 11:15:37 +08001/* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */
Jeremy Kerr4cdc2002019-02-07 16:49:12 +08002
3#ifndef _LIBMCTP_ALLOC_H
4#define _LIBMCTP_ALLOC_H
5
6#include <stdlib.h>
7
Matt Johnston4a09e1d2024-09-13 14:55:58 +08008struct mctp;
9
Jeremy Kerr4cdc2002019-02-07 16:49:12 +080010void *__mctp_alloc(size_t size);
11void __mctp_free(void *ptr);
Matt Johnston4a09e1d2024-09-13 14:55:58 +080012
13void *__mctp_msg_alloc(size_t size, struct mctp *mctp);
14void __mctp_msg_free(void *ptr, struct mctp *mctp);
Jeremy Kerr4cdc2002019-02-07 16:49:12 +080015
16#endif /* _LIBMCTP_ALLOC_H */