2024-03-09 20:18:19 +01:00
|
|
|
#ifndef FILE_H_
|
|
|
|
#define FILE_H_
|
|
|
|
|
|
|
|
typedef struct file {
|
2024-03-12 21:59:36 +01:00
|
|
|
char *path;
|
2024-03-11 22:54:14 +01:00
|
|
|
char *stats;
|
2024-03-13 11:18:35 +01:00
|
|
|
char *type;
|
2024-03-09 20:18:19 +01:00
|
|
|
// put some more useful stat here
|
|
|
|
struct file *next;
|
|
|
|
} file;
|
|
|
|
|
|
|
|
long files_len();
|
2024-03-13 11:18:35 +01:00
|
|
|
long marked_len();
|
2024-03-12 21:59:36 +01:00
|
|
|
void clear_files();
|
2024-03-13 11:18:35 +01:00
|
|
|
void clear_marked();
|
|
|
|
long add_file(char *filename, char *time, char *type);
|
2024-03-09 20:18:19 +01:00
|
|
|
file *get_file(long index);
|
2024-03-12 21:59:36 +01:00
|
|
|
char *get_filepath(long index);
|
2024-03-11 22:54:14 +01:00
|
|
|
char *get_line(long index);
|
2024-03-09 20:18:19 +01:00
|
|
|
|
|
|
|
#endif
|