From 5bb312993960adaa663701391a83f76b81edc60a Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Sun, 21 Dec 2025 16:57:44 +0900 Subject: created htop-vim/ --- fedora/.local/bin/htop-vim/pcp/PCPDynamicColumn.h | 35 +++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 fedora/.local/bin/htop-vim/pcp/PCPDynamicColumn.h (limited to 'fedora/.local/bin/htop-vim/pcp/PCPDynamicColumn.h') diff --git a/fedora/.local/bin/htop-vim/pcp/PCPDynamicColumn.h b/fedora/.local/bin/htop-vim/pcp/PCPDynamicColumn.h new file mode 100644 index 0000000..d0ffe71 --- /dev/null +++ b/fedora/.local/bin/htop-vim/pcp/PCPDynamicColumn.h @@ -0,0 +1,35 @@ +#ifndef HEADER_PCPDynamicColumn +#define HEADER_PCPDynamicColumn + +#include + +#include "DynamicColumn.h" +#include "Hashtable.h" +#include "Process.h" +#include "RichString.h" + +#include "pcp/PCPProcess.h" + + +typedef struct PCPDynamicColumn_ { + DynamicColumn super; + char* metricName; + size_t id; /* identifier for metric array lookups */ +} PCPDynamicColumn; + +typedef struct PCPDynamicColumns_ { + Hashtable* table; + size_t count; /* count of dynamic meters discovered by scan */ + size_t offset; /* start offset into the Platform metric array */ + size_t cursor; /* identifier allocator for each new metric used */ +} PCPDynamicColumns; + +void PCPDynamicColumns_init(PCPDynamicColumns* columns); + +void PCPDynamicColumns_done(Hashtable* table); + +void PCPDynamicColumn_writeField(PCPDynamicColumn* this, const Process* proc, RichString* str); + +int PCPDynamicColumn_compareByKey(const PCPProcess* p1, const PCPProcess* p2, ProcessField key); + +#endif -- cgit v1.2.3