summaryrefslogtreecommitdiffstats
path: root/Settings.h
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2021-08-23 14:56:05 +0200
committerDaniel Lange <DLange@git.local>2021-08-23 14:56:05 +0200
commitec2307688e14ccd7d63257db94de8b78e998f6ab (patch)
tree908060b27973357d2fe14221b0d792331f670d75 /Settings.h
parent6d10736a647d5f83e48abbb9a8db2f0a44e7ed29 (diff)
parent711a7aacb008abc4a8f32d9e7d9ec07058709bf2 (diff)
Merge branch 'header_fmt' of cgzones/htop
Diffstat (limited to 'Settings.h')
-rw-r--r--Settings.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/Settings.h b/Settings.h
index a512341b..20f583c3 100644
--- a/Settings.h
+++ b/Settings.h
@@ -13,6 +13,7 @@ in the source distribution for its full text.
#include <stdint.h>
#include "Hashtable.h"
+#include "HeaderLayout.h"
#include "Process.h"
@@ -21,15 +22,16 @@ in the source distribution for its full text.
#define CONFIG_READER_MIN_VERSION 2
typedef struct {
- int len;
+ uint8_t len;
char** names;
int* modes;
-} MeterColumnSettings;
+} MeterColumnSetting;
typedef struct Settings_ {
char* filename;
int config_version;
- MeterColumnSettings columns[2];
+ HeaderLayout hLayout;
+ MeterColumnSetting* hColumns;
Hashtable* dynamicColumns;
ProcessField* fields;
@@ -107,4 +109,6 @@ void Settings_enableReadonly(void);
bool Settings_isReadonly(void);
+void Settings_setHeaderLayout(Settings* this, HeaderLayout hLayout);
+
#endif

© 2014-2024 Faster IT GmbH | imprint | privacy policy