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 /linux/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 'linux/Platform.h')
-rw-r--r-- | linux/Platform.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/Platform.h b/linux/Platform.h index ccc92e19..0d6d4a97 100644 --- a/linux/Platform.h +++ b/linux/Platform.h @@ -112,6 +112,8 @@ static inline void Platform_gettime_monotonic(uint64_t* msec) { static inline Hashtable* Platform_dynamicMeters(void) { return NULL; } +static inline void Platform_dynamicMetersDone(ATTR_UNUSED Hashtable* table) { } + static inline void Platform_dynamicMeterInit(ATTR_UNUSED Meter* meter) { } static inline void Platform_dynamicMeterUpdateValues(ATTR_UNUSED Meter* meter) { } @@ -120,6 +122,8 @@ static inline void Platform_dynamicMeterDisplay(ATTR_UNUSED const Meter* meter, static inline Hashtable* Platform_dynamicColumns(void) { return NULL; } +static inline void Platform_dynamicColumnsDone(ATTR_UNUSED Hashtable* table) { } + static inline const char* Platform_dynamicColumnInit(ATTR_UNUSED unsigned int key) { return NULL; } static inline bool Platform_dynamicColumnWriteField(ATTR_UNUSED const Process* proc, ATTR_UNUSED RichString* str, ATTR_UNUSED unsigned int key) { return false; } |