mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-07 21:50:08 +01:00
28 lines
435 B
C
28 lines
435 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#ifndef FF_INCLUDED_detection_cpu_cpu
|
||
|
|
#define FF_INCLUDED_detection_cpu_cpu
|
||
|
|
|
||
|
|
#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 frequencyMin;
|
||
|
|
double frequencyMax;
|
||
|
|
|
||
|
|
double temperature;
|
||
|
|
} FFCPUResult;
|
||
|
|
|
||
|
|
const FFCPUResult* ffDetectCPU();
|
||
|
|
|
||
|
|
#endif
|