summaryrefslogtreecommitdiffstats
path: root/sw/programmer/linux/src/ui.h
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2017-08-23 16:43:56 +0200
committerNao Pross <naopross@thearcway.org>2017-08-23 16:43:56 +0200
commitc7925cbb73f319a390507b33e4df44f106822683 (patch)
treeb7890e18d481822e6f38f6739b43fbd9d02b587f /sw/programmer/linux/src/ui.h
parentupdated .gitignore (diff)
downloadz80uPC-c7925cbb73f319a390507b33e4df44f106822683.tar.gz
z80uPC-c7925cbb73f319a390507b33e4df44f106822683.zip
new programmer interface for linux
there is a new program with GUI (gtk3) to send data to its avr conterpart. it needs to be tested, since there may be a few bugs in it; building a GUI was a terrible idea.
Diffstat (limited to '')
-rw-r--r--sw/programmer/linux/src/ui.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/sw/programmer/linux/src/ui.h b/sw/programmer/linux/src/ui.h
index 44314d6..510537a 100644
--- a/sw/programmer/linux/src/ui.h
+++ b/sw/programmer/linux/src/ui.h
@@ -1,17 +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, char type);
+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