aboutsummaryrefslogtreecommitdiff
path: root/ui.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui.h')
-rw-r--r--ui.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/ui.h b/ui.h
index ff8e144..90b10cd 100644
--- a/ui.h
+++ b/ui.h
@@ -6,20 +6,30 @@
#define UICB_OK 0
#define UICB_ERR_UNDEF 1
+#define UICB_ERR_NOP 2
+#define UICB_ERR_CB 3
-typedef int (*ui_callback)(WINDOW *, void *);
+typedef int (*ui_callback)(WINDOW *, void *, bool);
struct nask_ui {
ui_callback ui_elt_cb;
bool do_update;
+ WINDOW *wnd;
+ chtype attrs;
void *data;
struct nask_ui *next;
};
void
-register_ui_elt(ui_callback uicb, void *data);
+register_ui_elt(ui_callback uicb, void *data, WINDOW *wnd, chtype attrs);
void
unregister_ui_elt(void *data);
+int
+run_ui_thrd(void);
+
+int
+stop_ui_thrd(void);
+
#endif