mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
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.
21 lines
692 B
C++
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 */
|