Settings.h 666 Bytes
Newer Older
1
/* Do not edit this file. It was automatically generated. */
Hisham Muhammad's avatar
Hisham Muhammad committed
2
3
4
5

#ifndef HEADER_Settings
#define HEADER_Settings
/*
Hisham Muhammad's avatar
Hisham Muhammad committed
6
htop - Settings.h
Hisham Muhammad's avatar
Hisham Muhammad committed
7
(C) 2004-2011 Hisham H. Muhammad
Hisham Muhammad's avatar
Hisham Muhammad committed
8
9
10
11
Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
*/

12
13
#define DEFAULT_DELAY 15

Hisham Muhammad's avatar
Hisham Muhammad committed
14
15
16
#include "ProcessList.h"
#include "Header.h"
#include <stdbool.h>
Hisham Muhammad's avatar
Hisham Muhammad committed
17
18
19
20
21
22

typedef struct Settings_ {
   char* userSettings;
   ProcessList* pl;
   Header* header;
   int colorScheme;
23
   int delay;
Hisham Muhammad's avatar
Hisham Muhammad committed
24
   bool changed;
Hisham Muhammad's avatar
Hisham Muhammad committed
25
26
27
28
29
30
31
} Settings;


void Settings_delete(Settings* this);

bool Settings_write(Settings* this);

32
Settings* Settings_new(ProcessList* pl, Header* header, int cpuCount);
33

Hisham Muhammad's avatar
Hisham Muhammad committed
34
#endif