summaryrefslogtreecommitdiff
path: root/src/include/aplwc.h
blob: 6724127bfa206899ba31e3c8bc4ef49f937ca3f1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 */