mirror of
https://github.com/objective-see/BlockBlock.git
synced 2026-03-22 07:02:39 +00:00
bde2c52dd6
converted XPC calls to synchronous (where response data is requested) reworked installer to address Full Disk Access issues
40 lines
719 B
Objective-C
40 lines
719 B
Objective-C
//
|
|
// file: HelperComms.h
|
|
// project: BlockBlock (config)
|
|
// description: interface to talk to blessed installer (header)
|
|
//
|
|
// created by Patrick Wardle
|
|
// copyright (c) 2018 Objective-See. All rights reserved.
|
|
//
|
|
|
|
@import Foundation;
|
|
|
|
#import "XPCProtocol.h"
|
|
|
|
|
|
@interface HelperComms : NSObject
|
|
|
|
//remote deamon proxy object
|
|
@property(nonatomic, retain) id <XPCProtocol> daemon;
|
|
|
|
//xpc connection
|
|
@property (atomic, strong, readwrite) NSXPCConnection* xpcServiceConnection;
|
|
|
|
/* METHODS */
|
|
|
|
//install
|
|
-(BOOL)install;
|
|
|
|
//load/unload launch daemon
|
|
-(BOOL)toggleDaemon:(BOOL)shouldLoad;
|
|
|
|
//uninstall
|
|
// takes flag to indicate full/partial
|
|
-(BOOL)uninstall:(BOOL)full;
|
|
|
|
//cleanup
|
|
// remove self
|
|
-(BOOL)cleanup;
|
|
|
|
@end
|