Files
fastfetch/src/common/sysctl.h
T

16 lines
436 B
C
Raw Normal View History

2022-09-19 21:31:50 +02:00
#pragma once
#ifndef FF_INCLUDED_common_sysctl
#define FF_INCLUDED_common_sysctl
#include "fastfetch.h"
2022-09-19 23:16:43 +02:00
#include <sys/types.h>
2022-09-19 21:45:39 +02:00
#include <sys/sysctl.h>
2022-09-19 21:31:50 +02:00
void ffSysctlGetString(const char* propName, FFstrbuf* result);
int ffSysctlGetInt(const char* propName, int defaultValue);
int64_t ffSysctlGetInt64(const char* propName, int64_t defaultValue);
2022-09-19 21:45:39 +02:00
void* ffSysctlGetData(int* request, u_int requestLength, size_t* resultLength);
2022-09-19 21:31:50 +02:00
#endif