InDomTable.h 766 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef HEADER_InDomTable
  2. #define HEADER_InDomTable
  3. /*
  4. htop - InDomTable.h
  5. (C) 2023 htop dev team
  6. (C) 2022-2023 Sohaib Mohammed
  7. Released under the GNU GPLv2+, see the COPYING file
  8. in the source distribution for its full text.
  9. */
  10. #include <stdbool.h>
  11. #include <sys/types.h>
  12. #include "Platform.h"
  13. #include "Table.h"
  14. typedef struct InDomTable_ {
  15. Table super;
  16. pmInDom id; /* shared by metrics in the table */
  17. unsigned int metricKey; /* representative metric using this indom */
  18. } InDomTable;
  19. extern const TableClass InDomTable_class;
  20. InDomTable* InDomTable_new(Machine* host, pmInDom indom, int metricKey);
  21. void InDomTable_done(InDomTable* this);
  22. RowField RowField_keyAt(const Settings* settings, int at);
  23. void InDomTable_scan(Table* super);
  24. #endif