summaryrefslogtreecommitdiff
path: root/lib/aplwc.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/aplwc.h')
-rw-r--r--lib/aplwc.h11
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 */