2022-09-04 14:30:52 +02:00
|
|
|
#include "host.h"
|
2022-09-04 09:02:11 -07:00
|
|
|
#include "common/settings.h"
|
2022-09-04 14:30:52 +02:00
|
|
|
|
|
|
|
|
void ffDetectHostImpl(FFHostResult* host)
|
|
|
|
|
{
|
2022-09-04 09:02:11 -07:00
|
|
|
ffStrbufInit(&host->productName);
|
|
|
|
|
|
2022-09-04 14:30:52 +02:00
|
|
|
ffStrbufInitA(&host->productFamily, 0);
|
|
|
|
|
ffStrbufInitA(&host->sysVendor, 0);
|
|
|
|
|
ffStrbufInitA(&host->productVersion, 0);
|
|
|
|
|
ffStrbufInitA(&host->productSku, 0);
|
|
|
|
|
ffStrbufInitA(&host->biosDate, 0);
|
|
|
|
|
ffStrbufInitA(&host->biosRelease, 0);
|
|
|
|
|
ffStrbufInitA(&host->biosVendor, 0);
|
|
|
|
|
ffStrbufInitA(&host->biosVersion, 0);
|
|
|
|
|
ffStrbufInitA(&host->boardName, 0);
|
|
|
|
|
ffStrbufInitA(&host->boardVendor, 0);
|
|
|
|
|
ffStrbufInitA(&host->boardVersion, 0);
|
|
|
|
|
ffStrbufInitA(&host->chassisType, 0);
|
|
|
|
|
ffStrbufInitA(&host->chassisVendor, 0);
|
|
|
|
|
ffStrbufInitA(&host->chassisVersion, 0);
|
2022-09-04 09:02:11 -07:00
|
|
|
|
|
|
|
|
ffSettingsGetAppleProperty("hw.model", &host->productName);
|
2022-09-04 14:30:52 +02:00
|
|
|
}
|