diff options
Diffstat (limited to 'src/include/aplwc.h')
| -rw-r--r-- | src/include/aplwc.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/include/aplwc.h b/src/include/aplwc.h new file mode 100644 index 0000000..6724127 --- /dev/null +++ b/src/include/aplwc.h @@ -0,0 +1,21 @@ +#ifndef APLWC_H +#define APLWC_H + +#include <stddef.h> + +typedef struct APLWC APLWC; +typedef struct APLWCFunctions APLWCFunctions; + +struct APLWCFunctions +{ + void *(*alloc)(void *, size_t); + void (*free)(void *, void *); + void (*debug)(void *, char *); + void (*fatal)(void *, char *); +}; + +void aplwc_init_fns(APLWCFunctions *); +APLWC *aplwc_init(APLWCFunctions *, void *aux); +void aplwc_exit(APLWC *); + +#endif /* APLWC_H */ |