rulimine/stage23/fs/iso9660.h

26 lines
574 B
C
Raw Normal View History

2021-02-21 05:45:24 +03:00
#ifndef __FS__ISO9660_H__
#define __FS__ISO9660_H__
#include <stdint.h>
#include <lib/part.h>
#define ISO9660_SECTOR_SIZE (2 << 10)
struct iso9660_context {
2021-03-04 11:15:10 +03:00
struct volume *vol;
2021-02-21 05:45:24 +03:00
void* root;
uint32_t root_size;
};
struct iso9660_file_handle {
2021-02-22 20:37:30 +03:00
struct iso9660_context *context;
2021-02-21 05:45:24 +03:00
uint32_t LBA;
uint32_t size;
};
int iso9660_check_signature(struct volume *vol);
int iso9660_open(struct iso9660_file_handle *ret, struct volume *vol, const char *path);
int iso9660_read(struct iso9660_file_handle *file, void *buf, uint64_t loc, uint64_t count);
#endif