summaryrefslogtreecommitdiff
path: root/src/include/aplwc.h
blob: 99054111261069cec5f8242641bd786f9e5f48d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef APLWC_H
#define APLWC_H

#include <stdint.h>
#include <stddef.h>

enum aplwc_rc {
	APLWC_OK,
	APLWC_OUT_OF_MEMORY,

	APLWC_RC_LAST = APLWC_OUT_OF_MEMORY
};

struct aplwc;

enum aplwc_rc aplwc_new(struct aplwc **, uint8_t *, size_t);
enum aplwc_rc aplwc_destroy(struct aplwc *);
const char *aplwc_errstr_rc(enum aplwc_rc);
const char *aplwc_errstr(struct aplwc *);

#define APLWC_MIN_MEM (128)

#endif /* APLWC_H */