diff options
Diffstat (limited to 'kernel/devices/include/devices/BlockDevice.hpp')
| -rw-r--r-- | kernel/devices/include/devices/BlockDevice.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/devices/include/devices/BlockDevice.hpp b/kernel/devices/include/devices/BlockDevice.hpp index db66683..69d7f81 100644 --- a/kernel/devices/include/devices/BlockDevice.hpp +++ b/kernel/devices/include/devices/BlockDevice.hpp @@ -1,10 +1,15 @@ #ifndef TEACH_OS_KERNEL_DEVICES_BLOCK_DEVICE_HPP #define TEACH_OS_KERNEL_DEVICES_BLOCK_DEVICE_HPP +#include <cstddef> + namespace devices { struct block_device { + virtual ~block_device() = default; + + virtual auto read_block(size_t block_index, void * buffer) const -> void = 0; }; } // namespace devices |
