An Objective-C wrapper for Mac OS X’s FSEvents C API.
Revision | 2a0814394982b35f1f9ab1045edf6526622c6e7d (tree) |
---|---|
Zeit | 2010-04-04 02:58:12 |
Autor | Aron Cedercrantz <aron@cede...> |
Commiter | Aron Cedercrantz |
Added private API; create and dispose of an event stream and a callback function.
@@ -13,6 +13,20 @@ | ||
13 | 13 | // Private API |
14 | 14 | @interface CDEvents () |
15 | 15 | |
16 | +// The FSEvents callback function | |
17 | +static void CDEventsCallback( | |
18 | + ConstFSEventStreamRef streamRef, | |
19 | + void *callbackCtxInfo, | |
20 | + size_t numEvents, | |
21 | + void *eventPaths, | |
22 | + const FSEventStreamEventFlags eventFlags[], | |
23 | + const FSEventStreamEventId eventIds[]); | |
24 | + | |
25 | +// Creates and initiates the event stream. | |
26 | +- (void)createEventsStream; | |
27 | +// Disposes of the event stream. | |
28 | +- (void)disposeEventsStream; | |
29 | + | |
16 | 30 | @end |
17 | 31 | |
18 | 32 |