mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Another mega-patch for the refactoring process.
Kinda runs, but functionality from the original main loop is still missing. Patience.
This commit is contained in:
11
Header.h
11
Header.h
@ -10,15 +10,16 @@ in the source distribution for its full text.
|
||||
*/
|
||||
|
||||
#include "Meter.h"
|
||||
#include "Settings.h"
|
||||
#include "Vector.h"
|
||||
|
||||
typedef struct Header_ {
|
||||
Vector** columns;
|
||||
Settings* settings;
|
||||
struct ProcessList_* pl;
|
||||
int height;
|
||||
int pad;
|
||||
int nrColumns;
|
||||
bool margin;
|
||||
int pad;
|
||||
int height;
|
||||
} Header;
|
||||
|
||||
|
||||
@ -30,10 +31,12 @@ typedef struct Header_ {
|
||||
#define Header_forEachColumn(this_, i_) for (int i_=0; i_ < this->nrColumns; i_++)
|
||||
#endif
|
||||
|
||||
Header* Header_new(struct ProcessList_* pl, int nrColumns);
|
||||
Header* Header_new(struct ProcessList_* pl, Settings* settings, int nrColumns);
|
||||
|
||||
void Header_delete(Header* this);
|
||||
|
||||
void Header_populateFromSettings(Header* this);
|
||||
|
||||
MeterModeId Header_addMeterByName(Header* this, char* name, int column);
|
||||
|
||||
void Header_setMode(Header* this, int i, MeterModeId mode, int column);
|
||||
|
Reference in New Issue
Block a user