-
Notifications
You must be signed in to change notification settings - Fork 0
/
interface.h
46 lines (36 loc) · 1.28 KB
/
interface.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef _INTERFACE_H_
#define _INTERFACE_H_
#include "logger.h"
#include "scheduler.h"
#include <limits.h>
#include <ncurses.h>
#include <panel.h>
#include <string.h>
#define MAXSTR 30
#define MAXINSTS 50
typedef struct _PANEL_DATA {
int hide; /* TRUE if panel is hidden */
} PANEL_DATA;
extern struct process processo;
void init_wins(WINDOW **wins);
void win_show(WINDOW *win, char *label, int label_color);
void print_in_middle(WINDOW *win, int starty, int startx, uint64_t width,
char *string, chtype color);
void show_commands(WINDOW *win);
void init_interface(WINDOW **my_wins, PANEL **my_panels,
PANEL_DATA *panel_datas);
void show_keyboard_shortcuts(void);
void print_prompt_char(WINDOW *console_win);
void do_backspace_action_on_console(WINDOW *win);
void do_enter_action_on_console(WINDOW *win);
void add_char_to_console(WINDOW *win, int ch);
void update_interface(WINDOW **wins, PANEL **panels, p_queue_t *p);
void restart_tcb(WINDOW *win);
void restart_status(WINDOW *win);
void restart_queue(WINDOW *win);
void restart_map(WINDOW *win);
void print_process_queue(WINDOW *win, p_queue_t *p);
void print_bit_map_of_processes_memory(WINDOW *win);
void read_instructions_file(WINDOW *win, p_queue_t *p);
void show_title(sched_info_t sched_info);
#endif