2016-04-04 22:45:49 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "common.h"
|
2016-11-25 13:34:01 +01:00
|
|
|
#include "filetype.h"
|
2016-04-04 22:45:49 +02:00
|
|
|
|
2017-06-01 15:11:41 +02:00
|
|
|
int ReadImageBytes(void* buffer, u64 offset, u64 count);
|
|
|
|
int WriteImageBytes(const void* buffer, u64 offset, u64 count);
|
|
|
|
int ReadImageSectors(void* buffer, u32 sector, u32 count);
|
|
|
|
int WriteImageSectors(const void* buffer, u32 sector, u32 count);
|
2016-04-04 22:45:49 +02:00
|
|
|
int SyncImage(void);
|
|
|
|
|
|
|
|
u64 GetMountSize(void);
|
|
|
|
u32 GetMountState(void);
|
2016-11-29 16:33:56 +01:00
|
|
|
const char* GetMountPath(void);
|
2016-04-04 22:45:49 +02:00
|
|
|
u32 MountImage(const char* path);
|