From 9c51177cd8f9fd01acf7b39dcd0bf3b6c78cf93f Mon Sep 17 00:00:00 2001 From: "Enrico M. Crisostomo" Date: Tue, 25 Sep 2018 14:43:21 +0200 Subject: [PATCH] Refactor and add imports --- libfswatch/src/libfswatch/c++/monitor.hpp | 4 ---- libfswatch/src/libfswatch/c++/monitor_factory.hpp | 6 ++++++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/libfswatch/src/libfswatch/c++/monitor.hpp b/libfswatch/src/libfswatch/c++/monitor.hpp index 15d2a48..a616b1a 100644 --- a/libfswatch/src/libfswatch/c++/monitor.hpp +++ b/libfswatch/src/libfswatch/c++/monitor.hpp @@ -615,10 +615,6 @@ namespace fsw # endif #endif }; - - typedef monitor *(*FSW_FN_MONITOR_CREATOR)(std::vector paths, - FSW_EVENT_CALLBACK *callback, - void *context); } #endif /* FSW__MONITOR_H */ diff --git a/libfswatch/src/libfswatch/c++/monitor_factory.hpp b/libfswatch/src/libfswatch/c++/monitor_factory.hpp index 1016ec5..7428a1c 100644 --- a/libfswatch/src/libfswatch/c++/monitor_factory.hpp +++ b/libfswatch/src/libfswatch/c++/monitor_factory.hpp @@ -28,8 +28,14 @@ #ifndef FSW__MONITOR_FACTORY_H # define FSW__MONITOR_FACTORY_H +#include "monitor.hpp" + namespace fsw { + typedef monitor *(*FSW_FN_MONITOR_CREATOR)(std::vector paths, + FSW_EVENT_CALLBACK *callback, + void *context); + /** * @brief Object factory class for fsw::monitor instances. *