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

29 lines
548 B
C
Raw Normal View History

#pragma once
#ifndef FF_INCLUDED_detection_disk_disk
#define FF_INCLUDED_detection_disk_disk
#include "fastfetch.h"
2022-10-17 13:19:48 +02:00
typedef struct FFDisk
{
FFstrbuf mountpoint;
FFstrbuf filesystem;
2022-10-18 18:39:28 +08:00
FFstrbuf name;
2022-10-17 13:19:48 +02:00
FFDiskType type;
uint64_t bytesUsed;
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.
*/
2023-06-12 22:09:52 +08:00
const char* ffDetectDisks(FFlist* result /* list of FFDisk */);
#endif