diff options
Diffstat (limited to 'src/kernel/fs/iso9660/iso9660.h')
-rw-r--r-- | src/kernel/fs/iso9660/iso9660.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/kernel/fs/iso9660/iso9660.h b/src/kernel/fs/iso9660/iso9660.h new file mode 100644 index 0000000..3de5d1a --- /dev/null +++ b/src/kernel/fs/iso9660/iso9660.h @@ -0,0 +1,22 @@ +#ifndef MELVIX_ISO9660_H +#define MELVIX_ISO9660_H + +#define ISO9660_ROOT_RECORD_OFFSET 156 +#define ISO9660_DIR_RECORD_LENGTH 0 +#define ISO9660_DIR_EAR_LBA 2 +#define ISO9660_DIR_EAR_LENGTH 10 +#define ISO9660_DIR_FILENAME_LENGTH 32 +#define ISO9660_DIR_FILENAME 33 + +#include <stdint.h> + +struct ISO9660_entity { + uint32_t LBA; + uint32_t length; +}; + +struct ISO9660_entity *ISO9660_get(char **dirs, uint8_t dirs_sz); + +uint8_t *ISO9660_read(struct ISO9660_entity *entity); + +#endif |