···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2019 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+2121+#ifndef _AssertionServices_H_
2222+#define _AssertionServices_H_
2323+2424+#import <Foundation/Foundation.h>
2525+2626+#import <AssertionServices/BSDescriptionProviding.h>
2727+#import <AssertionServices/BSXPCCoding.h>
2828+#import <AssertionServices/RBSAssertionObserving.h>
2929+#import <AssertionServices/RBSServiceDelegate.h>
3030+#import <AssertionServices/BKSWorkspace.h>
3131+#import <AssertionServices/BKSAssertion.h>
3232+#import <AssertionServices/BKSProcessExitContext.h>
3333+#import <AssertionServices/BKSProcess.h>
3434+#import <AssertionServices/BKSTerminationContext.h>
3535+#import <AssertionServices/BKSProcessAssertion.h>
3636+#import <AssertionServices/BKSTerminationAssertionObserverManager.h>
3737+#import <AssertionServices/BKSTerminationAssertion.h>
3838+#import <AssertionServices/BKSApplicationStateMonitor.h>
3939+#import <AssertionServices/BKSLaunchdJobSpecification.h>
4040+4141+void* BKSAssertionErrorDescription(void);
4242+void* BKSProcessAssertionBackgroundTimeRemaining(void);
4343+void* BKSProcessAssertionSetExpirationHandler(void);
4444+void* BKSProcessDiagnosticReportTypeDescription(void);
4545+void* BKSProcessVisibilityIsForeground(void);
4646+void* BKSProcessVisibilityMax(void);
4747+void* BKSTerminationAssertionActiveEfficacyForBundleIdentifier(void);
4848+void* BKSTerminationAssertionEfficacyDescription(void);
4949+void* BKSTerminationAssertionHeldForBundleIdentifier(void);
5050+void* BKSTerminationAssertionRegisterObserver(void);
5151+void* BKSTerminationAssertionUnregisterObserver(void);
5252+void* BKSWatchdogAssertionCreateForPID(void);
5353+void* BKSWatchdogAssertionGetTypeID(void);
5454+void* NSStringFromBKSProcessErrorCode(void);
5555+void* NSStringFromBKSProcessExitReason(void);
5656+void* NSStringFromBKSProcessTaskState(void);
5757+void* NSStringFromBKSProcessVisibility(void);
5858+void* RBSProcessLegacyStateDescriptor(void);
5959+6060+#endif
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2019 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@interface BKSApplicationStateMonitor : NSObject
2323+2424+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2019 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@interface BKSAssertion : NSObject
2323+2424+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2019 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@interface BKSLaunchdJobSpecification : NSObject
2323+2424+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2019 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@interface BKSProcess : NSObject
2323+2424+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2019 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@interface BKSProcessAssertion : NSObject
2323+2424+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2019 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@interface BKSProcessExitContext : NSObject
2323+2424+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2019 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@interface BKSTerminationAssertion : NSObject
2323+2424+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2019 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@interface BKSTerminationAssertionObserverManager : NSObject
2323+2424+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2019 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@interface BKSTerminationContext : NSObject
2323+2424+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2019 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@interface BKSWorkspace : NSObject
2323+2424+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2019 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@protocol BSDescriptionProviding
2323+2424+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2019 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@protocol BSXPCCoding
2323+2424+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2019 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@protocol RBSAssertionObserving
2323+2424+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2019 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@protocol RBSServiceDelegate
2323+2424+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2019 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+2121+#include <AssertionServices/AssertionServices.h>
2222+#include <stdlib.h>
2323+#include <stdio.h>
2424+2525+static int verbose = 0;
2626+2727+__attribute__((constructor))
2828+static void initme(void) {
2929+ verbose = getenv("STUB_VERBOSE") != NULL;
3030+}
3131+3232+void* BKSAssertionErrorDescription(void)
3333+{
3434+ if (verbose) puts("STUB: BKSAssertionErrorDescription called");
3535+ return NULL;
3636+}
3737+3838+void* BKSProcessAssertionBackgroundTimeRemaining(void)
3939+{
4040+ if (verbose) puts("STUB: BKSProcessAssertionBackgroundTimeRemaining called");
4141+ return NULL;
4242+}
4343+4444+void* BKSProcessAssertionSetExpirationHandler(void)
4545+{
4646+ if (verbose) puts("STUB: BKSProcessAssertionSetExpirationHandler called");
4747+ return NULL;
4848+}
4949+5050+void* BKSProcessDiagnosticReportTypeDescription(void)
5151+{
5252+ if (verbose) puts("STUB: BKSProcessDiagnosticReportTypeDescription called");
5353+ return NULL;
5454+}
5555+5656+void* BKSProcessVisibilityIsForeground(void)
5757+{
5858+ if (verbose) puts("STUB: BKSProcessVisibilityIsForeground called");
5959+ return NULL;
6060+}
6161+6262+void* BKSProcessVisibilityMax(void)
6363+{
6464+ if (verbose) puts("STUB: BKSProcessVisibilityMax called");
6565+ return NULL;
6666+}
6767+6868+void* BKSTerminationAssertionActiveEfficacyForBundleIdentifier(void)
6969+{
7070+ if (verbose) puts("STUB: BKSTerminationAssertionActiveEfficacyForBundleIdentifier called");
7171+ return NULL;
7272+}
7373+7474+void* BKSTerminationAssertionEfficacyDescription(void)
7575+{
7676+ if (verbose) puts("STUB: BKSTerminationAssertionEfficacyDescription called");
7777+ return NULL;
7878+}
7979+8080+void* BKSTerminationAssertionHeldForBundleIdentifier(void)
8181+{
8282+ if (verbose) puts("STUB: BKSTerminationAssertionHeldForBundleIdentifier called");
8383+ return NULL;
8484+}
8585+8686+void* BKSTerminationAssertionRegisterObserver(void)
8787+{
8888+ if (verbose) puts("STUB: BKSTerminationAssertionRegisterObserver called");
8989+ return NULL;
9090+}
9191+9292+void* BKSTerminationAssertionUnregisterObserver(void)
9393+{
9494+ if (verbose) puts("STUB: BKSTerminationAssertionUnregisterObserver called");
9595+ return NULL;
9696+}
9797+9898+void* BKSWatchdogAssertionCreateForPID(void)
9999+{
100100+ if (verbose) puts("STUB: BKSWatchdogAssertionCreateForPID called");
101101+ return NULL;
102102+}
103103+104104+void* BKSWatchdogAssertionGetTypeID(void)
105105+{
106106+ if (verbose) puts("STUB: BKSWatchdogAssertionGetTypeID called");
107107+ return NULL;
108108+}
109109+110110+void* NSStringFromBKSProcessErrorCode(void)
111111+{
112112+ if (verbose) puts("STUB: NSStringFromBKSProcessErrorCode called");
113113+ return NULL;
114114+}
115115+116116+void* NSStringFromBKSProcessExitReason(void)
117117+{
118118+ if (verbose) puts("STUB: NSStringFromBKSProcessExitReason called");
119119+ return NULL;
120120+}
121121+122122+void* NSStringFromBKSProcessTaskState(void)
123123+{
124124+ if (verbose) puts("STUB: NSStringFromBKSProcessTaskState called");
125125+ return NULL;
126126+}
127127+128128+void* NSStringFromBKSProcessVisibility(void)
129129+{
130130+ if (verbose) puts("STUB: NSStringFromBKSProcessVisibility called");
131131+ return NULL;
132132+}
133133+134134+void* RBSProcessLegacyStateDescriptor(void)
135135+{
136136+ if (verbose) puts("STUB: RBSProcessLegacyStateDescriptor called");
137137+ return NULL;
138138+}
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2019 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <AssertionServices/BKSApplicationStateMonitor.h>
2121+2222+@implementation BKSApplicationStateMonitor
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
2525+{
2626+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2727+}
2828+2929+- (void)forwardInvocation:(NSInvocation *)anInvocation
3030+{
3131+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3232+}
3333+3434+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2019 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <AssertionServices/BKSAssertion.h>
2121+2222+@implementation BKSAssertion
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
2525+{
2626+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2727+}
2828+2929+- (void)forwardInvocation:(NSInvocation *)anInvocation
3030+{
3131+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3232+}
3333+3434+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2019 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <AssertionServices/BKSLaunchdJobSpecification.h>
2121+2222+@implementation BKSLaunchdJobSpecification
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
2525+{
2626+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2727+}
2828+2929+- (void)forwardInvocation:(NSInvocation *)anInvocation
3030+{
3131+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3232+}
3333+3434+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2019 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <AssertionServices/BKSProcess.h>
2121+2222+@implementation BKSProcess
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
2525+{
2626+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2727+}
2828+2929+- (void)forwardInvocation:(NSInvocation *)anInvocation
3030+{
3131+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3232+}
3333+3434+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2019 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <AssertionServices/BKSProcessAssertion.h>
2121+2222+@implementation BKSProcessAssertion
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
2525+{
2626+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2727+}
2828+2929+- (void)forwardInvocation:(NSInvocation *)anInvocation
3030+{
3131+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3232+}
3333+3434+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2019 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <AssertionServices/BKSProcessExitContext.h>
2121+2222+@implementation BKSProcessExitContext
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
2525+{
2626+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2727+}
2828+2929+- (void)forwardInvocation:(NSInvocation *)anInvocation
3030+{
3131+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3232+}
3333+3434+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2019 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <AssertionServices/BKSTerminationAssertion.h>
2121+2222+@implementation BKSTerminationAssertion
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
2525+{
2626+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2727+}
2828+2929+- (void)forwardInvocation:(NSInvocation *)anInvocation
3030+{
3131+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3232+}
3333+3434+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2019 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <AssertionServices/BKSTerminationAssertionObserverManager.h>
2121+2222+@implementation BKSTerminationAssertionObserverManager
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
2525+{
2626+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2727+}
2828+2929+- (void)forwardInvocation:(NSInvocation *)anInvocation
3030+{
3131+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3232+}
3333+3434+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2019 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <AssertionServices/BKSTerminationContext.h>
2121+2222+@implementation BKSTerminationContext
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
2525+{
2626+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2727+}
2828+2929+- (void)forwardInvocation:(NSInvocation *)anInvocation
3030+{
3131+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3232+}
3333+3434+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2019 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <AssertionServices/BKSWorkspace.h>
2121+2222+@implementation BKSWorkspace
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
2525+{
2626+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2727+}
2828+2929+- (void)forwardInvocation:(NSInvocation *)anInvocation
3030+{
3131+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3232+}
3333+3434+@end