-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.h
25 lines (19 loc) · 805 Bytes
/
ui.h
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
// MISC FUNCTIONS
#include <stdbool.h>
#include "file_system.h"
char *strstrip(char *str);
int print_text(int min_line, int display_max_y, file_content_t *file_content);
void modify_action_display(char action, int line_index);
bool request_access(file_content_t *file_content);
void add_to_log(file_content_t *file_content, char *user_name, char *new_line, int line_index, char action);
int print_log(int display_max_y, file_content_t *file_content);
// SETUP FUNCTIONS
void screensetup(void);
void text_box_setup();
void instructions_setup();
// DRIVERS
bool text_box_driver(file_content_t *file_content);
bool line_selection_driver(file_content_t *file_content, int ch, int max_line);
bool display_driver(file_content_t *file_content);
// MAIN THREAD FUNCTION
void *ui_thread_handler(void *args);