mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-30 00:37:23 +01:00
40 lines
819 B
C
40 lines
819 B
C
#pragma once
|
|
|
|
#ifndef FF_INCLUDED_detection_disk_disk
|
|
#define FF_INCLUDED_detection_disk_disk
|
|
|
|
#include "fastfetch.h"
|
|
|
|
typedef enum FFDiskPhysicalType
|
|
{
|
|
FF_DISK_TYPE_UNKNOWN,
|
|
FF_DISK_TYPE_HDD,
|
|
FF_DISK_TYPE_SSD,
|
|
} FFDiskPhysicalType;
|
|
|
|
typedef struct FFDisk
|
|
{
|
|
FFstrbuf mountFrom;
|
|
FFstrbuf mountpoint;
|
|
FFstrbuf filesystem;
|
|
FFstrbuf name;
|
|
FFDiskVolumeType type;
|
|
FFDiskPhysicalType physicalType;
|
|
|
|
uint64_t bytesUsed;
|
|
uint64_t bytesFree;
|
|
uint64_t bytesAvailable;
|
|
uint64_t bytesTotal;
|
|
|
|
uint32_t filesUsed;
|
|
uint32_t filesTotal;
|
|
} FFDisk;
|
|
|
|
/**
|
|
* Returns a List of FFDisk, sorted alphabetically by mountpoint.
|
|
* If error is not set, disks contains at least one disk.
|
|
*/
|
|
const char* ffDetectDisks(FFDiskOptions* options, FFlist* result /* list of FFDisk */);
|
|
|
|
#endif
|