diff options
author | Daniel Lange <DLange@git.local> | 2021-08-23 14:56:05 +0200 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2021-08-23 14:56:05 +0200 |
commit | ec2307688e14ccd7d63257db94de8b78e998f6ab (patch) | |
tree | 908060b27973357d2fe14221b0d792331f670d75 /Settings.h | |
parent | 6d10736a647d5f83e48abbb9a8db2f0a44e7ed29 (diff) | |
parent | 711a7aacb008abc4a8f32d9e7d9ec07058709bf2 (diff) |
Merge branch 'header_fmt' of cgzones/htop
Diffstat (limited to 'Settings.h')
-rw-r--r-- | Settings.h | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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 |