#include <mcheck.h>
#endif /* HAS_MCHECK_H */
+#define EQUAL 0 //returnvalue of strcmp-variants when strings are equal
+
#include "config.h"
#include <sys/utsname.h>
#include <stdio.h>
int count;
};
+#ifdef X11
+struct monitor_info {
+ int number;
+ int current;
+};
+
+struct x11_info {
+ struct monitor_info monitor;
+};
+#endif
+
#ifdef TCP_PORT_MONITOR
#include "libtcp-portmon.h"
#endif
#endif
INFO_USERS = 26,
INFO_GW = 27,
- INFO_DNS = 28
#ifdef NVIDIA
-, INFO_NVIDIA = 29
+ INFO_NVIDIA = 28,
#endif
+#ifdef X11
+ INFO_X11 = 29,
+#endif
+ INFO_DNS = 30
};
double uptime;
/* memory information in kilobytes */
- unsigned long long mem, memmax, swap, swapmax;
+ unsigned long long mem, memeasyfree, memfree, memmax, swap, swapmax;
unsigned long long bufmem, buffers, cached;
unsigned short procs;
struct entropy_s entropy;
double music_player_interval;
+#ifdef X11
+ struct x11_info x11;
+#endif
+
short kflags; /* kernel settings, see enum KFLAG */
unsigned int diskio_value;
#define KFLAG_FLIP(a) info.kflags ^= a
#define KFLAG_ISSET(a) info.kflags & a
-int out_to_console;
+#define TO_X 1
+#define TO_STDOUT 2
+int output_methods;
int top_cpu;
int top_mem;
void update_dns_data(void);
void update_users(void);
+#ifdef X11
+void update_x11info(void);
+#endif
+
void update_stuff(void);
int round_to_int(float f);