summaryrefslogtreecommitdiff
path: root/src/include/aplwc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/aplwc.h')
-rw-r--r--src/include/aplwc.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/include/aplwc.h b/src/include/aplwc.h
index ad640e4..843fe42 100644
--- a/src/include/aplwc.h
+++ b/src/include/aplwc.h
@@ -18,7 +18,12 @@ struct aplwc;
struct aplwc_line;
struct aplwc_value;
-enum aplwc_rc aplwc_new(struct aplwc **, uint8_t *, size_t);
+struct aplwc_fns {
+ void *(*alloc)(size_t, size_t, size_t *);
+ void (*dealloc)(void *);
+};
+
+enum aplwc_rc aplwc_new(struct aplwc **, struct aplwc_fns);
void aplwc_destroy(struct aplwc *);
const char *aplwc_errstr_rc(enum aplwc_rc);
const char *aplwc_errstr(struct aplwc *);