summaryrefslogtreecommitdiff
path: root/src/include/aplwc.h
blob: 61ccc3603ed4e734107f96b3cc90d0537a9430bf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#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_boot(void);
void	 aplwc_init_fns(APLWCFunctions *);
APLWC	*aplwc_init(APLWCFunctions *, void *aux);
void	 aplwc_exit(APLWC *);

#endif /* APLWC_H */