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

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

typedef struct FFNetIOResult {
    FFstrbuf name;
    bool defaultRoute;
    uint64_t txBytes;
    uint64_t rxBytes;
    uint64_t txPackets;
    uint64_t rxPackets;
    uint64_t rxErrors;
    uint64_t txErrors;
    uint64_t rxDrops;
    uint64_t txDrops;
} FFNetIOResult;

const char* ffDetectNetIO(FFlist* result, FFNetIOOptions* options);
const char* ffNetIOGetIoCounters(FFlist* result, FFNetIOOptions* options);