2022-09-23 19:45:23 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#ifndef FF_INCLUDED_detection_disk_disk
|
|
|
|
|
#define FF_INCLUDED_detection_disk_disk
|
|
|
|
|
|
|
|
|
|
#include "fastfetch.h"
|
|
|
|
|
|
2022-10-06 22:56:56 +08:00
|
|
|
typedef struct FFDiskResult
|
|
|
|
|
{
|
|
|
|
|
FFstrbuf path;
|
|
|
|
|
uint64_t used;
|
|
|
|
|
uint64_t total;
|
|
|
|
|
uint32_t files;
|
2022-10-07 01:36:32 +08:00
|
|
|
bool removable;
|
2022-10-06 22:56:56 +08:00
|
|
|
FFstrbuf error;
|
|
|
|
|
} FFDiskResult;
|
|
|
|
|
|
2022-09-23 19:45:23 +08:00
|
|
|
const char* ffDiskAutodetectFolders(FFinstance* instance, FFlist* folders);
|
2022-10-06 22:56:56 +08:00
|
|
|
bool ffDiskDetectDiskFolders(FFinstance* instance, FFlist* folders);
|
2022-09-23 19:45:23 +08:00
|
|
|
|
|
|
|
|
#endif
|