rulimine/common/fs/iso9660.h

27 lines
630 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);
2021-10-21 02:27:05 +03:00
bool iso9660_open(struct iso9660_file_handle *ret, struct volume *vol, const char *path);
void iso9660_read(struct iso9660_file_handle *file, void *buf, uint64_t loc, uint64_t count);
void iso9660_close(struct iso9660_file_handle *file);
2021-02-21 05:45:24 +03:00
#endif