blob: 355b815b2d6277a0fb3d5cec345ba4eddc0999b4 [file] [log] [blame]
Christian Göttsche7cd093c2020-10-08 16:34:54 +02001#ifndef HEADER_NetworkIOMeter
2#define HEADER_NetworkIOMeter
Benny Baumann8e4ce182023-05-24 11:14:25 +02003/*
4htop - NetworkIOMeter.h
5(C) 2020-2023 htop dev team
6Released under the GNU GPLv2+, see the COPYING file
7in the source distribution for its full text.
8*/
Christian Göttsche7cd093c2020-10-08 16:34:54 +02009
Benny Baumanne56089e2023-11-28 15:15:03 +010010#include <stdint.h>
11
Christian Göttsche7cd093c2020-10-08 16:34:54 +020012#include "Meter.h"
13
mayurdahibhate1b74dfe2021-04-29 20:42:43 +053014
Nathan Scott2d183922021-03-01 11:55:15 +110015typedef struct NetworkIOData_ {
Nathan Scott88a11852021-03-02 12:14:44 +110016 uint64_t bytesReceived;
17 uint64_t packetsReceived;
18 uint64_t bytesTransmitted;
19 uint64_t packetsTransmitted;
Nathan Scott2d183922021-03-01 11:55:15 +110020} NetworkIOData;
21
Christian Göttsche7cd093c2020-10-08 16:34:54 +020022extern const MeterClass NetworkIOMeter_class;
23
24#endif /* HEADER_NetworkIOMeter */