summaryrefslogtreecommitdiffstats
path: root/src/detection/zpool/zpool.h
blob: 2e6523fed61f7a49bc7206ba5f65e4d40d5bcdf8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include "fastfetch.h"
#include "modules/zpool/option.h"

typedef struct FFZpoolResult {
    FFstrbuf name;
    FFstrbuf state;
    uint64_t guid;
    uint64_t used;
    uint64_t total;
    uint64_t allocated;
    double fragmentation;
    bool readOnly;
} FFZpoolResult;

const char* ffDetectZpool(FFlist* result /* list of FFZpoolResult */);