2023-12-18 10:43:20 +08:00
|
|
|
#include "fastfetch.h"
|
2025-08-04 14:25:14 +08:00
|
|
|
#include "modules/physicaldisk/option.h"
|
2023-12-18 10:43:20 +08:00
|
|
|
|
2025-08-14 09:47:14 +08:00
|
|
|
#define FF_PHYSICALDISK_TEMP_UNSET (-DBL_MAX)
|
2023-12-26 19:23:26 +08:00
|
|
|
|
2026-03-29 09:28:49 +08:00
|
|
|
typedef struct FFPhysicalDiskResult {
|
2023-12-18 10:43:20 +08:00
|
|
|
FFstrbuf name;
|
|
|
|
|
FFstrbuf interconnect;
|
|
|
|
|
FFstrbuf serial;
|
|
|
|
|
FFstrbuf devPath;
|
2023-12-25 18:21:23 +08:00
|
|
|
FFstrbuf revision;
|
2023-12-18 10:43:20 +08:00
|
|
|
FFPhysicalDiskType type;
|
|
|
|
|
uint64_t size;
|
2023-12-26 19:23:26 +08:00
|
|
|
double temperature;
|
2023-12-18 10:43:20 +08:00
|
|
|
} FFPhysicalDiskResult;
|
|
|
|
|
|
|
|
|
|
const char* ffDetectPhysicalDisk(FFlist* result, FFPhysicalDiskOptions* options);
|