| 263 | } |
| 264 | |
| 265 | json::object CustomControlUnitMgr::get_info() const |
| 266 | { |
| 267 | json::object info; |
| 268 | if (auto extra_info_opt = get_info_from_controller()) { |
| 269 | info = std::move(*extra_info_opt); |
| 270 | } |
| 271 | info["type"] = "custom"; |
| 272 | |
| 273 | return info; |
| 274 | } |
| 275 | |
| 276 | std::optional<json::object> CustomControlUnitMgr::get_info_from_controller() const |
| 277 | { |