Disk: don't use singleton

This commit is contained in:
李通洲
2023-06-12 22:09:52 +08:00
committed by 李通洲
parent 88f354a872
commit d5a3802492
6 changed files with 53 additions and 53 deletions
+1 -9
View File
@@ -19,18 +19,10 @@ typedef struct FFDisk
uint32_t filesTotal;
} FFDisk;
typedef struct FFDiskResult
{
FFstrbuf error;
FFlist disks; //List of FFDisk
} FFDiskResult;
/**
* Returns a List of FFDisk, sorted alphabetically by mountpoint.
* If error is not set, disks contains at least one disk.
*
* @return const FFDiskResult*
*/
const FFDiskResult* ffDetectDisks();
const char* ffDetectDisks(FFlist* result /* list of FFDisk */);
#endif