mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
25 lines
485 B
C
25 lines
485 B
C
#pragma once
|
|
|
|
#include "fastfetch.h"
|
|
|
|
#define FF_CPU_TEMP_UNSET (0/0.0)
|
|
|
|
typedef struct FFCPUResult
|
|
{
|
|
FFstrbuf name;
|
|
FFstrbuf vendor;
|
|
|
|
uint16_t coresPhysical;
|
|
uint16_t coresLogical;
|
|
uint16_t coresOnline;
|
|
|
|
double frequencyBase; // GHz
|
|
double frequencyMax; // GHz
|
|
double frequencyMin; // GHz
|
|
|
|
double temperature;
|
|
} FFCPUResult;
|
|
|
|
const char* ffCPUDetectByCpuid(FFCPUResult* cpu);
|
|
const char* ffDetectCPU(const FFCPUOptions* options, FFCPUResult* cpu);
|