Skip to content

Commit 08b9a09

Browse files
Mark return types nullable in MTRDevice_XPC when nil can be returned.
1 parent 07789d4 commit 08b9a09

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/darwin/Framework/CHIP/MTRDevice_XPC.mm

+4-4
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,10 @@ - (oneway void)deviceConfigurationChanged:(NSNumber *)nodeID
163163

164164
MTR_DEVICE_SIMPLE_REMOTE_XPC_GETTER(state, MTRDeviceState, MTRDeviceStateUnknown, getStateWithReply)
165165
MTR_DEVICE_SIMPLE_REMOTE_XPC_GETTER(deviceCachePrimed, BOOL, NO, getDeviceCachePrimedWithReply)
166-
MTR_DEVICE_SIMPLE_REMOTE_XPC_GETTER(estimatedStartTime, NSDate *, nil, getEstimatedStartTimeWithReply)
167-
MTR_DEVICE_SIMPLE_REMOTE_XPC_GETTER(estimatedSubscriptionLatency, NSNumber *, nil, getEstimatedSubscriptionLatencyWithReply)
166+
MTR_DEVICE_SIMPLE_REMOTE_XPC_GETTER(estimatedStartTime, NSDate * _Nullable, nil, getEstimatedStartTimeWithReply)
167+
MTR_DEVICE_SIMPLE_REMOTE_XPC_GETTER(estimatedSubscriptionLatency, NSNumber * _Nullable, nil, getEstimatedSubscriptionLatencyWithReply)
168168

169-
typedef NSDictionary<NSString *, id> * readAttributeResponseType;
169+
typedef NSDictionary<NSString *, id> * _Nullable readAttributeResponseType;
170170
MTR_DEVICE_COMPLEX_REMOTE_XPC_GETTER(readAttributeWithEndpointID
171171
: (NSNumber *) endpointID clusterID
172172
: (NSNumber *) clusterID attributeID
@@ -223,7 +223,7 @@ - (void)invokeCommandWithEndpointID:(NSNumber *)endpointID
223223
// Not Supported via XPC
224224
//- (oneway void)deviceController:(NSUUID *)controller nodeID:(NSNumber *)nodeID openCommissioningWindowWithSetupPasscode:(NSNumber *)setupPasscode discriminator:(NSNumber *)discriminator duration:(NSNumber *)duration completion:(MTRDeviceOpenCommissioningWindowHandler)completion;
225225

226-
MTR_DEVICE_SIMPLE_REMOTE_XPC_GETTER(clientDataKeys, NSArray *, nil, getClientDataKeysWithReply)
226+
MTR_DEVICE_SIMPLE_REMOTE_XPC_GETTER(clientDataKeys, NSArray * _Nullable, nil, getClientDataKeysWithReply)
227227
MTR_DEVICE_COMPLEX_REMOTE_XPC_GETTER(clientDataForKey
228228
: (NSString *) key, id<NSSecureCoding> _Nullable, nil, clientDataForKey
229229
: key withReply)

0 commit comments

Comments
 (0)