mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
cb48c1277a
It's only supported on Linux
16 lines
408 B
C
16 lines
408 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);
|
|
|
|
ffStrbufAppendS(&host->error, ffSysctlGetString("hw.fdt.model", &host->productName));
|
|
}
|