mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 10:24:58 +02:00
367264e549
Can be used to improve performance by ignoring network disks
32 lines
738 B
C
32 lines
738 B
C
#pragma once
|
|
|
|
#include "fastfetch.h"
|
|
|
|
typedef struct FFDisk
|
|
{
|
|
FFstrbuf mountFrom;
|
|
FFstrbuf mountpoint;
|
|
FFstrbuf filesystem;
|
|
FFstrbuf name;
|
|
FFDiskVolumeType type;
|
|
|
|
uint64_t bytesUsed;
|
|
uint64_t bytesFree;
|
|
uint64_t bytesAvailable;
|
|
uint64_t bytesTotal;
|
|
|
|
uint32_t filesUsed;
|
|
uint32_t filesTotal;
|
|
|
|
uint64_t createTime;
|
|
} 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 */);
|
|
|
|
const char* ffDetectDisksImpl(FFDiskOptions* options, FFlist* disks);
|
|
bool ffDiskMatchMountpoint(FFDiskOptions* options, const char* mountpoint);
|