Skip to content

Commit 081d923

Browse files
Add availability annotations to new XPC protocols.
1 parent 068da61 commit 081d923

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

src/darwin/Framework/CHIP/XPC Protocol/MTRXPCClientProtocol.h

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
//
21
/**
3-
* Copyright (c) 2023 Project CHIP Authors
2+
* Copyright (c) 2024 Project CHIP Authors
43
*
54
* Licensed under the Apache License, Version 2.0 (the "License");
65
* you may not use this file except in compliance with the License.
@@ -15,10 +14,12 @@
1514
* limitations under the License.
1615
*/
1716

17+
#import <Matter/MTRDefines.h>
1818
#import <Matter/MTRDevice.h> // for MTRDeviceState
1919

2020
NS_ASSUME_NONNULL_BEGIN
2121

22+
MTR_NEWLY_AVAILABLE
2223
@protocol MTRXPCClientProtocol_MTRDevice <NSObject>
2324
- (oneway void)device:(NSNumber *)nodeID stateChanged:(MTRDeviceState)state;
2425
- (oneway void)device:(NSNumber *)nodeID receivedAttributeReport:(NSArray<NSDictionary<NSString *, id> *> *)attributeReport;
@@ -28,6 +29,7 @@ NS_ASSUME_NONNULL_BEGIN
2829
- (oneway void)deviceConfigurationChanged:(NSNumber *)nodeID;
2930
@end
3031

32+
MTR_NEWLY_AVAILABLE
3133
@protocol MTRXPCClientProtocol_MTRDeviceController <NSObject>
3234
// Not Supported via XPC
3335
//- (oneway void)controller:(NSUUID *)controller statusUpdate:(MTRCommissioningStatus)status;
@@ -36,6 +38,7 @@ NS_ASSUME_NONNULL_BEGIN
3638
//- (oneway void)controller:(NSUUID *)controller readCommissioningInfo:(MTRProductIdentity *)info;
3739
@end
3840

41+
MTR_NEWLY_AVAILABLE
3942
@protocol MTRXPCClientProtocol <NSObject, MTRXPCClientProtocol_MTRDevice, MTRXPCClientProtocol_MTRDeviceController>
4043
@end
4144

src/darwin/Framework/CHIP/XPC Protocol/MTRXPCServerProtocol.h

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
//
21
/**
3-
* Copyright (c) 2023 Project CHIP Authors
2+
* Copyright (c) 2024 Project CHIP Authors
43
*
54
* Licensed under the Apache License, Version 2.0 (the "License");
65
* you may not use this file except in compliance with the License.
@@ -15,8 +14,11 @@
1514
* limitations under the License.
1615
*/
1716

17+
#import <Matter/MTRDefines.h>
18+
1819
NS_ASSUME_NONNULL_BEGIN
1920

21+
MTR_NEWLY_AVAILABLE
2022
@protocol MTRXPCServerProtocol_MTRDevice <NSObject>
2123

2224
- (oneway void)deviceController:(NSUUID *)controller nodeID:(NSNumber *)nodeID getStateWithReply:(void (^)(MTRDeviceState state))reply;
@@ -45,6 +47,7 @@ NS_ASSUME_NONNULL_BEGIN
4547
// - (oneway void)downloadLogOfType:(MTRDiagnosticLogType)type nodeID:(NSNumber *)nodeID timeout:(NSTimeInterval)timeout completion:(void (^)(NSURL * _Nullable url, NSError * _Nullable error))completion;
4648
@end
4749

50+
MTR_NEWLY_AVAILABLE
4851
@protocol MTRXPCServerProtocol_MTRDeviceController <NSObject>
4952

5053
- (oneway void)deviceController:(NSUUID *)controller getIsRunningWithReply:(void (^)(BOOL response))reply;
@@ -69,6 +72,7 @@ NS_ASSUME_NONNULL_BEGIN
6972

7073
@end
7174

75+
MTR_NEWLY_AVAILABLE
7276
@protocol MTRXPCServerProtocol <NSObject, MTRXPCServerProtocol_MTRDevice, MTRXPCServerProtocol_MTRDeviceController>
7377
- (oneway void)deviceController:(NSUUID *)controller checkInWithContext:(NSDictionary *)context;
7478
@end

0 commit comments

Comments
 (0)