Skip to content

Commit

Permalink
Merge pull request #1108 from zachwolfe/assertionservices
Browse files Browse the repository at this point in the history
Add AssertionServices.framework stubs
  • Loading branch information
facekapow authored Apr 4, 2022
2 parents 13f18de + 4181a8d commit 53c8e74
Show file tree
Hide file tree
Showing 29 changed files with 905 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/private-frameworks/AssertionServices/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
project(AssertionServices)

set(DYLIB_COMPAT_VERSION "1.0.0")
set(DYLIB_CURRENT_VERSION "223.140.2")

add_framework(AssertionServices
FAT
CURRENT_VERSION
PRIVATE
VERSION "A"

SOURCES
src/AssertionServices.m
src/BKSWorkspace.m
src/BKSAssertion.m
src/BKSProcessExitContext.m
src/BKSProcess.m
src/BKSTerminationContext.m
src/BKSProcessAssertion.m
src/BKSTerminationAssertionObserverManager.m
src/BKSTerminationAssertion.m
src/BKSApplicationStateMonitor.m
src/BKSLaunchdJobSpecification.m

DEPENDENCIES
system
objc
Foundation
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/*
This file is part of Darling.
Copyright (C) 2019 Lubos Dolezel
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/


#ifndef _AssertionServices_H_
#define _AssertionServices_H_

#import <Foundation/Foundation.h>

#import <AssertionServices/BSDescriptionProviding.h>
#import <AssertionServices/BSXPCCoding.h>
#import <AssertionServices/RBSAssertionObserving.h>
#import <AssertionServices/RBSServiceDelegate.h>
#import <AssertionServices/BKSWorkspace.h>
#import <AssertionServices/BKSAssertion.h>
#import <AssertionServices/BKSProcessExitContext.h>
#import <AssertionServices/BKSProcess.h>
#import <AssertionServices/BKSTerminationContext.h>
#import <AssertionServices/BKSProcessAssertion.h>
#import <AssertionServices/BKSTerminationAssertionObserverManager.h>
#import <AssertionServices/BKSTerminationAssertion.h>
#import <AssertionServices/BKSApplicationStateMonitor.h>
#import <AssertionServices/BKSLaunchdJobSpecification.h>

void* BKSAssertionErrorDescription(void);
void* BKSProcessAssertionBackgroundTimeRemaining(void);
void* BKSProcessAssertionSetExpirationHandler(void);
void* BKSProcessDiagnosticReportTypeDescription(void);
void* BKSProcessVisibilityIsForeground(void);
void* BKSProcessVisibilityMax(void);
void* BKSTerminationAssertionActiveEfficacyForBundleIdentifier(void);
void* BKSTerminationAssertionEfficacyDescription(void);
void* BKSTerminationAssertionHeldForBundleIdentifier(void);
void* BKSTerminationAssertionRegisterObserver(void);
void* BKSTerminationAssertionUnregisterObserver(void);
void* BKSWatchdogAssertionCreateForPID(void);
void* BKSWatchdogAssertionGetTypeID(void);
void* NSStringFromBKSProcessErrorCode(void);
void* NSStringFromBKSProcessExitReason(void);
void* NSStringFromBKSProcessTaskState(void);
void* NSStringFromBKSProcessVisibility(void);
void* RBSProcessLegacyStateDescriptor(void);

#endif
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
This file is part of Darling.
Copyright (C) 2019 Lubos Dolezel
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/

#include <Foundation/Foundation.h>

@interface BKSApplicationStateMonitor : NSObject

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
This file is part of Darling.
Copyright (C) 2019 Lubos Dolezel
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/

#include <Foundation/Foundation.h>

@interface BKSAssertion : NSObject

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
This file is part of Darling.
Copyright (C) 2019 Lubos Dolezel
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/

#include <Foundation/Foundation.h>

@interface BKSLaunchdJobSpecification : NSObject

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
This file is part of Darling.
Copyright (C) 2019 Lubos Dolezel
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/

#include <Foundation/Foundation.h>

@interface BKSProcess : NSObject

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
This file is part of Darling.
Copyright (C) 2019 Lubos Dolezel
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/

#include <Foundation/Foundation.h>

@interface BKSProcessAssertion : NSObject

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
This file is part of Darling.
Copyright (C) 2019 Lubos Dolezel
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/

#include <Foundation/Foundation.h>

@interface BKSProcessExitContext : NSObject

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
This file is part of Darling.
Copyright (C) 2019 Lubos Dolezel
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/

#include <Foundation/Foundation.h>

@interface BKSTerminationAssertion : NSObject

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
This file is part of Darling.
Copyright (C) 2019 Lubos Dolezel
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/

#include <Foundation/Foundation.h>

@interface BKSTerminationAssertionObserverManager : NSObject

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
This file is part of Darling.
Copyright (C) 2019 Lubos Dolezel
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/

#include <Foundation/Foundation.h>

@interface BKSTerminationContext : NSObject

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
This file is part of Darling.
Copyright (C) 2019 Lubos Dolezel
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/

#include <Foundation/Foundation.h>

@interface BKSWorkspace : NSObject

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
This file is part of Darling.
Copyright (C) 2019 Lubos Dolezel
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/

#include <Foundation/Foundation.h>

@protocol BSDescriptionProviding

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
This file is part of Darling.
Copyright (C) 2019 Lubos Dolezel
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/

#include <Foundation/Foundation.h>

@protocol BSXPCCoding

@end
Loading

0 comments on commit 53c8e74

Please sign in to comment.