|
34 | 34 | #include "ola/network/MACAddress.h" |
35 | 35 | #include "ola/network/NetworkUtils.h" |
36 | 36 | #include "ola/rdm/RDMEnums.h" |
37 | | -#include "ola/rdm/ResponderEndpointManager.h" |
38 | 37 | #include "ola/rdm/ResponderHelper.h" |
39 | 38 | #include "ola/rdm/ResponderSensor.h" |
40 | 39 | #include "ola/strings/Utils.h" |
@@ -1303,56 +1302,6 @@ RDMResponse *ResponderHelper::GetMetadataJSON( |
1303 | 1302 | queued_message_count); |
1304 | 1303 | } |
1305 | 1304 |
|
1306 | | -RDMResponse *ResponderHelper::GetEndpointList( |
1307 | | - const RDMRequest *request, |
1308 | | - const ola::rdm::EndpointManager *endpoint_manager, |
1309 | | - uint8_t queued_message_count) { |
1310 | | - PACK( |
1311 | | - struct endpoint_info_s { |
1312 | | - uint16_t endpoint_id; |
1313 | | - uint8_t endpoint_type; |
1314 | | - }); |
1315 | | - STATIC_ASSERT(sizeof(endpoint_info_s) == 3); |
1316 | | - |
1317 | | - PACK( |
1318 | | - struct endpoint_list_s { |
1319 | | - uint32_t list_change_number; |
1320 | | - endpoint_info_s endpoints[5]; |
1321 | | - }); |
1322 | | - STATIC_ASSERT(sizeof(endpoint_list_s) == (4 + (sizeof(endpoint_info_s) * 5))); |
1323 | | - |
1324 | | - struct endpoint_list_s endpoint_list; |
1325 | | - endpoint_list.list_change_number = HostToNetwork(endpoint_manager->list_change_number()); |
1326 | | - |
1327 | | - vector<uint16_t> endpoints; |
1328 | | - |
1329 | | - endpoint_manager->EndpointIDs(&endpoints); |
1330 | | - for (unsigned int i = 0; i < endpoints.size(); i++) { |
1331 | | - endpoint_list.endpoints[i].endpoint_id = HostToNetwork(endpoints[i]); |
1332 | | - } |
1333 | | - |
1334 | | - unsigned int param_data_size = ( |
1335 | | - sizeof(endpoint_list) - |
1336 | | - sizeof(endpoint_list.endpoints) + (sizeof(endpoint_info_s) * endpoints.size())); |
1337 | | - |
1338 | | - return GetResponseFromData( |
1339 | | - request, |
1340 | | - reinterpret_cast<uint8_t*>(&endpoint_list), |
1341 | | - param_data_size, |
1342 | | - RDM_ACK, |
1343 | | - queued_message_count); |
1344 | | -} |
1345 | | - |
1346 | | -RDMResponse *ResponderHelper::GetEndpointListChange( |
1347 | | - const RDMRequest *request, |
1348 | | - const ola::rdm::EndpointManager *endpoint_manager, |
1349 | | - uint8_t queued_message_count) { |
1350 | | - return GetUInt32Value(request, |
1351 | | - NetworkToHost(endpoint_manager->list_change_number()), |
1352 | | - queued_message_count); |
1353 | | -} |
1354 | | - |
1355 | | - |
1356 | 1305 | /** |
1357 | 1306 | * @brief Handle a request that returns a string |
1358 | 1307 | * @note this truncates the string to max_length |
|
0 commit comments