ohmu
·
2026-10-15
1#include "host.h"
2#include "common/settings.h"
3#include "common/smbios.h"
4
5const char* ffDetectHost(FFHostResult* host) {
6 ffSettingsGetFreeBSDKenv("smbios.system.product", &host->name);
7 ffCleanUpSmbiosValue(&host->name);
8 ffSettingsGetFreeBSDKenv("smbios.system.family", &host->family);
9 ffCleanUpSmbiosValue(&host->family);
10 ffSettingsGetFreeBSDKenv("smbios.system.version", &host->version);
11 ffCleanUpSmbiosValue(&host->version);
12 ffSettingsGetFreeBSDKenv("smbios.system.sku", &host->sku);
13 ffCleanUpSmbiosValue(&host->sku);
14 ffSettingsGetFreeBSDKenv("smbios.system.serial", &host->serial);
15 ffCleanUpSmbiosValue(&host->serial);
16 ffSettingsGetFreeBSDKenv("smbios.system.uuid", &host->uuid);
17 ffCleanUpSmbiosValue(&host->uuid);
18 ffSettingsGetFreeBSDKenv("smbios.system.maker", &host->vendor);
19 ffCleanUpSmbiosValue(&host->vendor);
20
21#ifdef __x86_64__
22 ffHostDetectMac(host);
23#endif
24
25 return nullptr;
26}