From de20d7430df08731d9108acb83e1234ba7f1fe16 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Sat, 19 Sep 2020 14:53:29 -0400 Subject: file manager --- src/kernel/drive.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/kernel/drive.c') diff --git a/src/kernel/drive.c b/src/kernel/drive.c index 731088c..2ae050f 100644 --- a/src/kernel/drive.c +++ b/src/kernel/drive.c @@ -36,6 +36,11 @@ static uint32_t unknown_enumerate_dir(const struct drive *d, const char *path, s return 0; } +__attribute__ ((const)) +static uint32_t unknown_n_dir_entries(const struct drive *d, const char *path) { + return 0; +} + static inline void determine_fs(struct drive *d) { if (try_fat_init_drive(d)) return; @@ -46,6 +51,7 @@ static inline void determine_fs(struct drive *d) { d->load_sector = &unknown_load_sector; d->get_file_length = &unknown_get_file_length; d->enumerate_dir = &unknown_enumerate_dir; + d->n_dir_entries = &unknown_n_dir_entries; d->get_free_sectors = &unknown_get_free_sectors; } -- cgit v1.2.3