Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / src / include / platform / internal / GenericConnectivityManagerImpl_BLE.cpp
1 /*
2  *
3  *    Copyright (c) 2020 Project CHIP Authors
4  *    Copyright (c) 2019 Nest Labs, Inc.
5  *
6  *    Licensed under the Apache License, Version 2.0 (the "License");
7  *    you may not use this file except in compliance with the License.
8  *    You may obtain a copy of the License at
9  *
10  *        http://www.apache.org/licenses/LICENSE-2.0
11  *
12  *    Unless required by applicable law or agreed to in writing, software
13  *    distributed under the License is distributed on an "AS IS" BASIS,
14  *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  *    See the License for the specific language governing permissions and
16  *    limitations under the License.
17  */
18
19 /**
20  *    @file
21  *          Provides an generic implementation of ConnectivityManager features
22  *          for use on platforms that support BLE.
23  */
24
25 #ifndef GENERIC_CONNECTIVITY_MANAGER_IMPL_BLE_CPP
26 #define GENERIC_CONNECTIVITY_MANAGER_IMPL_BLE_CPP
27
28 #include <platform/internal/GenericConnectivityManagerImpl_BLE.h>
29
30 namespace chip {
31 namespace DeviceLayer {
32 namespace Internal {
33
34 // Fully instantiate the template class in whatever compilation unit includes this file.
35 template class GenericConnectivityManagerImpl_BLE<ConnectivityManagerImpl>;
36
37 template <class ImplClass>
38 const char * GenericConnectivityManagerImpl_BLE<ImplClass>::_CHIPoBLEServiceModeToStr(ConnectivityManager::CHIPoBLEServiceMode mode)
39 {
40     switch (mode)
41     {
42     case ConnectivityManager::kCHIPoBLEServiceMode_NotSupported:
43         return "NotSupported";
44     case ConnectivityManager::kCHIPoBLEServiceMode_Enabled:
45         return "Disabled";
46     case ConnectivityManager::kCHIPoBLEServiceMode_Disabled:
47         return "Enabled";
48     default:
49         return "(unknown)";
50     }
51 }
52
53 } // namespace Internal
54 } // namespace DeviceLayer
55 } // namespace chip
56
57 #endif // GENERIC_CONNECTIVITY_MANAGER_IMPL_BLE_CPP