mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-15 21:44:36 +03:00
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
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user