Jeremy Kerr | 3d36ee2 | 2019-05-30 11:15:37 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */ |
Jeremy Kerr | 4cdc200 | 2019-02-07 16:49:12 +0800 | [diff] [blame] | 2 | |
| 3 | #ifndef _LIBMCTP_ALLOC_H |
| 4 | #define _LIBMCTP_ALLOC_H |
| 5 | |
| 6 | #include <stdlib.h> |
| 7 | |
Matt Johnston | 4a09e1d | 2024-09-13 14:55:58 +0800 | [diff] [blame] | 8 | struct mctp; |
| 9 | |
Jeremy Kerr | 4cdc200 | 2019-02-07 16:49:12 +0800 | [diff] [blame] | 10 | void *__mctp_alloc(size_t size); |
| 11 | void __mctp_free(void *ptr); |
Matt Johnston | 4a09e1d | 2024-09-13 14:55:58 +0800 | [diff] [blame] | 12 | |
| 13 | void *__mctp_msg_alloc(size_t size, struct mctp *mctp); |
| 14 | void __mctp_msg_free(void *ptr, struct mctp *mctp); |
Jeremy Kerr | 4cdc200 | 2019-02-07 16:49:12 +0800 | [diff] [blame] | 15 | |
| 16 | #endif /* _LIBMCTP_ALLOC_H */ |