diff options
Diffstat (limited to 'sw/programmer/linux/src/ui.h')
-rw-r--r-- | sw/programmer/linux/src/ui.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sw/programmer/linux/src/ui.h b/sw/programmer/linux/src/ui.h new file mode 100644 index 0000000..510537a --- /dev/null +++ b/sw/programmer/linux/src/ui.h @@ -0,0 +1,24 @@ +#ifndef __Z80PROG_UI_H__ +#define __Z80PROG_UI_H_ + +#include "flash.h" + +#include <stdbool.h> +#include <string.h> + +#include <gtk/gtk.h> + +#define UI_LOG_ERR "[!] " +#define UI_LOG_WARN "[#] " +#define UI_LOG_MSG "[@] " + +void ui_init(int *argc, char **argv[]); +void ui_log(const char *msg); +void ui_check_enable_flashbtn(void); + +void ui_file_set(GtkFileChooserButton *btn, gpointer user_data); +void ui_connect_clicked(void); +void ui_disconnect_clicked(void); +void ui_flash_clicked(void); + +#endif |