Files
textmate/Frameworks/io/src/events.h
Allan Odgaard 0e96a04d76 Remove compatibility checks
Since we now require 10.7 we don’t need all of this. Keeping it around is just noise that can lead to confusion about code paths.
2012-08-29 16:02:29 +02:00

21 lines
692 B
C++

#ifndef FS_EVENTS_H_E5F4DSTS
#define FS_EVENTS_H_E5F4DSTS
#include <oak/misc.h>
namespace fs
{
struct event_callback_t
{
virtual ~event_callback_t () { }
virtual void set_replaying_history (bool flag, std::string const& observedPath, uint64_t eventId) { }
virtual void did_change (std::string const& path, std::string const& observedPath, uint64_t eventId, bool recursive) = 0;
};
PUBLIC void watch (std::string const& path, event_callback_t* callback, uint64_t eventId = kFSEventStreamEventIdSinceNow, CFTimeInterval latency = 1.0);
PUBLIC void unwatch (std::string const& path, event_callback_t* callback);
} /* fs */
#endif /* end of include guard: FS_EVENTS_H_E5F4DSTS */