| 98 | } |
| 99 | |
| 100 | size_t BLELibBoard::simpleble_adapter_get_count (void) |
| 101 | { |
| 102 | #ifndef STATIC_SIMPLEBLE |
| 103 | std::lock_guard<std::mutex> lock (BLELibBoard::mutex); |
| 104 | if (BLELibBoard::dll_loader == NULL) |
| 105 | { |
| 106 | safe_logger (spdlog::level::err, "BLELibBoard::dll_loader is not initialized"); |
| 107 | return 0; |
| 108 | } |
| 109 | size_t (*func) (void) = |
| 110 | (size_t (*) (void))BLELibBoard::dll_loader->get_address ("simpleble_adapter_get_count"); |
| 111 | if (func == NULL) |
| 112 | { |
| 113 | safe_logger ( |
| 114 | spdlog::level::err, "failed to get function address for simpleble_adapter_get_count"); |
| 115 | return 0; |
| 116 | } |
| 117 | |
| 118 | return func (); |
| 119 | #else |
| 120 | return ::simpleble_adapter_get_count (); |
| 121 | #endif |
| 122 | } |
| 123 | |
| 124 | bool BLELibBoard::simpleble_adapter_is_bluetooth_enabled (void) |
| 125 | { |
nothing calls this directly
no test coverage detected