htop/Settings.h

70 lines
1.3 KiB
C
Raw Normal View History

/* Do not edit this file. It was automatically generated. */
2006-03-04 18:16:49 +00:00
#ifndef HEADER_Settings
#define HEADER_Settings
/*
2006-06-06 20:28:42 +00:00
htop - Settings.h
2011-05-26 16:35:07 +00:00
(C) 2004-2011 Hisham H. Muhammad
2006-03-04 18:16:49 +00:00
Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
*/
#define DEFAULT_DELAY 15
#include "Process.h"
2011-12-26 21:35:57 +00:00
#include <stdbool.h>
2006-03-04 18:16:49 +00:00
typedef struct {
int len;
char** names;
int* modes;
} MeterColumnSettings;
2006-03-04 18:16:49 +00:00
typedef struct Settings_ {
char* filename;
2019-10-31 16:39:12 +00:00
MeterColumnSettings columns[2];
ProcessField* fields;
int flags;
2006-03-04 18:16:49 +00:00
int colorScheme;
int delay;
2015-08-12 20:11:07 +00:00
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;
2014-02-27 19:35:22 +00:00
bool changed;
2006-03-04 18:16:49 +00:00
} Settings;
#ifndef Settings_cpuId
#define Settings_cpuId(settings, cpu) ((settings)->countCPUsFromZero ? (cpu) : (cpu)+1)
#endif
2006-03-04 18:16:49 +00:00
extern void Settings_delete(Settings* this);
2006-03-04 18:16:49 +00:00
extern bool Settings_write(Settings* this);
2006-03-04 18:16:49 +00:00
extern Settings* Settings_new(int cpuCount);
extern void Settings_invertSortOrder(Settings* this);
2006-03-04 18:16:49 +00:00
#endif