NetworkIOMeter.h 509 B

123456789101112131415161718192021222324
  1. #ifndef HEADER_NetworkIOMeter
  2. #define HEADER_NetworkIOMeter
  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. */
  9. #include <stdint.h>
  10. #include "Meter.h"
  11. typedef struct NetworkIOData_ {
  12. uint64_t bytesReceived;
  13. uint64_t packetsReceived;
  14. uint64_t bytesTransmitted;
  15. uint64_t packetsTransmitted;
  16. } NetworkIOData;
  17. extern const MeterClass NetworkIOMeter_class;
  18. #endif /* HEADER_NetworkIOMeter */