diff options
| author | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2026-04-19 17:09:06 +0200 |
|---|---|---|
| committer | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2026-04-19 17:09:06 +0200 |
| commit | c9f1161ecb323c7872559dd40c56d691dbd5959f (patch) | |
| tree | bc6b974c56d55e11a78cc10bd7da399e54d307cd /lib/aplwc.h | |
| parent | 984ca5a2330ce29b62892321f258d5a0afb0091c (diff) | |
Start working on parsing/scanning.
Too many changes to list them all individually.
Diffstat (limited to 'lib/aplwc.h')
| -rw-r--r-- | lib/aplwc.h | 11 |
1 files changed, 10 insertions, 1 deletions
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 <stddef.h> +#include <stdbool.h> + 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 */ |