-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement general commissioning cluster callbacks (#6361)
* Implement general commisioning callbacks * Address review comments * Return CHIP_ERROR_NOT_IMPLEMENTED for unimplemented functions * Use static memeber function instead of friend member function
- Loading branch information
1 parent
3a59afe
commit 2668466
Showing
22 changed files
with
351 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/* | ||
* | ||
* Copyright (c) 2021 Project CHIP Authors | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
/** | ||
* @file | ||
* Defines the Device Layer DeviceControlServer object. | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <platform/internal/CHIPDeviceLayerInternal.h> | ||
|
||
namespace chip { | ||
namespace DeviceLayer { | ||
namespace Internal { | ||
|
||
class DeviceControlServer final | ||
{ | ||
public: | ||
// ===== Members for internal use by other Device Layer components. | ||
|
||
CHIP_ERROR ArmFailSafe(uint16_t expiryLengthSeconds); | ||
CHIP_ERROR DisarmFailSafe(); | ||
CHIP_ERROR CommissioningComplete(); | ||
CHIP_ERROR SetRegulatoryConfig(uint8_t location, const char * countryCode, uint64_t breadcrumb); | ||
|
||
static DeviceControlServer & DeviceControlSvr(); | ||
|
||
private: | ||
// ===== Members for internal use by the following friends. | ||
static DeviceControlServer sInstance; | ||
|
||
// ===== Private members reserved for use by this class only. | ||
|
||
DeviceControlServer() = default; | ||
~DeviceControlServer() = default; | ||
|
||
// No copy, move or assignment. | ||
DeviceControlServer(const DeviceControlServer &) = delete; | ||
DeviceControlServer(const DeviceControlServer &&) = delete; | ||
DeviceControlServer & operator=(const DeviceControlServer &) = delete; | ||
}; | ||
|
||
} // namespace Internal | ||
} // namespace DeviceLayer | ||
} // namespace chip |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.