mirror of
https://github.com/ksherlock/profuse.git
synced 2025-01-22 23:30:54 +00:00
30 lines
527 B
C
30 lines
527 B
C
|
|
||
|
|
||
|
#include "BlockDevice.h"
|
||
|
#include <string>
|
||
|
|
||
|
namespace ProFUSE {
|
||
|
|
||
|
// only supports 1 file; may be split over multiple files.
|
||
|
|
||
|
class DavexDiskImage : public DiskImage {
|
||
|
public:
|
||
|
|
||
|
DavexDiskImage(const char *, bool readOnly);
|
||
|
virtual ~DavexDiskImage();
|
||
|
|
||
|
static DavexDiskImage *Create(const char *name, size_t blocks);
|
||
|
static DavexDiskImage *Open(MappedFile *);
|
||
|
|
||
|
|
||
|
private:
|
||
|
|
||
|
DavexDiskImage(MappedFile *);
|
||
|
static void Validate(MappedFile *);
|
||
|
|
||
|
bool _changed;
|
||
|
std::string _volumeName;
|
||
|
};
|
||
|
|
||
|
|
||
|
}
|