X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ffs%2Funix%2Ffilemonitor_platform.h;h=a6e67a6b72edccd3070a03eb0100105013f77699;hb=4ad05c650c55e3edccea887d15b26f41cdf60fb6;hp=ed900bfeb7a2faa49f79197a5b9126719b546977;hpb=c8bf2d6c15893ccc9dbc4e04611b7229029f4808;p=libs%2Fcore.git diff --git a/source/fs/unix/filemonitor_platform.h b/source/fs/unix/filemonitor_platform.h index ed900bf..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 std::size_t do_write(const char *, std::size_t); - virtual std::size_t do_read(char *, std::size_t); + 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; } };