Skip to content

Commit 67f09bf

Browse files
authored
Merge pull request #506 from zmanji/add-core-wlan
Support CoreWLAN framework.
2 parents 9fa77b3 + ec8b7e1 commit 67f09bf

File tree

6 files changed

+75
-1
lines changed

6 files changed

+75
-1
lines changed

crates/header-translator/framework-includes.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535

3636
#import <CoreLocation/CoreLocation.h>
3737

38+
#import <CoreWLAN/CoreWLAN.h>
39+
3840
#import <DataDetection/DataDetection.h>
3941

4042
#import <DeviceCheck/DeviceCheck.h>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
data! {
2+
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ data! {
2121
mod CoreAnimation;
2222
mod CoreData;
2323
mod CoreLocation;
24+
mod CoreWLAN;
2425
mod DataDetection;
2526
mod DeviceCheck;
2627
mod EventKit;

crates/header-translator/translation-config.toml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@ ios = "2.0"
144144
tvos = "9.0"
145145
watchos = "2.0"
146146

147+
[library.CoreWLAN]
148+
imports = ["Foundation"]
149+
macos = "10.6"
150+
147151
[library.DataDetection]
148152
imports = ["Foundation"]
149153
macos = "12.0"
@@ -1614,3 +1618,41 @@ skipped-protocols = ["NSCopying", "NSMutableCopying"]
16141618
# Will have to be a method that takes `MainThreadMarker`.
16151619
[static.NSApp]
16161620
skipped = true
1621+
1622+
# Uses types from CoreFoundation
1623+
[fn.CWKeychainCopyEAPUsernameAndPassword]
1624+
skipped = true
1625+
[fn.CWKeychainCopyEAPIdentityList]
1626+
skipped = true
1627+
[fn.CWKeychainSetEAPUsernameAndPassword]
1628+
skipped = true
1629+
[fn.CWKeychainDeleteEAPUsernameAndPassword]
1630+
skipped = true
1631+
[fn.CWKeychainSetPassword]
1632+
skipped = true
1633+
[fn.CWKeychainDeletePassword]
1634+
skipped = true
1635+
[fn.CWKeychainCopyEAPIdentity]
1636+
skipped = true
1637+
[fn.CWKeychainSetEAPIdentity]
1638+
skipped = true
1639+
[fn.CWKeychainCopyPassword]
1640+
skipped = true
1641+
[fn.CWKeychainFindWiFiPassword]
1642+
skipped = true
1643+
[fn.CWKeychainSetWiFiPassword]
1644+
skipped = true
1645+
[fn.CWKeychainDeleteWiFiPassword]
1646+
skipped = true
1647+
[fn.CWKeychainFindWiFiEAPUsernameAndPassword]
1648+
skipped = true
1649+
[fn.CWKeychainSetWiFiEAPUsernameAndPassword]
1650+
skipped = true
1651+
[fn.CWKeychainDeleteWiFiEAPUsernameAndPassword]
1652+
skipped = true
1653+
[fn.CWKeychainCopyWiFiEAPIdentity]
1654+
skipped = true
1655+
[fn.CWKeychainSetWiFiEAPIdentity]
1656+
skipped = true
1657+
[class.CWInterface.methods.associateToEnterpriseNetwork_identity_username_password_error]
1658+
skipped = true

crates/icrate/Cargo.toml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2056,6 +2056,32 @@ CoreLocation_all = [
20562056
"CoreLocation_CLRegion",
20572057
"CoreLocation_CLVisit",
20582058
]
2059+
CoreWLAN = [
2060+
"Foundation",
2061+
]
2062+
CoreWLAN_CWChannel = []
2063+
CoreWLAN_CWConfiguration = []
2064+
CoreWLAN_CWInterface = []
2065+
CoreWLAN_CWMutableConfiguration = [
2066+
"CoreWLAN_CWConfiguration",
2067+
]
2068+
CoreWLAN_CWMutableNetworkProfile = [
2069+
"CoreWLAN_CWNetworkProfile",
2070+
]
2071+
CoreWLAN_CWNetwork = []
2072+
CoreWLAN_CWNetworkProfile = []
2073+
CoreWLAN_CWWiFiClient = []
2074+
CoreWLAN_all = [
2075+
"CoreWLAN",
2076+
"CoreWLAN_CWChannel",
2077+
"CoreWLAN_CWConfiguration",
2078+
"CoreWLAN_CWInterface",
2079+
"CoreWLAN_CWMutableConfiguration",
2080+
"CoreWLAN_CWMutableNetworkProfile",
2081+
"CoreWLAN_CWNetwork",
2082+
"CoreWLAN_CWNetworkProfile",
2083+
"CoreWLAN_CWWiFiClient",
2084+
]
20592085
DataDetection = [
20602086
"Foundation",
20612087
]
@@ -5329,6 +5355,7 @@ unstable-frameworks-macos-10-7 = [
53295355
"Automator_all",
53305356
"CoreAnimation_all",
53315357
"CoreData_all",
5358+
"CoreWLAN_all",
53325359
"ExceptionHandling_all",
53335360
"Foundation_all",
53345361
"InputMethodKit_all",

crates/icrate/src/generated

0 commit comments

Comments
 (0)