Files
fastfetch/src/modules/disk/option.h
T

33 lines
796 B
C
Raw Normal View History

2023-04-02 00:13:11 +08:00
#pragma once
// This file will be included in "fastfetch.h", do NOT put unnecessary things here
#include "common/option.h"
2023-08-26 09:32:19 +08:00
typedef enum FFDiskVolumeType
2023-04-02 00:13:11 +08:00
{
2023-08-26 09:32:19 +08:00
FF_DISK_VOLUME_TYPE_NONE = 0,
FF_DISK_VOLUME_TYPE_REGULAR_BIT = 1 << 0,
FF_DISK_VOLUME_TYPE_HIDDEN_BIT = 1 << 1,
FF_DISK_VOLUME_TYPE_EXTERNAL_BIT = 1 << 2,
FF_DISK_VOLUME_TYPE_SUBVOLUME_BIT = 1 << 3,
FF_DISK_VOLUME_TYPE_UNKNOWN_BIT = 1 << 4,
2023-08-26 12:50:45 +08:00
FF_DISK_VOLUME_TYPE_READONLY_BIT = 1 << 5,
2023-08-26 09:32:19 +08:00
} FFDiskVolumeType;
2023-04-02 00:13:11 +08:00
2023-08-26 10:36:00 +08:00
typedef enum FFDiskCalcType
{
FF_DISK_CALC_TYPE_FREE,
FF_DISK_CALC_TYPE_AVAILABLE,
} FFDiskCalcType;
2023-04-02 00:13:11 +08:00
typedef struct FFDiskOptions
{
2023-08-17 10:56:54 +08:00
FFModuleBaseInfo moduleInfo;
2023-04-02 00:13:11 +08:00
FFModuleArgs moduleArgs;
FFstrbuf folders;
2023-08-26 09:32:19 +08:00
FFDiskVolumeType showTypes;
2023-08-26 10:36:00 +08:00
FFDiskCalcType calcType;
2023-04-02 00:13:11 +08:00
} FFDiskOptions;