Skip to content

Commit

Permalink
Support CoreWLAN framework.
Browse files Browse the repository at this point in the history
  • Loading branch information
zmanji committed Sep 9, 2023
1 parent 112d7b0 commit 46adfd3
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 1 deletion.
2 changes: 2 additions & 0 deletions crates/header-translator/framework-includes.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@

#import <CoreLocation/CoreLocation.h>

#import <CoreWLAN/CoreWLAN.h>

#import <DataDetection/DataDetection.h>

#import <DeviceCheck/DeviceCheck.h>
Expand Down
2 changes: 2 additions & 0 deletions crates/header-translator/src/data/CoreWLAN.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 @@ -21,6 +21,7 @@ data! {
mod CoreAnimation;
mod CoreData;
mod CoreLocation;
mod CoreWLAN;
mod DataDetection;
mod DeviceCheck;
mod EventKit;
Expand Down
42 changes: 42 additions & 0 deletions crates/header-translator/translation-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ ios = "2.0"
tvos = "9.0"
watchos = "2.0"

[library.CoreWLAN]
imports = ["Foundation"]
macos = "10.6"

[library.DataDetection]
imports = ["Foundation"]
macos = "12.0"
Expand Down Expand Up @@ -1614,3 +1618,41 @@ skipped-protocols = ["NSCopying", "NSMutableCopying"]
# Will have to be a method that takes `MainThreadMarker`.
[static.NSApp]
skipped = true

# Uses types from CoreFoundation
[fn.CWKeychainCopyEAPUsernameAndPassword]
skipped = true
[fn.CWKeychainCopyEAPIdentityList]
skipped = true
[fn.CWKeychainSetEAPUsernameAndPassword]
skipped = true
[fn.CWKeychainDeleteEAPUsernameAndPassword]
skipped = true
[fn.CWKeychainSetPassword]
skipped = true
[fn.CWKeychainDeletePassword]
skipped = true
[fn.CWKeychainCopyEAPIdentity]
skipped = true
[fn.CWKeychainSetEAPIdentity]
skipped = true
[fn.CWKeychainCopyPassword]
skipped = true
[fn.CWKeychainFindWiFiPassword]
skipped = true
[fn.CWKeychainSetWiFiPassword]
skipped = true
[fn.CWKeychainDeleteWiFiPassword]
skipped = true
[fn.CWKeychainFindWiFiEAPUsernameAndPassword]
skipped = true
[fn.CWKeychainSetWiFiEAPUsernameAndPassword]
skipped = true
[fn.CWKeychainDeleteWiFiEAPUsernameAndPassword]
skipped = true
[fn.CWKeychainCopyWiFiEAPIdentity]
skipped = true
[fn.CWKeychainSetWiFiEAPIdentity]
skipped = true
[class.CWInterface.methods.associateToEnterpriseNetwork_identity_username_password_error]
skipped = true
27 changes: 27 additions & 0 deletions crates/icrate/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2056,6 +2056,32 @@ CoreLocation_all = [
"CoreLocation_CLRegion",
"CoreLocation_CLVisit",
]
CoreWLAN = [
"Foundation",
]
CoreWLAN_CWChannel = []
CoreWLAN_CWConfiguration = []
CoreWLAN_CWInterface = []
CoreWLAN_CWMutableConfiguration = [
"CoreWLAN_CWConfiguration",
]
CoreWLAN_CWMutableNetworkProfile = [
"CoreWLAN_CWNetworkProfile",
]
CoreWLAN_CWNetwork = []
CoreWLAN_CWNetworkProfile = []
CoreWLAN_CWWiFiClient = []
CoreWLAN_all = [
"CoreWLAN",
"CoreWLAN_CWChannel",
"CoreWLAN_CWConfiguration",
"CoreWLAN_CWInterface",
"CoreWLAN_CWMutableConfiguration",
"CoreWLAN_CWMutableNetworkProfile",
"CoreWLAN_CWNetwork",
"CoreWLAN_CWNetworkProfile",
"CoreWLAN_CWWiFiClient",
]
DataDetection = [
"Foundation",
]
Expand Down Expand Up @@ -5329,6 +5355,7 @@ unstable-frameworks-macos-10-7 = [
"Automator_all",
"CoreAnimation_all",
"CoreData_all",
"CoreWLAN_all",
"ExceptionHandling_all",
"Foundation_all",
"InputMethodKit_all",
Expand Down
2 changes: 1 addition & 1 deletion crates/icrate/src/generated

0 comments on commit 46adfd3

Please sign in to comment.