Skip to content

Commit ea29531

Browse files
authored
Making this new protocol optional, so as to not break clients (project-chip#32676)
1 parent 88afa33 commit ea29531

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/darwin/Framework/CHIP/MTRDeviceController+XPC.h

+9-8
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,6 @@ typedef void (^MTRValuesHandler)(id _Nullable values, NSError * _Nullable error)
9494
*/
9595
@protocol MTRDeviceControllerServerProtocol <NSObject>
9696

97-
@optional
98-
/**
99-
* Gets device controller ID corresponding to a specific fabric ID
100-
*/
101-
- (void)getDeviceControllerWithFabricId:(uint64_t)fabricId
102-
completion:(MTRDeviceControllerGetterHandler)completion
103-
MTR_DEPRECATED("This never called.", ios(16.1, 16.4), macos(13.0, 13.3), watchos(9.1, 9.4), tvos(16.1, 16.4));
104-
10597
@required
10698
/**
10799
* Gets any available device controller ID
@@ -184,6 +176,15 @@ typedef void (^MTRValuesHandler)(id _Nullable values, NSError * _Nullable error)
184176
attributeId:(NSNumber * _Nullable)attributeId
185177
completion:(MTRValuesHandler)completion;
186178

179+
@optional
180+
181+
/**
182+
* Gets device controller ID corresponding to a specific fabric ID
183+
*/
184+
- (void)getDeviceControllerWithFabricId:(uint64_t)fabricId
185+
completion:(MTRDeviceControllerGetterHandler)completion
186+
MTR_DEPRECATED("This never called.", ios(16.1, 16.4), macos(13.0, 13.3), watchos(9.1, 9.4), tvos(16.1, 16.4));
187+
187188
/**
188189
* Requests downloading some logs
189190
*/

0 commit comments

Comments
 (0)