diff options
| author | sumuel <samuel@yakubos.org> | 2026-08-17 20:44:55 +0000 |
|---|---|---|
| committer | sumuel <samuel@yakubos.org> | 2026-08-17 20:44:55 +0000 |
| commit | 76424950e373d3b04ac3dd13019151bfba3e8423 (patch) | |
| tree | 4c3cfdbda039e592b9186be3e28f8d7cfd439e8a /src/detection/netio/netio.h | |
Add the files
Diffstat (limited to 'src/detection/netio/netio.h')
| -rw-r--r-- | src/detection/netio/netio.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/detection/netio/netio.h b/src/detection/netio/netio.h new file mode 100644 index 0000000..1e48b53 --- /dev/null +++ b/src/detection/netio/netio.h @@ -0,0 +1,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); |