Enable BSD support in CMake

This commit is contained in:
Linus Dierheimer
2022-09-19 22:23:31 +02:00
parent f3e6d04c8e
commit 6bd933eba2
3 changed files with 67 additions and 25 deletions
+13
View File
@@ -0,0 +1,13 @@
#include "cpu.h"
void ffDetectCPUImpl(FFCPUResult* cpu)
{
ffStrbufInit(&cpu->vendor);
ffStrbufInit(&cpu->name);
cpu->coresPhysical = 1;
cpu->coresLogical = 1;
cpu->coresOnline = 1;
frequencyMin = 0.0;
frequencyMax = 0.0;
temperature = FF_CPU_TEMP_UNSET;
}
+9
View File
@@ -0,0 +1,9 @@
#include "memory.h"
void ffDetectMemoryImpl(FFMemoryResult* memory)
{
memory->ram.bytesTotal = 0;
memory->ram.bytesUsed = 0;
memory->swap.bytesTotal = 0;
memory->swap.bytesUsed = 0;
}