From c0c2bb98a23b649c55e5d8a55395073fdaa8d6fa Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Fri, 3 Sep 2021 12:11:31 +1000 Subject: 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 --- netbsd/Platform.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'netbsd') diff --git a/netbsd/Platform.h b/netbsd/Platform.h index 4ba4c84b..0420ad13 100644 --- a/netbsd/Platform.h +++ b/netbsd/Platform.h @@ -96,6 +96,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) { } @@ -104,6 +106,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; } -- cgit v1.2.3