3 * Copyright (c) 2020 Project CHIP Authors
4 * Copyright (c) 2020 Google LLC.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
19 /* this file behaves like a config.h, comes first */
20 #include <platform/internal/CHIPDeviceLayerInternal.h>
22 #if CHIP_DEVICE_CONFIG_ENABLE_SOFTWARE_UPDATE_MANAGER
24 #include <Protocols/common/CommonProtocol.h>
25 #include <protocols/CHIPProtocolss.h>
27 #include <DeviceLayer/internal/GenericSoftwareUpdateManagerImpl.cpp>
28 #include <DeviceLayer/internal/GenericSoftwareUpdateManagerImpl_BDX.cpp>
31 namespace DeviceLayer {
33 SoftwareUpdateManagerImpl SoftwareUpdateManagerImpl::sInstance;
35 CHIP_ERROR SoftwareUpdateManagerImpl::_Init(void)
37 Internal::GenericSoftwareUpdateManagerImpl_BDX<SoftwareUpdateManagerImpl>::DoInit();
38 Internal::GenericSoftwareUpdateManagerImpl<SoftwareUpdateManagerImpl>::DoInit();
43 } // namespace DeviceLayer
46 #endif // CHIP_DEVICE_CONFIG_ENABLE_SOFTWARE_UPDATE_MANAGER