2022-12-13 00:33:56 +00:00
|
|
|
#ifndef UI
|
|
|
|
#define UI
|
2022-12-14 16:32:36 +00:00
|
|
|
#include <pthread.h>
|
2022-12-17 01:31:33 +00:00
|
|
|
#include "read_file.h"
|
2022-12-13 00:33:56 +00:00
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
char *name;
|
|
|
|
FILE *file;
|
|
|
|
char is_recording;
|
2022-12-14 16:32:36 +00:00
|
|
|
pthread_t pid;
|
2022-12-17 01:31:33 +00:00
|
|
|
args_readfile *args_rf;
|
2022-12-19 14:48:33 +00:00
|
|
|
/* Number of repetition */
|
|
|
|
int nb_loop;
|
|
|
|
/* Sleep in s between each repetition */
|
|
|
|
int sleep_loop;
|
2022-12-13 00:33:56 +00:00
|
|
|
} ui_infos;
|
|
|
|
|
2022-12-19 13:52:03 +00:00
|
|
|
ui_infos * init_ui(const char *name);
|
2022-12-13 00:33:56 +00:00
|
|
|
void free_ui(ui_infos *ptr);
|
|
|
|
int draw_ui(ui_infos *ptr);
|
|
|
|
|
|
|
|
#endif
|