mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
19 lines
701 B
C
19 lines
701 B
C
#pragma once
|
|
|
|
#include "fastfetch.h"
|
|
#include "util/FFcheckmacros.h"
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/sysctl.h>
|
|
|
|
#ifdef __OpenBSD__
|
|
const char* ffSysctlGetString(int mib1, int mib2, FFstrbuf* result);
|
|
FF_C_NODISCARD int ffSysctlGetInt(int mib1, int mib2, int defaultValue);
|
|
FF_C_NODISCARD int64_t ffSysctlGetInt64(int mib1, int mib2, int64_t defaultValue);
|
|
#else
|
|
const char* ffSysctlGetString(const char* propName, FFstrbuf* result);
|
|
FF_C_NODISCARD int ffSysctlGetInt(const char* propName, int defaultValue);
|
|
FF_C_NODISCARD int64_t ffSysctlGetInt64(const char* propName, int64_t defaultValue);
|
|
#endif
|
|
FF_C_NODISCARD void* ffSysctlGetData(int* request, u_int requestLength, size_t* resultLength);
|