pEp macOS Desktop adapter
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
973 B

// main.m
// pEpMacOSAdapter
// Created by Volker Birk on 20.04.20.
// Copyleft © 2020 p≡p foundation.
// This file is under GNU General Public License 3.0
@import Foundation;
#import <PEPObjCAdapterXPCService.h>
#import <PEPUpdateDownloadXPCService.h>
#include <signal.h>
void signal_TERM(int signal)
NSLog(@"stopping agent");
int main(int argc, const char *argv[])
signal(SIGTERM, signal_TERM);
// Create an instance of the PEP updatedownload service and start it
PEPUpdateDownloadXPCService *updateDownloadService = [PEPUpdateDownloadXPCService new];
[updateDownloadService start];
// Create an instance of the PEP ObjC wrapper Adapter and start it
PEPObjCAdapterXPCService *objCAdapterService = [PEPObjCAdapterXPCService new];
[objCAdapterService start];
NSLog(@"going into main runLoop");
NSRunLoop* runLoop = [NSRunLoop currentRunLoop];
[runLoop run];