mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
16 lines
423 B
Objective-C
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
|