]> git.saurik.com Git - apple/security.git/blob - KVSKeychainSyncingProxy/XPCNotificationDispatcher.h
Security-58286.230.21.tar.gz
[apple/security.git] / KVSKeychainSyncingProxy / XPCNotificationDispatcher.h
1 //
2 // XPCNotificationDispatcher.h
3 // Security
4 //
5
6
7 #import <Foundation/Foundation.h>
8
9 @protocol XPCNotificationListener <NSObject>
10 - (void) handleNotification: (const char *) name;
11 @end
12
13 typedef void (^XPCNotificationBlock)(const char* notification);
14
15 @interface XPCNotificationDispatcher : NSObject
16
17 + (instancetype) dispatcher;
18
19 - (instancetype) init;
20
21 - (void) addListener: (NSObject<XPCNotificationListener>*) newHandler;
22 - (void) removeListener: (NSObject<XPCNotificationListener>*) existingHandler;
23
24 @end