Skip to content

Commit ab2ae73

Browse files
committed
Add ServiceManagement framework
1 parent a39e82d commit ab2ae73

File tree

5 files changed

+43
-0
lines changed

5 files changed

+43
-0
lines changed

crates/header-translator/framework-includes.h

+2
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@
8787

8888
#import <QuartzCore/CoreAnimation.h>
8989

90+
#import <ServiceManagement/ServiceManagement.h>
91+
9092
#import <SoundAnalysis/SoundAnalysis.h>
9193

9294
#import <Speech/Speech.h>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
data! {
2+
}

crates/header-translator/src/data/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ data! {
4848
mod MetricKit;
4949
mod OSAKit;
5050
mod PhotoKit;
51+
mod ServiceManagement;
5152
mod SoundAnalysis;
5253
mod Speech;
5354
mod StoreKit;

crates/header-translator/translation-config.toml

+29
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,11 @@ maccatalyst = "13.0"
404404
ios = "2.0"
405405
tvos = "9.0"
406406

407+
[library.ServiceManagement]
408+
imports = ["Foundation"]
409+
macos = "13.0"
410+
maccatalyst = "16.1"
411+
407412
[library.SoundAnalysis]
408413
imports = ["Foundation"]
409414
macos = "10.15"
@@ -1734,3 +1739,27 @@ skipped = true
17341739
skipped = true
17351740
[class.CWInterface.methods.associateToEnterpriseNetwork_identity_username_password_error]
17361741
skipped = true
1742+
1743+
# Items from ServiceManagement that uses types from CoreFoundation
1744+
[fn.SMJobBless]
1745+
skipped = true
1746+
[fn.SMLoginItemSetEnabled]
1747+
skipped = true
1748+
[static.kSMDomainSystemLaunchd]
1749+
skipped = true
1750+
[static.kSMDomainUserLaunchd]
1751+
skipped = true
1752+
[static.kSMErrorDomainFramework]
1753+
skipped = true
1754+
[static.kSMErrorDomainIPC]
1755+
skipped = true
1756+
[static.kSMErrorDomainLaunchd]
1757+
skipped = true
1758+
[fn.SMCopyAllJobDictionaries]
1759+
skipped = true
1760+
[fn.SMJobCopyDictionary]
1761+
skipped = true
1762+
[fn.SMJobRemove]
1763+
skipped = true
1764+
[fn.SMJobSubmit]
1765+
skipped = true

crates/icrate/Cargo.toml

+9
Original file line numberDiff line numberDiff line change
@@ -4797,6 +4797,14 @@ PhotoKit_all = [
47974797
"PhotoKit_PHProjectChangeRequest",
47984798
"PhotoKit_PHVideoRequestOptions",
47994799
]
4800+
ServiceManagement = [
4801+
"Foundation",
4802+
]
4803+
ServiceManagement_SMAppService = []
4804+
ServiceManagement_all = [
4805+
"ServiceManagement",
4806+
"ServiceManagement_SMAppService",
4807+
]
48004808
SoundAnalysis = [
48014809
"Foundation",
48024810
]
@@ -5646,6 +5654,7 @@ unstable-frameworks-macos-13 = [
56465654
"ExtensionKit_all",
56475655
"HealthKit_all",
56485656
"MetalFX_all",
5657+
"ServiceManagement_all",
56495658
"unstable-example-browser",
56505659
"unstable-frameworks-macos-12",
56515660
]

0 commit comments

Comments
 (0)