Files
fastfetch/src/detection/disk/disk.h
T

27 lines
565 B
C
Raw Normal View History

#pragma once
#include "fastfetch.h"
2022-10-17 13:19:48 +02:00
typedef struct FFDisk
{
2023-09-17 20:08:46 +08:00
FFstrbuf mountFrom;
2022-10-17 13:19:48 +02:00
FFstrbuf mountpoint;
FFstrbuf filesystem;
2022-10-18 18:39:28 +08:00
FFstrbuf name;
2023-08-26 09:32:19 +08:00
FFDiskVolumeType type;
2022-10-17 13:19:48 +02:00
uint64_t bytesUsed;
2023-08-26 10:36:00 +08:00
uint64_t bytesFree;
uint64_t bytesAvailable;
2022-10-17 13:19:48 +02:00
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* disks /* list of FFDisk */);