2022-10-27 10:46:33 +08:00
|
|
|
#include "host.h"
|
2026-01-06 09:48:38 +08:00
|
|
|
#include "common/settings.h"
|
2026-03-31 20:01:25 +08:00
|
|
|
#include "common/smbios.h"
|
2022-10-27 10:46:33 +08:00
|
|
|
|
2026-03-29 09:28:49 +08:00
|
|
|
const char* ffDetectHost(FFHostResult* host) {
|
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
|
|
|
|
2026-03-29 09:28:49 +08:00
|
|
|
#ifdef __x86_64__
|
2024-12-08 23:23:51 +08:00
|
|
|
ffHostDetectMac(host);
|
2026-03-29 09:28:49 +08:00
|
|
|
#endif
|
2024-12-08 23:23:51 +08:00
|
|
|
|
2026-07-10 18:08:04 +08:00
|
|
|
return nullptr;
|
2022-10-27 10:46:33 +08:00
|
|
|
}
|