1 /* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */ 2 3 #ifndef _LIBMCTP_ALLOC_H 4 #define _LIBMCTP_ALLOC_H 5 6 #include <stdlib.h> 7 8 struct mctp; 9 10 void *__mctp_alloc(size_t size); 11 void __mctp_free(void *ptr); 12 13 void *__mctp_msg_alloc(size_t size, struct mctp *mctp); 14 void __mctp_msg_free(void *ptr, struct mctp *mctp); 15 16 #endif /* _LIBMCTP_ALLOC_H */ 17