mirror of
https://github.com/aaru-dps/aaruremote.git
synced 2025-12-16 19:24:37 +00:00
Send device info list response.
This commit is contained in:
@@ -43,4 +43,19 @@ void FreeDeviceInfoList(DeviceInfoList* start)
|
||||
start = current->next;
|
||||
free(current);
|
||||
}
|
||||
}
|
||||
|
||||
uint16_t DeviceInfoListCount(DeviceInfoList* start)
|
||||
{
|
||||
uint16_t count = 0;
|
||||
DeviceInfoList* current;
|
||||
|
||||
while(start)
|
||||
{
|
||||
current = start;
|
||||
start = current->next;
|
||||
count++;
|
||||
}
|
||||
|
||||
return count;
|
||||
}
|
||||
Reference in New Issue
Block a user