Files
atom/Atom/src/PathWatcher.h
2012-05-02 18:00:55 -07:00

16 lines
423 B
Objective-C

#import <Foundation/Foundation.h>
typedef void (^WatchCallback)(NSArray *);
@interface PathWatcher : NSObject {
int _kq;
NSMutableDictionary *_fileDescriptorsByPath;
NSMutableDictionary *_callbacksByFileDescriptor;
}
+ (NSString *)watchPath:(NSString *)path callback:(WatchCallback)callback;
+ (void)unwatchPath:(NSString *)path callbackId:(NSString *)callbackId error:(NSError **)error;
+ (void)unwatchAll;
@end