Skip to content

Commit 9864a48

Browse files
Mark some immutable types in Matter.framework as NS_SWIFT_SENDABLE.
1 parent 7dd6b4b commit 9864a48

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/darwin/Framework/CHIP/MTRBaseDevice.h

+9-1
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ typedef NS_ENUM(uint8_t, MTRTransportType) {
164164
*
165165
* nil is used to represent wildcards.
166166
*/
167+
NS_SWIFT_SENDABLE
167168
MTR_AVAILABLE(ios(17.0), macos(14.0), watchos(10.0), tvos(17.0))
168169
@interface MTRAttributeRequestPath : NSObject <NSCopying>
169170
@property (nonatomic, readonly, copy, nullable) NSNumber * endpoint MTR_AVAILABLE(ios(17.0), macos(14.0), watchos(10.0), tvos(17.0));
@@ -182,6 +183,7 @@ MTR_AVAILABLE(ios(17.0), macos(14.0), watchos(10.0), tvos(17.0))
182183
*
183184
* nil is used to represent wildcards.
184185
*/
186+
NS_SWIFT_SENDABLE
185187
MTR_AVAILABLE(ios(17.0), macos(14.0), watchos(10.0), tvos(17.0))
186188
@interface MTREventRequestPath : NSObject <NSCopying>
187189
@property (nonatomic, readonly, copy, nullable) NSNumber * endpoint MTR_AVAILABLE(ios(17.0), macos(14.0), watchos(10.0), tvos(17.0));
@@ -572,6 +574,7 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1))
572574
* A path indicating a specific cluster on a device (i.e. without any
573575
* wildcards).
574576
*/
577+
NS_SWIFT_SENDABLE
575578
MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4))
576579
@interface MTRClusterPath : NSObject <NSCopying, NSSecureCoding>
577580

@@ -588,6 +591,7 @@ MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4))
588591
* A path indicating a specific attribute on a device (i.e. without any
589592
* wildcards).
590593
*/
594+
NS_SWIFT_SENDABLE
591595
MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1))
592596
@interface MTRAttributePath : MTRClusterPath <NSSecureCoding>
593597

@@ -604,6 +608,7 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1))
604608
* (i.e. without any wildcards). There can be multiple instances of actual
605609
* events for a given event path.
606610
*/
611+
NS_SWIFT_SENDABLE
607612
MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1))
608613
@interface MTREventPath : MTRClusterPath
609614

@@ -618,6 +623,7 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1))
618623
* A path indicating a specific command on a device (i.e. without any
619624
* wildcards).
620625
*/
626+
NS_SWIFT_SENDABLE
621627
MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1))
622628
@interface MTRCommandPath : MTRClusterPath
623629

@@ -628,6 +634,7 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1))
628634
commandID:(NSNumber *)commandID MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4));
629635
@end
630636

637+
NS_SWIFT_SENDABLE
631638
MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1))
632639
@interface MTRAttributeReport : NSObject
633640

@@ -640,7 +647,7 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1))
640647
* * The attribute is nullable and the value of the attribute is null.
641648
*
642649
* If value is not nil, the actual type of value will depend on the
643-
* schema-defined (typically defiend in the Matter specification) type of the
650+
* schema-defined (typically defined in the Matter specification) type of the
644651
* attribute as follows:
645652
*
646653
* * list: NSArray of whatever type the list entries are.
@@ -697,6 +704,7 @@ typedef NS_ENUM(NSUInteger, MTREventPriority) {
697704
MTREventPriorityCritical = 2
698705
} MTR_AVAILABLE(ios(16.5), macos(13.4), watchos(9.5), tvos(16.5));
699706

707+
NS_SWIFT_SENDABLE
700708
MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1))
701709
@interface MTREventReport : NSObject
702710

0 commit comments

Comments
 (0)