mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-26 00:10:38 +01:00
Big refactoring. Move ascii managment to printer. Mix extended and standart cpuid functions in cpuid file. Old cpuid renamed to cpuid_asm. Store cpu name in cpuInfo struct
This commit is contained in:
@@ -1,23 +1,7 @@
|
||||
#ifndef __PRINTER__
|
||||
#define __PRINTER__
|
||||
|
||||
#include "standart.h"
|
||||
#include "ascii.h"
|
||||
|
||||
#define ATTRIBUTE_COUNT 13
|
||||
#define ATTRIBUTE_NAME 0
|
||||
#define ATTRIBUTE_FREQUENCY 1
|
||||
#define ATTRIBUTE_NCORES 2
|
||||
#define ATTRIBUTE_AVX 3
|
||||
#define ATTRIBUTE_SSE 4
|
||||
#define ATTRIBUTE_FMA 5
|
||||
#define ATTRIBUTE_AES 6
|
||||
#define ATTRIBUTE_SHA 7
|
||||
#define ATTRIBUTE_L1i 8
|
||||
#define ATTRIBUTE_L1d 9
|
||||
#define ATTRIBUTE_L2 10
|
||||
#define ATTRIBUTE_L3 11
|
||||
#define ATTRIBUTE_PEAK 12
|
||||
#include "cpuid.h"
|
||||
|
||||
typedef int STYLE;
|
||||
#define STYLES_COUNT 3
|
||||
@@ -28,11 +12,6 @@ typedef int STYLE;
|
||||
#define STYLE_DARK 1
|
||||
#define STYLE_NONE 2
|
||||
|
||||
struct ascii;
|
||||
|
||||
static const int STYLES_CODE_LIST [STYLES_COUNT] = {STYLE_DEFAULT, STYLE_DARK};
|
||||
struct ascii* set_ascii(VENDOR cpuVendor, STYLE style);
|
||||
void print_ascii(struct ascii* art);
|
||||
void setAttribute(struct ascii* art, int type, char* value);
|
||||
bool print_cpufetch(struct cpuInfo* cpu, struct cache* cach, struct frequency* freq, struct topology* topo, STYLE s);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user