You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.3 KiB
67 lines
1.3 KiB
/* Do not edit this file. It was automatically generated. */ |
|
|
|
#ifndef HEADER_Settings |
|
#define HEADER_Settings |
|
/* |
|
htop - Settings.h |
|
(C) 2004-2011 Hisham H. Muhammad |
|
Released under the GNU GPL, see the COPYING file |
|
in the source distribution for its full text. |
|
*/ |
|
|
|
#define DEFAULT_DELAY 15 |
|
|
|
#include "Process.h" |
|
#include <stdbool.h> |
|
|
|
typedef struct { |
|
int len; |
|
char** names; |
|
int* modes; |
|
} MeterColumnSettings; |
|
|
|
typedef struct Settings_ { |
|
char* filename; |
|
|
|
MeterColumnSettings columns[2]; |
|
|
|
ProcessField* fields; |
|
int flags; |
|
int colorScheme; |
|
int delay; |
|
|
|
int direction; |
|
ProcessField sortKey; |
|
|
|
bool countCPUsFromZero; |
|
bool detailedCPUTime; |
|
bool treeView; |
|
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(int cpuCount); |
|
|
|
void Settings_invertSortOrder(Settings* this); |
|
|
|
#endif
|
|
|