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. *