26 #ifndef FSW_FSEVENT_MONITOR_H 
   27 #  define FSW_FSEVENT_MONITOR_H 
   30 #  include <CoreServices/CoreServices.h> 
   74     static void fsevents_callback(ConstFSEventStreamRef streamRef,
 
   75                                   void *clientCallBackInfo,
 
   78                                   const FSEventStreamEventFlags eventFlags[],
 
   79                                   const FSEventStreamEventId eventIds[]);
 
   81     FSEventStreamRef stream = 
nullptr;
 
   82     CFRunLoopRef run_loop = 
nullptr;
 
OS X FSEvents monitor. 
Definition: fsevents_monitor.hpp:39
 
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
 
fsevents_monitor(std::vector< std::string > paths, FSW_EVENT_CALLBACK *callback, void *context=nullptr)
Constructs an instance of this class. 
 
void on_stop() override
Execute an implementation-specific stop handler. 
Definition: fsevents_monitor.cpp:147
 
Definition: cmonitor.h:46
 
Header of the fsw::monitor class. 
 
virtual ~fsevents_monitor()
Destroys an instance of this class. 
Definition: fsevents_monitor.cpp:76
 
void run() override
Executes the monitor loop. 
Definition: fsevents_monitor.cpp:80
 
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