Skip to content

Commit

Permalink
Move the remaining pending shutdown API bits to MTRDeviceController_C…
Browse files Browse the repository at this point in the history
…oncrete.
  • Loading branch information
bzbarsky-apple committed Sep 23, 2024
1 parent 8750c55 commit 6609559
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 24 deletions.
14 changes: 0 additions & 14 deletions src/darwin/Framework/CHIP/MTRDeviceController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -320,20 +320,6 @@ - (void)_controllerResumed
// Subclass hook; nothing to do.
}

- (BOOL)matchesPendingShutdownControllerWithOperationalCertificate:(nullable MTRCertificateDERBytes)operationalCertificate andRootCertificate:(nullable MTRCertificateDERBytes)rootCertificate
{
// TODO: Once the factory knows it's dealing with MTRDeviceController_Concrete, this can be removed, and its
// declaration moved to MTRDeviceController_Concrete.
return NO;
}

- (void)clearPendingShutdown
{
// TODO: Once the factory knows it's dealing with MTRDeviceController_Concrete, this can be removed, and its
// declaration moved to MTRDeviceController_Concrete.
MTR_ABSTRACT_METHOD();
}

- (void)shutdown
{
MTR_ABSTRACT_METHOD();
Expand Down
10 changes: 10 additions & 0 deletions src/darwin/Framework/CHIP/MTRDeviceController_Concrete.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,16 @@ NS_ASSUME_NONNULL_BEGIN
*/
- (void)removeRunAssertion;

/**
* This method returns TRUE if this controller matches the fabric reference and node ID as listed in the parameters.
*/
- (BOOL)matchesPendingShutdownControllerWithOperationalCertificate:(nullable MTRCertificateDERBytes)operationalCertificate andRootCertificate:(nullable MTRCertificateDERBytes)rootCertificate;

/**
* Clear any pending shutdown request.
*/
- (void)clearPendingShutdown;

@end

NS_ASSUME_NONNULL_END
10 changes: 0 additions & 10 deletions src/darwin/Framework/CHIP/MTRDeviceController_Internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -265,16 +265,6 @@ NS_ASSUME_NONNULL_BEGIN
*/
- (void)directlyGetSessionForNode:(chip::NodeId)nodeID completion:(MTRInternalDeviceConnectionCallback)completion;

/**
* This method returns TRUE if this controller matches the fabric reference and node ID as listed in the parameters.
*/
- (BOOL)matchesPendingShutdownControllerWithOperationalCertificate:(nullable MTRCertificateDERBytes)operationalCertificate andRootCertificate:(nullable MTRCertificateDERBytes)rootCertificate;

/**
* Clear any pending shutdown request.
*/
- (void)clearPendingShutdown;

@end

/**
Expand Down

0 comments on commit 6609559

Please sign in to comment.