summaryrefslogtreecommitdiff
path: root/ui.h
diff options
context:
space:
mode:
authorkatalx2026-01-28 20:46:43 -0500
committerkatalx2026-01-28 20:46:43 -0500
commit583bcd490a055f013b244a6cd7e6ecb6765260e2 (patch)
tree30b6d9d0237d9ae6ea4e57db964d4d409dc152b9 /ui.h
parent86a10e053154cb52ab7d051b98a6366c6165c02b (diff)
read stdin into opt array
Diffstat (limited to 'ui.h')
-rw-r--r--ui.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/ui.h b/ui.h
index 25ac537..6c22238 100644
--- a/ui.h
+++ b/ui.h
@@ -2,6 +2,7 @@
#define UI_H
#include "str.h"
+#include "dynarr.h"
typedef enum {
UI_REDRAW,
@@ -37,9 +38,11 @@ typedef struct {
};
} UiEvent;
+typedef DYNARR(Str) UiOpts;
+
void ui_init(int argc, char **argv);
void ui_fini(void);
-void ui_draw(Str input, int inpi, int seli, Str *optv, int optc);
+void ui_draw(Str input, int inpi, int seli, UiOpts o);
int ui_wait_event(UiEvent *e);
#endif