X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ffs%2Funix%2Ffilemonitor_platform.h;h=a6e67a6b72edccd3070a03eb0100105013f77699;hb=39da82b967c70282973025e4b12186625e29fe26;hp=31b728ffd81b5ff56219aaf7ca8849b3aed34c9c;hpb=ffab0509a65f6f32851e64d66a5f7eeb453ab29f;p=libs%2Fcore.git diff --git a/source/fs/unix/filemonitor_platform.h b/source/fs/unix/filemonitor_platform.h index 31b728f..a6e67a6 100644 --- a/source/fs/unix/filemonitor_platform.h +++ b/source/fs/unix/filemonitor_platform.h @@ -1,6 +1,10 @@ #ifndef MSP_FS_FILEMONITOR_PLATFORM_H_ #define MSP_FS_FILEMONITOR_PLATFORM_H_ +#include +#include +#include "filemonitor.h" + namespace Msp { namespace FS { @@ -16,16 +20,16 @@ public: int add_watch(const FS::Path &, int); void remove_watch(int); - virtual void set_block(bool) { } - virtual void set_inherit(bool) { } + void set_block(bool) override { } + void set_inherit(bool) override { } protected: - virtual unsigned do_write(const char *, unsigned); - virtual unsigned do_read(char *, unsigned); + std::size_t do_write(const char *, std::size_t) override; + std::size_t do_read(char *, std::size_t) override; public: - virtual const IO::Handle &get_handle(IO::Mode) { return fd; } - virtual const IO::Handle &get_event_handle() { return fd; } + const IO::Handle &get_handle(IO::Mode) override { return fd; } + const IO::Handle &get_event_handle() override { return fd; } };