Skip to content

Commit ef65fde

Browse files
Mark ServerEndpoint Darwin objects as Sendable in Swift.
These are allowed to be accessed concurrently from multiple threads, so are Sendable.
1 parent 7d8823a commit ef65fde

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

src/darwin/Framework/CHIP/ServerEndpoint/MTRAccessGrant.h

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ NS_ASSUME_NONNULL_BEGIN
2424
* An access grant, which can be represented as an entry in the Matter Access
2525
* Control cluster.
2626
*/
27+
NS_SWIFT_SENDABLE
2728
MTR_NEWLY_AVAILABLE
2829
@interface MTRAccessGrant : NSObject <NSCopying>
2930

src/darwin/Framework/CHIP/ServerEndpoint/MTRDeviceTypeRevision.h

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ NS_ASSUME_NONNULL_BEGIN
2323
* A representation of a "device type revision" in the sense used in the Matter
2424
* specification. This has an identifier and a version number.
2525
*/
26+
NS_SWIFT_SENDABLE
2627
MTR_NEWLY_AVAILABLE
2728
@interface MTRDeviceTypeRevision : NSObject <NSCopying>
2829

src/darwin/Framework/CHIP/ServerEndpoint/MTRServerAttribute.h

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ NS_ASSUME_NONNULL_BEGIN
2525
* MTRDeviceController. An attribute has an identifier and a value, and may or
2626
* may not be writable.
2727
*/
28+
NS_SWIFT_SENDABLE
2829
MTR_NEWLY_AVAILABLE
2930
@interface MTRServerAttribute : NSObject
3031

src/darwin/Framework/CHIP/ServerEndpoint/MTRServerCluster.h

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ NS_ASSUME_NONNULL_BEGIN
2424
/**
2525
* A representation of a server cluster implemented by an MTRDeviceController.
2626
*/
27+
NS_SWIFT_SENDABLE
2728
MTR_NEWLY_AVAILABLE
2829
@interface MTRServerCluster : NSObject
2930

src/darwin/Framework/CHIP/ServerEndpoint/MTRServerEndpoint.h

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ NS_ASSUME_NONNULL_BEGIN
2525
/**
2626
* A representation of an endpoint implemented by an MTRDeviceController.
2727
*/
28+
NS_SWIFT_SENDABLE
2829
MTR_NEWLY_AVAILABLE
2930
@interface MTRServerEndpoint : NSObject
3031

0 commit comments

Comments
 (0)