mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
DiskDevice: Add missing override and remove unnecessary class_name()
This class needs to be fixed up to not hide the read()/write() virtuals at some point.
This commit is contained in:
parent
60c25228ee
commit
bebe7c4cff
1 changed files with 1 additions and 2 deletions
|
@ -9,12 +9,11 @@ typedef u32 DiskOffset;
|
||||||
|
|
||||||
class DiskDevice : public BlockDevice {
|
class DiskDevice : public BlockDevice {
|
||||||
public:
|
public:
|
||||||
virtual ~DiskDevice();
|
virtual ~DiskDevice() override;
|
||||||
|
|
||||||
virtual unsigned block_size() const = 0;
|
virtual unsigned block_size() const = 0;
|
||||||
virtual bool read_block(unsigned index, u8*) const = 0;
|
virtual bool read_block(unsigned index, u8*) const = 0;
|
||||||
virtual bool write_block(unsigned index, const u8*) = 0;
|
virtual bool write_block(unsigned index, const u8*) = 0;
|
||||||
virtual const char* class_name() const = 0;
|
|
||||||
bool read(DiskOffset, unsigned length, u8*) const;
|
bool read(DiskOffset, unsigned length, u8*) const;
|
||||||
bool write(DiskOffset, unsigned length, const u8*);
|
bool write(DiskOffset, unsigned length, const u8*);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue