diff options
Diffstat (limited to '')
-rw-r--r-- | src/InotifySource.hxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/InotifySource.hxx b/src/InotifySource.hxx index 1fe840c12..f6ddea966 100644 --- a/src/InotifySource.hxx +++ b/src/InotifySource.hxx @@ -21,6 +21,7 @@ #define MPD_INOTIFY_SOURCE_HXX #include "event/SocketMonitor.hxx" +#include "util/FifoBuffer.hxx" #include "Compiler.h" class Error; @@ -32,7 +33,7 @@ class InotifySource final : private SocketMonitor { mpd_inotify_callback_t callback; void *callback_ctx; - struct fifo_buffer *buffer; + FifoBuffer<uint8_t, 4096> buffer; InotifySource(EventLoop &_loop, mpd_inotify_callback_t callback, void *ctx, int fd); @@ -49,9 +50,6 @@ public: void *ctx, Error &error); - ~InotifySource(); - - /** * Adds a path to the notify list. * |