nodes: improved handling of memstat messages.

This commit is contained in:
Martin Preuss
2026-06-01 15:56:38 +02:00
parent c262c4a56a
commit 6117ce5cad
8 changed files with 165 additions and 29 deletions

View File

@@ -248,6 +248,31 @@ AQH_DEVICE_LIST *AQH_DataClient_GetDevices(AQH_DATACLIENT *dc, const char *devic
AQH_DEVICE *AQH_DataClient_GetDeviceByName(AQH_DATACLIENT *dc, const char *deviceName)
{
if (deviceName && *deviceName) {
AQH_DEVICE_LIST *deviceList;
deviceList=AQH_DataClient_GetDevices(dc, deviceName);
if (deviceList) {
AQH_DEVICE *device;
device=AQH_Device_List_First(deviceList);
if (device) {
AQH_Device_List_Del(device);
AQH_Device_List_free(deviceList);
return device;
}
AQH_Device_List_free(deviceList);
}
}
return NULL;
}
AQH_VALUE_LIST *AQH_DataClient_GetValues(AQH_DATACLIENT *dc, const char *deviceName, int modality)
{
if (dc) {