diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-02-16 00:52:58 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-02-16 00:52:58 +0100 |
commit | 2dc7c5a7b09bc53d6b15362b61a19046b4611833 (patch) | |
tree | 3f172e6349fb4f7c561a2a7a34219ceb8d0c9335 | |
parent | 994279d56c0186d7037c64473010718604d7e869 (diff) | |
download | serenity-2dc7c5a7b09bc53d6b15362b61a19046b4611833.zip |
Kernel: Add empty BlockDevice class.
-rw-r--r-- | Kernel/BlockDevice.cpp | 5 | ||||
-rw-r--r-- | Kernel/BlockDevice.h | 11 | ||||
-rw-r--r-- | Kernel/CharacterDevice.cpp | 2 | ||||
-rw-r--r-- | Kernel/Makefile | 1 |
4 files changed, 17 insertions, 2 deletions
diff --git a/Kernel/BlockDevice.cpp b/Kernel/BlockDevice.cpp new file mode 100644 index 0000000000..d81d2bbc34 --- /dev/null +++ b/Kernel/BlockDevice.cpp @@ -0,0 +1,5 @@ +#include <Kernel/BlockDevice.h> + +BlockDevice::~BlockDevice() +{ +} diff --git a/Kernel/BlockDevice.h b/Kernel/BlockDevice.h new file mode 100644 index 0000000000..3f42270eb2 --- /dev/null +++ b/Kernel/BlockDevice.h @@ -0,0 +1,11 @@ +#pragma once + +#include <Kernel/Device.h> + +class BlockDevice : public Device { +public: + virtual ~BlockDevice() override; + +protected: + BlockDevice(unsigned major, unsigned minor) : Device(major, minor) { } +}; diff --git a/Kernel/CharacterDevice.cpp b/Kernel/CharacterDevice.cpp index 0f6df53c17..a783e80d7d 100644 --- a/Kernel/CharacterDevice.cpp +++ b/Kernel/CharacterDevice.cpp @@ -1,5 +1,3 @@ -#pragma once - #include <Kernel/CharacterDevice.h> CharacterDevice::~CharacterDevice() diff --git a/Kernel/Makefile b/Kernel/Makefile index acd006c057..f74cbb6740 100644 --- a/Kernel/Makefile +++ b/Kernel/Makefile @@ -39,6 +39,7 @@ VFS_OBJS = \ DiskDevice.o \ Device.o \ CharacterDevice.o \ + BlockDevice.o \ NullDevice.o \ FullDevice.o \ ZeroDevice.o \ |