mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-29 16:26:39 +01:00
28 lines
582 B
C
28 lines
582 B
C
#pragma once
|
|
|
|
#include "fastfetch.h"
|
|
|
|
typedef enum FFDiskIOPhysicalType
|
|
{
|
|
FF_DISKIO_PHYSICAL_TYPE_UNKNOWN,
|
|
FF_DISKIO_PHYSICAL_TYPE_HDD,
|
|
FF_DISKIO_PHYSICAL_TYPE_SSD,
|
|
} FFDiskIOPhysicalType;
|
|
|
|
typedef struct FFDiskIOResult
|
|
{
|
|
FFstrbuf name;
|
|
FFstrbuf interconnect;
|
|
FFstrbuf serial;
|
|
FFDiskIOPhysicalType type;
|
|
uint64_t size;
|
|
bool removable;
|
|
FFstrbuf devPath;
|
|
uint64_t bytesRead;
|
|
uint64_t readCount;
|
|
uint64_t bytesWritten;
|
|
uint64_t writeCount;
|
|
} FFDiskIOResult;
|
|
|
|
const char* ffDetectDiskIO(FFlist* result, FFDiskIOOptions* options);
|