Files
BlockBlock/Installer/Shared/XPCProtocol.h
T
Patrick Wardle 57ca40fc7f initial checkin
BlockBlock v1.0 (beta)
2020-04-10 21:09:09 -10:00

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