Skip to content

CoreWLAN macOS xcode15.0 b1

Manuel de la Pena edited this page Sep 5, 2023 · 3 revisions

#CoreWLAN.framework https://github.com/xamarin/xamarin-macios/pull/18926

diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreWLAN.framework/Headers/CWInterface.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreWLAN.framework/Headers/CWInterface.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreWLAN.framework/Headers/CWInterface.h	2023-03-09 19:08:09
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreWLAN.framework/Headers/CWInterface.h	2023-05-26 21:35:18
@@ -30,40 +30,7 @@
 NS_ASSUME_NONNULL_BEGIN
 NS_CLASS_AVAILABLE_MAC(10_6)
 @interface CWInterface : NSObject
-{
-    @private
-    
-        void                    *_device;
-    
-        NSString                *_interfaceName;
-    
-        NSArray<NSNumber *>     *_capabilities;
-    
-        IONotificationPortRef   _interfaceRemovedNotificationPort;
-    
-        io_iterator_t           _interfaceRemovedNotification;
-    
-        BOOL                    _deviceAttached;
-    
-        id                      _eapolClient;
-    
-        id                      _ipMonitor;
-    
-        dispatch_queue_t        _internalQueue;
-    
-        void                    *_serviceStore;
-    
-        void                    *_interfaceStore;
-    
-        BOOL                    _lastPowerState;
 
-		dispatch_queue_t		_eventQueue;
-
-        NSXPCConnection         *_xpcConnection;
-    
-        BOOL                    _ownsXPCConnection;
-}
-
 /*!
  * @property
  *
@@ -131,6 +98,12 @@
  * @discussion 
  * Returns nil if an error occurs, or if the interface is not participating in a Wi-Fi network,
  * or if the SSID can not be encoded as a valid UTF-8 or WinLatin1 string.
+ *
+ * @note
+ * SSID information is not available unless Location Services is enabled and the user has authorized the calling app to use location services.
+ *
+ * @seealso
+ * CLLocationManager
  */
 - (nullable NSString *)ssid NS_AVAILABLE_MAC(10_6);
 
@@ -142,6 +115,12 @@
  *
  * @discussion 
  * Returns nil if an error occurs, or if the interface is not participating in a Wi-Fi network.
+ *
+ * @note
+ * SSID information is not available unless Location Services is enabled and the user has authorized the calling app to use location services.
+ *
+ * @seealso
+ * CLLocationManager
  */
 - (nullable NSData *)ssidData NS_AVAILABLE_MAC(10_7);
 
@@ -215,6 +194,12 @@
  *
  * @discussion 
  * Returns nil if an error occurs, or if the Wi-Fi interface is off.
+ *
+ * @note
+ * Country code information is not available unless Location Services is enabled and the user has authorized the calling app to use location services.
+ *
+ * @seealso
+ * CLLocationManager
  */
 - (nullable NSString *)countryCode NS_AVAILABLE_MAC(10_6);
 
@@ -307,7 +292,7 @@
  * Returns an empty NSArray object if no Wi-Fi interfaces exist.
  * Returns nil if an error occurs.
  */
-+ (nullable NSSet<NSString *> *)interfaceNames NS_DEPRECATED_MAC(10_6, 10_10, "Use +[CWWiFiClient interfaceNames] instead");
++ (nullable NSSet<NSString *> *)interfaceNames NS_DEPRECATED_MAC(10_6, 10_10, "Use -[CWWiFiClient interfaceNames] instead");
 
 /*!
  * @method
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreWLAN.framework/Headers/CWNetwork.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreWLAN.framework/Headers/CWNetwork.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreWLAN.framework/Headers/CWNetwork.h	2023-03-09 19:08:09
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreWLAN.framework/Headers/CWNetwork.h	2023-05-26 21:35:18
@@ -34,6 +34,12 @@
  *
  * @discussion
  * Returns nil if the SSID can not be encoded as a valid UTF-8 or WinLatin1 string.
+ *
+ * @note
+ * SSID information is not available unless Location Services is enabled and the user has authorized the calling app to use location services.
+ *
+ * @seealso
+ * CLLocationManager
  */
 @property(readonly, nullable) NSString *ssid NS_AVAILABLE_MAC(10_6);
 
@@ -46,6 +52,12 @@
  *
  * @discussion
  * The SSID is defined as 1-32 octets.
+ *
+ * @note
+ * SSID information is not available unless Location Services is enabled and the user has authorized the calling app to use location services.
+ *
+ * @seealso
+ * CLLocationManager
  */
 @property(readonly, nullable) NSData *ssidData NS_AVAILABLE_MAC(10_7);
 
@@ -103,6 +115,12 @@
  *
  * @abstract 
  * Returns the advertised country code (ISO/IEC 3166-1:1997) for the Wi-Fi device.
+ *
+ * @note
+ * Country code information is not available unless Location Services is enabled and the user has authorized the calling app to use location services.
+ *
+ * @seealso
+ * CLLocationManager
  */
 @property(readonly, nullable) NSString *countryCode NS_AVAILABLE_MAC(10_7);
 
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreWLAN.framework/Headers/CWWiFiClient.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreWLAN.framework/Headers/CWWiFiClient.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreWLAN.framework/Headers/CWWiFiClient.h	2023-03-09 19:08:09
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreWLAN.framework/Headers/CWWiFiClient.h	2023-05-26 21:35:18
@@ -196,22 +196,7 @@
  */
 NS_CLASS_AVAILABLE_MAC(10_10)
 @interface CWWiFiClient : NSObject
-{
-    @private
-    
-        NSXPCConnection     *_xpcConnection;
-        
-        NSMutableSet        *_eventList;
-    
-        dispatch_queue_t    _eventQueue;
 
-        NSMutableDictionary *_interfaceMap;
-        
-        dispatch_queue_t    _mutex;
-        
-        id                  _delegate;
-}
-
 /*! @functiongroup Setting the Delegate */
 
 /*!
@@ -266,7 +251,8 @@
  * If no Wi-Fi interfaces are available, this method will return an empty array.
  * Returns nil if an error occurs.
  */
-+ (nullable NSArray<NSString *> *)interfaceNames NS_AVAILABLE_MAC(10_10);
+- (nullable NSArray<NSString *> *)interfaceNames NS_AVAILABLE_MAC(13_0);
++ (nullable NSArray<NSString *> *)interfaceNames NS_DEPRECATED_MAC(10_10, 13_0, "Use -[CWWiFiClient interfaceNames] instead");
 
 /*!
  * @method
Clone this wiki locally