summaryrefslogtreecommitdiffstats
path: root/src/detection/physicaldisk/physicaldisk.h
blob: 3481063befa4d5233ec38f3ed6eb326cb915b556 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "fastfetch.h"
#include "modules/physicaldisk/option.h"

#define FF_PHYSICALDISK_TEMP_UNSET (-DBL_MAX)

typedef struct FFPhysicalDiskResult {
    FFstrbuf name;
    FFstrbuf interconnect;
    FFstrbuf serial;
    FFstrbuf devPath;
    FFstrbuf revision;
    FFPhysicalDiskType type;
    uint64_t size;
    double temperature;
} FFPhysicalDiskResult;

const char* ffDetectPhysicalDisk(FFlist* result, FFPhysicalDiskOptions* options);