2 // XPCNotificationDispatcher.h
7 #import <Foundation/Foundation.h>
9 @protocol XPCNotificationListener
<NSObject
>
10 - (void) handleNotification
: (const char *) name
;
13 typedef void (^XPCNotificationBlock
)(const char* notification
);
15 @interface XPCNotificationDispatcher
: NSObject
17 + (instancetype
) dispatcher
;
19 - (instancetype
) init
;
21 - (void) addListener
: (NSObject
<XPCNotificationListener
>*) newHandler
;
22 - (void) removeListener
: (NSObject
<XPCNotificationListener
>*) existingHandler
;