profuse/Device/UniversalDiskImage.h

29 lines
534 B
C
Raw Normal View History

#ifndef __UNIVERSALDISKIMAGE_H__
#define __UNIVERSALDISKIMAGE_H__
#include <Device/BlockDevice.h>
#include <stdint.h>
namespace Device {
class UniversalDiskImage : public DiskImage {
public:
UniversalDiskImage(const char *name, bool readOnly);
static UniversalDiskImage *Create(const char *name, size_t blocks);
static UniversalDiskImage *Open(MappedFile *);
virtual bool readOnly();
private:
UniversalDiskImage(MappedFile *);
static void Validate(MappedFile *);
uint32_t _flags;
};
}
#endif