| Christian Göttsche | 7cd093c | 2020-10-08 16:34:54 +0200 | [diff] [blame] | 1 | #ifndef HEADER_NetworkIOMeter |
| 2 | #define HEADER_NetworkIOMeter |
| Benny Baumann | 8e4ce18 | 2023-05-24 11:14:25 +0200 | [diff] [blame] | 3 | /* |
| 4 | htop - NetworkIOMeter.h |
| 5 | (C) 2020-2023 htop dev team |
| 6 | Released under the GNU GPLv2+, see the COPYING file |
| 7 | in the source distribution for its full text. |
| 8 | */ |
| Christian Göttsche | 7cd093c | 2020-10-08 16:34:54 +0200 | [diff] [blame] | 9 | |
| Benny Baumann | e56089e | 2023-11-28 15:15:03 +0100 | [diff] [blame] | 10 | #include <stdint.h> |
| 11 | |
| Christian Göttsche | 7cd093c | 2020-10-08 16:34:54 +0200 | [diff] [blame] | 12 | #include "Meter.h" |
| 13 | |
| mayurdahibhate | 1b74dfe | 2021-04-29 20:42:43 +0530 | [diff] [blame] | 14 | |
| Nathan Scott | 2d18392 | 2021-03-01 11:55:15 +1100 | [diff] [blame] | 15 | typedef struct NetworkIOData_ { |
| Nathan Scott | 88a1185 | 2021-03-02 12:14:44 +1100 | [diff] [blame] | 16 | uint64_t bytesReceived; |
| 17 | uint64_t packetsReceived; |
| 18 | uint64_t bytesTransmitted; |
| 19 | uint64_t packetsTransmitted; |
| Nathan Scott | 2d18392 | 2021-03-01 11:55:15 +1100 | [diff] [blame] | 20 | } NetworkIOData; |
| 21 | |
| Christian Göttsche | 7cd093c | 2020-10-08 16:34:54 +0200 | [diff] [blame] | 22 | extern const MeterClass NetworkIOMeter_class; |
| 23 | |
| 24 | #endif /* HEADER_NetworkIOMeter */ |