2009-11-21 01:45:08 +00:00
|
|
|
#ifndef __UNIVERSALDISKIMAGE_H__
|
|
|
|
#define __UNIVERSALDISKIMAGE_H__
|
|
|
|
|
|
|
|
|
2009-12-16 01:33:28 +00:00
|
|
|
#include <Device/BlockDevice.h>
|
2009-11-24 04:36:48 +00:00
|
|
|
#include <stdint.h>
|
2009-11-21 01:45:08 +00:00
|
|
|
|
2009-12-16 01:33:28 +00:00
|
|
|
namespace Device {
|
2009-11-21 01:45:08 +00:00
|
|
|
|
|
|
|
class UniversalDiskImage : public DiskImage {
|
|
|
|
public:
|
|
|
|
UniversalDiskImage(const char *name, bool readOnly);
|
|
|
|
|
|
|
|
static UniversalDiskImage *Create(const char *name, size_t blocks);
|
|
|
|
static UniversalDiskImage *Open(MappedFile *);
|
|
|
|
|
2009-11-23 22:36:05 +00:00
|
|
|
virtual bool readOnly();
|
|
|
|
|
2009-11-21 01:45:08 +00:00
|
|
|
private:
|
|
|
|
UniversalDiskImage(MappedFile *);
|
|
|
|
static void Validate(MappedFile *);
|
2009-11-23 22:36:05 +00:00
|
|
|
|
2009-11-24 04:36:48 +00:00
|
|
|
uint32_t _flags;
|
2009-11-21 01:45:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|