summaryrefslogtreecommitdiffstats
path: root/modules/user/inc/user_tui.h
blob: d8f9a3c575f274bb611482cbd6d0ac782a4b5e4c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/******************************************************************************
 *	Copyright (C) 2018	Alejandro Colomar Andrés		      *
 ******************************************************************************/


/******************************************************************************
 ******* include guard ********************************************************
 ******************************************************************************/
# ifndef		VA_USER_TUI_H
	# define	VA_USER_TUI_H


/******************************************************************************
 ******* functions ************************************************************
 ******************************************************************************/
void	user_tui_init		(void);
void	user_tui_cleanup	(void);
int	user_tui		(const char *title, const char *subtitle);
void	user_tui_show_log	(const char *title, const char *subtitle);
void	user_tui_fname		(const char *filepath, char *filename);
double	user_tui_getdbl		(double m, double def, double M,
				const char *title, const char *help);
int64_t	user_tui_getint		(double m, int64_t def, double M,
				const char *title, const char *help);
void	user_tui_show_ocr	(void);


/******************************************************************************
 ******* include guard ********************************************************
 ******************************************************************************/
# endif			/* user_tui.h */


/******************************************************************************
 ******* end of file **********************************************************
 ******************************************************************************/