From c9f1161ecb323c7872559dd40c56d691dbd5959f Mon Sep 17 00:00:00 2001 From: Peter Mikkelsen Date: Sun, 19 Apr 2026 17:09:06 +0200 Subject: Start working on parsing/scanning. Too many changes to list them all individually. --- lib/aplwc.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'lib/aplwc.h') diff --git a/lib/aplwc.h b/lib/aplwc.h index aef2495..6bfdf40 100644 --- a/lib/aplwc.h +++ b/lib/aplwc.h @@ -21,14 +21,23 @@ #ifndef APLWC_H #define APLWC_H +#include +#include + struct aplwc; struct aplwc_syscmd { const char *name; + void (*run)(struct aplwc *, struct aplwc_syscmd *, char *); }; -struct aplwc *aplwc_new(void); +struct aplwc *aplwc_new(void *(*)(size_t), void (*)(void *), void *(*)(void *, size_t)); char **aplwc_autocomplete(struct aplwc *, const char *, int, int); void aplwc_register_syscmd(struct aplwc *, struct aplwc_syscmd *); +void aplwc_syscmd_error(struct aplwc *, struct aplwc_syscmd *, const char *, ...); +void aplwc_syscmd_output(struct aplwc *, struct aplwc_syscmd *, const char *, ...); +void aplwc_run_line(struct aplwc *, const char *); +void aplwc_exit(struct aplwc *); +bool aplwc_running(struct aplwc *); #endif /* APLWC_H */ -- cgit v1.2.3