evisum/src/bin/evisum_config.h

75 lines
1.2 KiB
C
Raw Normal View History

2020-04-14 10:24:27 -07:00
#ifndef __CONFIGURATION_H__
#define __CONFIGURATION_H__
#include "ui/ui.h"
2020-04-14 10:24:27 -07:00
2021-02-24 03:32:21 -08:00
#define CONFIG_VERSION 0x000f
2020-04-14 10:24:27 -07:00
typedef struct _Evisum_Config
{
int version;
Eina_Bool effects;
2020-10-10 06:52:11 -07:00
Eina_Bool backgrounds;
struct
{
2021-02-09 11:10:03 -08:00
Evas_Object *win;
int width;
int height;
int x, y;
Eina_Bool restart;
2021-02-09 11:10:03 -08:00
Eina_Bool show_kthreads;
Eina_Bool show_user;
unsigned char sort_type;
Eina_Bool sort_reverse;
unsigned char poll_delay;
2021-02-24 03:32:21 -08:00
unsigned int fields;
2021-02-09 11:10:03 -08:00
Eina_Bool show_scroller;
Eina_Bool transparant;
unsigned char alpha;
} proc;
struct
{
int width;
int height;
int x, y;
Eina_Bool restart;
} cpu;
struct
{
int width;
int height;
int x, y;
Eina_Bool restart;
} mem;
struct
{
int width;
int height;
int x, y;
Eina_Bool restart;
} disk;
struct
{
int width;
int height;
int x, y;
Eina_Bool restart;
} sensors;
2020-04-14 10:24:27 -07:00
} Evisum_Config;
void config_init(void);
void config_shutdown(void);
Evisum_Config *config_load(void);
Eina_Bool config_save(Evisum_Config *);
#endif