aboutsummaryrefslogtreecommitdiff
path: root/ui.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui.h')
-rw-r--r--ui.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/ui.h b/ui.h
index 91e0b27..77a5bc9 100644
--- a/ui.h
+++ b/ui.h
@@ -4,6 +4,8 @@
#include <ncurses.h>
#include <stdint.h>
+#define MAX_PASSWD_LEN 128
+
#define UICB_OK 0
#define UICB_ERR_UNDEF 1
#define UICB_ERR_CB 2
@@ -25,8 +27,6 @@
#define UIKEY_RIGHT 5
-extern char *passwd;
-
typedef int (*ui_callback)(WINDOW *, void *, bool);
struct nask_ui {
@@ -52,12 +52,12 @@ void
free_ui(void);
int
-run_ui_thrd(void);
+do_ui(int fifo_fd);
-int
-stop_ui_thrd(void);
+void
+stop_ui(void);
-int
-do_ui(void);
+bool
+is_passwd_from_ui(void);
#endif