mirror of
https://github.com/objective-see/BlockBlock.git
synced 2026-03-22 07:02:39 +00:00
57ca40fc7f
BlockBlock v1.0 (beta)
33 lines
663 B
Objective-C
33 lines
663 B
Objective-C
//
|
|
// file: XPCProtocol.h
|
|
// project: BlockBlock (shared)
|
|
// description: protocol for talking to the daemon
|
|
//
|
|
// created by Patrick Wardle
|
|
// copyright (c) 2017 Objective-See. All rights reserved.
|
|
//
|
|
|
|
#ifndef userCommsInterface_h
|
|
#define userCommsInterface_h
|
|
|
|
@import Foundation;
|
|
|
|
@protocol XPCProtocol
|
|
|
|
//install
|
|
-(void)install:(NSString*)app reply:(void (^)(NSNumber*))reply;
|
|
|
|
//load/unload launch daemon
|
|
-(void)toggleDaemon:(BOOL)shouldLoad reply:(void (^)(NSNumber*))reply;
|
|
|
|
//uninstall
|
|
-(void)uninstall:(NSString*)app full:(BOOL)full reply:(void (^)(NSNumber*))reply;
|
|
|
|
//cleanup
|
|
// remove self
|
|
-(void)cleanup:(void (^)(NSNumber*))reply;
|
|
|
|
@end
|
|
|
|
#endif
|