aboutsummaryrefslogtreecommitdiff
path: root/inc/gui.h
diff options
context:
space:
mode:
Diffstat (limited to 'inc/gui.h')
-rw-r--r--inc/gui.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/inc/gui.h b/inc/gui.h
new file mode 100644
index 0000000..e8a583d
--- /dev/null
+++ b/inc/gui.h
@@ -0,0 +1,19 @@
+#ifndef GUI_H
+#define GUI_H
+
+#include <err.h>
+#include <stdint.h>
+
+struct gui_interface {
+ err (*step_next)(void);
+ err (*step_prev)(void);
+};
+
+void gui_reg_names(const char *names, int n);
+void gui_reg_update(int reg, uint64_t value);
+void gui_instr_done(char *instr);
+
+void gui_register_interface(struct gui_interface *gui);
+void gui_init(void);
+
+#endif