diff options
author | Nathan Scott <nathans@redhat.com> | 2021-09-03 12:11:31 +1000 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2021-09-03 09:47:01 +0200 |
commit | c0c2bb98a23b649c55e5d8a55395073fdaa8d6fa (patch) | |
tree | 5d568468338201447d1396843e761d33c6729b37 /pcp/Platform.h | |
parent | 9b30870eeca0e2fd29602451205834d753ed5905 (diff) |
Add completion handling for dynamic meters and columns
Be sure to free dynamic memory allocated for meters and
columns strings, no-op on platforms other than pcp.
Closes #774
Diffstat (limited to 'pcp/Platform.h')
-rw-r--r-- | pcp/Platform.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pcp/Platform.h b/pcp/Platform.h index dcb8dc98..14e57469 100644 --- a/pcp/Platform.h +++ b/pcp/Platform.h @@ -138,6 +138,8 @@ void Platform_gettime_monotonic(uint64_t* msec); Hashtable* Platform_dynamicMeters(void); +void Platform_dynamicMetersDone(Hashtable* meters); + void Platform_dynamicMeterInit(Meter* meter); void Platform_dynamicMeterUpdateValues(Meter* meter); @@ -146,6 +148,8 @@ void Platform_dynamicMeterDisplay(const Meter* meter, RichString* out); Hashtable* Platform_dynamicColumns(void); +void Platform_dynamicColumnsDone(Hashtable* columns); + const char* Platform_dynamicColumnInit(unsigned int key); bool Platform_dynamicColumnWriteField(const Process* proc, RichString* str, unsigned int key); |