Skip to content

Commit

Permalink
Merge pull request #546 from dongcarl/2023-12-ServiceManagement
Browse files Browse the repository at this point in the history
Add `ServiceManagement` framework
  • Loading branch information
madsmtm authored Dec 29, 2023
2 parents 7c7f4fb + 8b66dbe commit 66db4a6
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 2 deletions.
2 changes: 2 additions & 0 deletions crates/header-translator/framework-includes.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@

#import <QuartzCore/CoreAnimation.h>

#import <ServiceManagement/ServiceManagement.h>

#import <SoundAnalysis/SoundAnalysis.h>

#import <Speech/Speech.h>
Expand Down
2 changes: 2 additions & 0 deletions crates/header-translator/src/data/ServiceManagement.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
data! {
}
1 change: 1 addition & 0 deletions crates/header-translator/src/data/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ data! {
mod MetricKit;
mod OSAKit;
mod PhotoKit;
mod ServiceManagement;
mod SoundAnalysis;
mod Speech;
mod StoreKit;
Expand Down
3 changes: 2 additions & 1 deletion crates/header-translator/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,9 @@ fn parse_sdk(index: &Index<'_>, sdk: &SdkPath, llvm_target: &str, config: &Confi
}
preprocessing = false;
// No more includes / macro expansions after this line
let file = library.files.get_mut(&file_name).expect("file");
let mut maybe_file = library.files.get_mut(&file_name);
for stmt in Stmt::parse(&entity, &context) {
let file: &mut File = maybe_file.as_mut().expect("file");
file.add_stmt(stmt);
}
}
Expand Down
32 changes: 32 additions & 0 deletions crates/header-translator/translation-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,14 @@ maccatalyst = "13.0"
ios = "2.0"
tvos = "9.0"

[library.ServiceManagement]
imports = ["Foundation"]
macos = "10.6"
maccatalyst = "13.0"
ios = "12.1"
tvos = "12.1"
watchos = "5.1"

[library.SoundAnalysis]
imports = ["Foundation"]
macos = "10.15"
Expand Down Expand Up @@ -1734,3 +1742,27 @@ skipped = true
skipped = true
[class.CWInterface.methods.associateToEnterpriseNetwork_identity_username_password_error]
skipped = true

# Items from ServiceManagement that uses types from CoreFoundation
[fn.SMJobBless]
skipped = true
[fn.SMLoginItemSetEnabled]
skipped = true
[static.kSMDomainSystemLaunchd]
skipped = true
[static.kSMDomainUserLaunchd]
skipped = true
[static.kSMErrorDomainFramework]
skipped = true
[static.kSMErrorDomainIPC]
skipped = true
[static.kSMErrorDomainLaunchd]
skipped = true
[fn.SMCopyAllJobDictionaries]
skipped = true
[fn.SMJobCopyDictionary]
skipped = true
[fn.SMJobRemove]
skipped = true
[fn.SMJobSubmit]
skipped = true
9 changes: 9 additions & 0 deletions crates/icrate/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4797,6 +4797,14 @@ PhotoKit_all = [
"PhotoKit_PHProjectChangeRequest",
"PhotoKit_PHVideoRequestOptions",
]
ServiceManagement = [
"Foundation",
]
ServiceManagement_SMAppService = []
ServiceManagement_all = [
"ServiceManagement",
"ServiceManagement_SMAppService",
]
SoundAnalysis = [
"Foundation",
]
Expand Down Expand Up @@ -5602,6 +5610,7 @@ unstable-frameworks-macos-10-12 = [
"Metal_all",
"OSAKit_all",
"PhotoKit_all",
"ServiceManagement_all",
"StoreKit_all",
"WebKit_all",
"unstable-example-basic_usage",
Expand Down
2 changes: 1 addition & 1 deletion crates/icrate/src/generated

0 comments on commit 66db4a6

Please sign in to comment.