start of a major rewrite
This commit is contained in:
11
defines.h
11
defines.h
@@ -3,10 +3,10 @@
|
||||
#define STATUS_QUIT_PROGRAM 1
|
||||
#define STATUS_RUN_BACKEND 2
|
||||
#define STATUS_RELOAD_DIRECTORY 4
|
||||
#define STATUS_UPDATE_SCREEN_MASK 24 /* 11000 */
|
||||
#define STATUS_UPDATE_SCREEN_0 8
|
||||
#define STATUS_UPDATE_SCREEN_INTERACTION 8
|
||||
#define STATUS_UPDATE_SCREEN_RESIZE 16
|
||||
#define STATUS_UPDATE_SCREEN_RELOAD_FULL 32
|
||||
#define STATUS_UPDATE_SCREEN_PRINTED 32
|
||||
#define STATUS_UPDATE_SCREEN_MASK (STATUS_UPDATE_SCREEN_INTERACTION | STATUS_UPDATE_SCREEN_RESIZE | STATUS_UPDATE_SCREEN_PRINTED)
|
||||
#define STATUS_USER_ROOT 64
|
||||
#define STATUS_INPUT_MATCH 128
|
||||
#define STATUS_DELTA_TIME 256
|
||||
@@ -70,6 +70,11 @@ typedef struct File {
|
||||
unsigned long file_size; /*if its a file, its in bytes, if its a dir, its the count of files within that dir */
|
||||
char *file_name;
|
||||
} file;
|
||||
typedef struct Dir {
|
||||
unsigned long file_count;
|
||||
file *current_file;
|
||||
file *file_list;
|
||||
} dir;
|
||||
typedef struct Color {
|
||||
char *file_extension;
|
||||
short color_pair;
|
||||
|
||||
Reference in New Issue
Block a user