-
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.
try to avoid #if large amount of code
- Loading branch information
Showing
19 changed files
with
433 additions
and
288 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
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,56 @@ | ||
/* | ||
* | ||
* Copyright (c) 2020-2021 Project CHIP Authors | ||
* Copyright (c) 2018 Nest Labs, Inc. | ||
* All rights reserved. | ||
* | ||
* 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. | ||
*/ | ||
/* this file behaves like a config.h, comes first */ | ||
#include <platform/internal/CHIPDeviceLayerInternal.h> | ||
|
||
#include <platform/ConnectivityManager.h> | ||
#if CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE | ||
#include <platform/internal/GenericConnectivityManagerImpl_BLE.cpp> | ||
#endif | ||
|
||
#include <platform/internal/GenericConnectivityManagerImpl_Thread.cpp> | ||
|
||
#include <lib/support/CodeUtils.h> | ||
#include <lib/support/logging/CHIPLogging.h> | ||
#include <platform/internal/BLEManager.h> | ||
|
||
using namespace ::chip; | ||
using namespace ::chip::Inet; | ||
using namespace ::chip::System; | ||
using namespace ::chip::TLV; | ||
|
||
namespace chip { | ||
namespace DeviceLayer { | ||
|
||
ConnectivityManagerImpl ConnectivityManagerImpl::sInstance; | ||
// ==================== ConnectivityManager Platform Internal Methods ==================== | ||
|
||
CHIP_ERROR ConnectivityManagerImpl::_Init() | ||
{ | ||
GenericConnectivityManagerImpl_Thread<ConnectivityManagerImpl>::_Init(); | ||
return CHIP_NO_ERROR; | ||
} | ||
|
||
void ConnectivityManagerImpl::_OnPlatformEvent(const ChipDeviceEvent * event) | ||
{ | ||
GenericConnectivityManagerImpl_Thread<ConnectivityManagerImpl>::_OnPlatformEvent(event); | ||
} | ||
|
||
} // namespace DeviceLayer | ||
} // namespace chip |
Oops, something went wrong.