2022-10-27 10:46:33 +08:00
|
|
|
#include "host.h"
|
2026-01-06 09:48:38 +08:00
|
|
|
#include "common/settings.h"
|
|
|
|
|
#include "common/smbiosHelper.h"
|
2022-10-27 10:46:33 +08:00
|
|
|
|
2024-01-06 10:43:51 +08:00
|
|
|
const char* ffDetectHost(FFHostResult* host)
|
2022-10-27 10:46:33 +08:00
|
|
|
{
|
2024-01-05 20:38:29 +08:00
|
|
|
ffSettingsGetFreeBSDKenv("smbios.system.product", &host->name);
|
|
|
|
|
ffCleanUpSmbiosValue(&host->name);
|
|
|
|
|
ffSettingsGetFreeBSDKenv("smbios.system.family", &host->family);
|
|
|
|
|
ffCleanUpSmbiosValue(&host->family);
|
|
|
|
|
ffSettingsGetFreeBSDKenv("smbios.system.version", &host->version);
|
|
|
|
|
ffCleanUpSmbiosValue(&host->version);
|
|
|
|
|
ffSettingsGetFreeBSDKenv("smbios.system.sku", &host->sku);
|
|
|
|
|
ffCleanUpSmbiosValue(&host->sku);
|
|
|
|
|
ffSettingsGetFreeBSDKenv("smbios.system.serial", &host->serial);
|
|
|
|
|
ffCleanUpSmbiosValue(&host->serial);
|
|
|
|
|
ffSettingsGetFreeBSDKenv("smbios.system.uuid", &host->uuid);
|
|
|
|
|
ffCleanUpSmbiosValue(&host->uuid);
|
|
|
|
|
ffSettingsGetFreeBSDKenv("smbios.system.maker", &host->vendor);
|
|
|
|
|
ffCleanUpSmbiosValue(&host->vendor);
|
2022-10-27 10:46:33 +08:00
|
|
|
|
2024-12-08 23:23:51 +08:00
|
|
|
#ifdef __x86_64__
|
|
|
|
|
ffHostDetectMac(host);
|
|
|
|
|
#endif
|
|
|
|
|
|
2023-06-15 10:08:10 +08:00
|
|
|
return NULL;
|
2022-10-27 10:46:33 +08:00
|
|
|
}
|