26 #ifndef FSW_FEN_MONITOR_H
27 # define FSW_FEN_MONITOR_H
39 struct fen_monitor_load;
84 void scan_root_paths();
85 bool scan(
const std::string& path,
bool is_root_path =
true);
86 bool is_path_watched(
const std::string& path)
const;
87 bool add_watch(
const std::string& path,
const struct stat& fd_stat);
88 bool associate_port(
struct fen_info *finfo,
const struct stat& fd_stat);
89 void process_events(
struct fen_info *obj,
int events);
90 void rescan_removed();
91 void rescan_pending();
94 fen_monitor_load *load;
void run() override
Executes the monitor loop.
void * context
Pointer to context data that will be passed to the monitor::callback.
Definition: monitor.hpp:553
Base class of all monitors.
Definition: monitor.hpp:146
Main namespace of libfswatch.
Definition: event.cpp:23
Solaris/Illumos monitor.
Definition: fen_monitor.hpp:53
Definition: cmonitor.h:51
virtual ~fen_monitor()
Destroys an instance of this class.
Header of the fsw::monitor class.
fen_monitor(std::vector< std::string > paths, FSW_EVENT_CALLBACK *callback, void *context=nullptr)
Constructs an instance of this class.
std::vector< std::string > paths
List of paths to watch.
Definition: monitor.hpp:533
FSW_EVENT_CALLBACK * callback
Callback to which change events should be notified.
Definition: monitor.hpp:548
void FSW_EVENT_CALLBACK(const std::vector< event > &, void *)
Function definition of an event callback.
Definition: monitor.hpp:60