diff options
author | Nathan Scott <nathans@redhat.com> | 2021-08-13 15:56:01 +1000 |
---|---|---|
committer | Nathan Scott <nathans@redhat.com> | 2021-08-13 15:56:01 +1000 |
commit | f839095e3b29668d080c89f3b32fb6dccff54030 (patch) | |
tree | 7ef2d9359dea6e171c882f5b6ec5620eb4555396 /pcp/Platform.h | |
parent | 6974ce8e7982d061f26dbbe7c5ca48d7aa6f4dbc (diff) | |
parent | 6f2021f3d95e02fc54e59fdeeb006e34c209b9c3 (diff) |
Merge branch 'dynamic-columns' of https://github.com/smalinux/htop into smalinux-dynamic-columns
Diffstat (limited to 'pcp/Platform.h')
-rw-r--r-- | pcp/Platform.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/pcp/Platform.h b/pcp/Platform.h index 527bef29..3f98a733 100644 --- a/pcp/Platform.h +++ b/pcp/Platform.h @@ -11,6 +11,8 @@ in the source distribution for its full text. #include <ctype.h> #include <stdbool.h> +#include <stddef.h> +#include <stdint.h> #include <pcp/pmapi.h> /* use htop config.h values for these macros, not pcp values */ @@ -29,6 +31,7 @@ in the source distribution for its full text. #include "NetworkIOMeter.h" #include "Process.h" #include "ProcessLocksScreen.h" +#include "RichString.h" #include "SignalsPanel.h" #include "SysArchMeter.h" @@ -253,13 +256,15 @@ pmAtomValue* Metric_values(Metric metric, pmAtomValue* atom, int count, int type const pmDesc* Metric_desc(Metric metric); +int Metric_type(Metric metric); + int Metric_instanceCount(Metric metric); int Metric_instanceOffset(Metric metric, int inst); pmAtomValue* Metric_instance(Metric metric, int inst, int offset, pmAtomValue* atom, int type); -int Platform_addMetric(Metric id, const char* name); +size_t Platform_addMetric(Metric id, const char* name); void Platform_gettime_realtime(struct timeval* tv, uint64_t* msec); @@ -273,4 +278,10 @@ void Platform_dynamicMeterUpdateValues(Meter* meter); void Platform_dynamicMeterDisplay(const Meter* meter, RichString* out); +Hashtable* Platform_dynamicColumns(void); + +const char* Platform_dynamicColumnInit(unsigned int key); + +bool Platform_dynamicColumnWriteField(const Process* proc, RichString* str, unsigned int key); + #endif |