From 990e4785820136f2ab4a3bf4c1afbf0e8cf28b3c Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 24 Feb 2015 18:52:09 +0100 Subject: Complete ISO9660 impl ; some strange wtf is going on. --- src/kernel/include/fs/iso9660.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/kernel/include') diff --git a/src/kernel/include/fs/iso9660.h b/src/kernel/include/fs/iso9660.h index 292b4dd..85e9b7b 100644 --- a/src/kernel/include/fs/iso9660.h +++ b/src/kernel/include/fs/iso9660.h @@ -8,6 +8,8 @@ #define ISO9660_VDT_PARTITION 3 #define ISO9660_VDT_TERMINATOR 255 +#define ISO9660_DR_FLAG_DIR (1 << 1) + typedef struct { uint32_t lsb, msb; } uint32_lsb_msb_t; @@ -87,6 +89,23 @@ typedef union { char buf[2048]; } iso9660_vdt_entry_t; +typedef struct { + iso9660_pvd_t vol_descr; + fs_handle_t *disk; + bool use_lowercase; // lowercase all names +} iso9660_fs_t; + +typedef struct { + iso9660_dr_t dr; + iso9660_fs_t *fs; +} iso9660_node_t; + +typedef struct { + iso9660_node_t *n; + size_t pos; + char buffer[2048]; +} iso9660_dh_t; // handle to an open directory + void register_iso9660_driver(); /* vim: set ts=4 sw=4 tw=0 noet :*/ -- cgit v1.2.3