2024-03-09 20:18:19 +01:00
|
|
|
#ifndef FILE_H_
|
|
|
|
#define FILE_H_
|
|
|
|
|
|
|
|
typedef struct file {
|
2024-03-09 20:46:15 +01:00
|
|
|
char *name;
|
2024-03-09 20:18:19 +01:00
|
|
|
// put some more useful stat here
|
|
|
|
struct file *next;
|
|
|
|
} file;
|
|
|
|
|
|
|
|
long files_len();
|
|
|
|
long add_file(char *filename);
|
|
|
|
file *get_file(long index);
|
|
|
|
char *get_filename(long index);
|
|
|
|
|
|
|
|
#endif
|