mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-30 09:33:39 +01:00
28 lines
961 B
C
28 lines
961 B
C
#include "host.h"
|
|
#include "common/settings.h"
|
|
#include "util/smbiosHelper.h"
|
|
|
|
const char* ffDetectHost(FFHostResult* host)
|
|
{
|
|
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);
|
|
|
|
#ifdef __x86_64__
|
|
ffHostDetectMac(host);
|
|
#endif
|
|
|
|
return NULL;
|
|
}
|