mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-04 12:14:19 +01:00
20 lines
528 B
C
20 lines
528 B
C
#include "host.h"
|
|
#include "common/sysctl.h"
|
|
|
|
void ffDetectHostImpl(FFHostResult* host)
|
|
{
|
|
ffStrbufInit(&host->error);
|
|
|
|
ffStrbufInit(&host->productName);
|
|
ffStrbufInit(&host->productFamily);
|
|
ffStrbufInit(&host->productVersion);
|
|
ffStrbufInit(&host->productSku);
|
|
|
|
ffStrbufInit(&host->sysVendor);
|
|
ffStrbufInit(&host->chassisType);
|
|
ffStrbufInit(&host->chassisVendor);
|
|
ffStrbufInit(&host->chassisVersion);
|
|
|
|
ffStrbufAppendS(&host->error, ffSysctlGetString("hw.fdt.model", &host->productName));
|
|
}
|