mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-08 06:00:08 +01:00
26 lines
603 B
C
26 lines
603 B
C
|
|
#include "fastfetch.h"
|
||
|
|
|
||
|
|
typedef enum FFPhysicalDiskType
|
||
|
|
{
|
||
|
|
FF_PHYSICALDISK_TYPE_NONE = 0,
|
||
|
|
|
||
|
|
// If neither is set, it's unknown
|
||
|
|
FF_PHYSICALDISK_TYPE_HDD = 1 << 0,
|
||
|
|
FF_PHYSICALDISK_TYPE_SSD = 1 << 1,
|
||
|
|
|
||
|
|
FF_PHYSICALDISK_TYPE_FIXED = 1 << 2,
|
||
|
|
FF_PHYSICALDISK_TYPE_REMOVABLE = 1 << 3,
|
||
|
|
} FFPhysicalDiskType;
|
||
|
|
|
||
|
|
typedef struct FFPhysicalDiskResult
|
||
|
|
{
|
||
|
|
FFstrbuf name;
|
||
|
|
FFstrbuf interconnect;
|
||
|
|
FFstrbuf serial;
|
||
|
|
FFstrbuf devPath;
|
||
|
|
FFPhysicalDiskType type;
|
||
|
|
uint64_t size;
|
||
|
|
} FFPhysicalDiskResult;
|
||
|
|
|
||
|
|
const char* ffDetectPhysicalDisk(FFlist* result, FFPhysicalDiskOptions* options);
|