aboutsummaryrefslogtreecommitdiffstats
path: root/Settings.h
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2016-04-11 13:01:07 +0200
committerDaniel Lange <DLange@git.local>2016-04-11 13:01:07 +0200
commitff9409b1737627857eb47f64f536a3f66b6a09a4 (patch)
tree61b631ba551e68a4f656b8b76ff7bd0d9955fc64 /Settings.h
parentf75ab6d2c11e8a8e18191b087564aedebbeb96c5 (diff)
downloaddebian_htop-ff9409b1737627857eb47f64f536a3f66b6a09a4.tar.gz
debian_htop-ff9409b1737627857eb47f64f536a3f66b6a09a4.tar.bz2
debian_htop-ff9409b1737627857eb47f64f536a3f66b6a09a4.zip
Imported Upstream version 2.0.0upstream/2.0.0
Diffstat (limited to 'Settings.h')
-rw-r--r--Settings.h47
1 files changed, 41 insertions, 6 deletions
diff --git a/Settings.h b/Settings.h
index 28fe552..d9dc068 100644
--- a/Settings.h
+++ b/Settings.h
@@ -11,24 +11,59 @@ in the source distribution for its full text.
#define DEFAULT_DELAY 15
-#include "ProcessList.h"
-#include "Header.h"
+#include "Process.h"
#include <stdbool.h>
+typedef struct {
+ int len;
+ char** names;
+ int* modes;
+} MeterColumnSettings;
+
typedef struct Settings_ {
- char* userSettings;
- ProcessList* pl;
- Header* header;
+ char* filename;
+
+ MeterColumnSettings columns[2];
+
+ ProcessField* fields;
+ int flags;
int colorScheme;
int delay;
+
+ int cpuCount;
+ int direction;
+ ProcessField sortKey;
+
+ bool countCPUsFromZero;
+ bool detailedCPUTime;
+ bool treeView;
+ bool showProgramPath;
+ bool hideThreads;
+ bool shadowOtherUsers;
+ bool showThreadNames;
+ bool hideKernelThreads;
+ bool hideUserlandThreads;
+ bool highlightBaseName;
+ bool highlightMegabytes;
+ bool highlightThreads;
+ bool updateProcessNames;
+ bool accountGuestInCPUMeter;
+ bool headerMargin;
+
bool changed;
} Settings;
+#ifndef Settings_cpuId
+#define Settings_cpuId(settings, cpu) ((settings)->countCPUsFromZero ? (cpu) : (cpu)+1)
+#endif
+
void Settings_delete(Settings* this);
bool Settings_write(Settings* this);
-Settings* Settings_new(ProcessList* pl, Header* header, int cpuCount);
+Settings* Settings_new(int cpuCount);
+
+void Settings_invertSortOrder(Settings* this);
#endif

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