1
0
Fork 0
mirror of https://github.com/tailix/libclayer.git synced 2024-11-20 11:06:24 -05:00
libclayer/include/libclayer.h

27 lines
463 B
C
Raw Normal View History

2022-12-25 05:14:39 -05:00
#ifndef _LIBCLAYER_H
#define _LIBCLAYER_H 1
2022-12-25 03:58:00 -05:00
#ifdef __cplusplus
extern "C" {
#endif
#include <stddef.h>
2022-12-25 05:14:39 -05:00
struct Libclayer {
2022-12-25 05:39:30 -05:00
__attribute__((noreturn)) void (*abort)();
__attribute__((noreturn)) void (*exit)(int status);
2022-12-25 03:58:00 -05:00
void *(*calloc)(size_t nmemb, size_t size);
void (*free)(void *ptr);
void *(*malloc)(size_t size);
void *(*realloc)(void *ptr, size_t size);
};
2022-12-25 05:14:39 -05:00
extern struct Libclayer libclayer;
2022-12-25 03:58:00 -05:00
#ifdef __cplusplus
}
#endif
#endif