* Please see COPYING for details
*
* Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
- * Copyright (c) 2005-2008 Brenden Matthews, Philip Kovacs, et. al.
+ * Copyright (c) 2005-2009 Brenden Matthews, Philip Kovacs, et. al.
* (see AUTHORS)
* All rights reserved.
*
#define FALSE 0
#define TRUE 1
+#define DEFAULT_BAR_WIDTH_NO_X 10
#if !defined(__GNUC__)
# define __attribute__(x) /* nothing */
#include "rss.h"
#endif
+#ifdef HAVE_LUA
+#include "llua.h"
+#endif
+
#ifdef TCP_PORT_MONITOR
#include "tcp-portmon.h"
#endif
#include "smapi.h"
#endif
+#ifdef APCUPSD
+#include "apcupsd.h"
+#endif
+
+/* sony support */
+#include "sony.h"
+
/* A size for temporary, static buffers to use when
* one doesn't know what to choose. Defaults to 256. */
extern unsigned int text_buffer_size;
#endif
INFO_DNS = 30,
#ifdef MOC
- INFO_MOC = 31
+ INFO_MOC = 31,
+#endif
+#ifdef APCUPSD
+ INFO_APCUPSD = 32,
#endif
};
float *cpu_usage;
/* struct cpu_stat cpu_summed; what the hell is this? */
unsigned int cpu_count;
- unsigned int cpu_avg_samples;
+ int cpu_avg_samples;
- unsigned int net_avg_samples;
+ int net_avg_samples;
+
+ int diskio_avg_samples;
float loadavg[3];
int mail_running;
#ifdef XMMS2
struct xmms2_s xmms2;
- int xmms2_conn_state;
- xmmsc_connection_t *xmms2_conn;
#endif
#ifdef AUDACIOUS
AUDACIOUS_S audacious;
struct x11_info x11;
#endif
+#ifdef APCUPSD
+ APCUPSD_S apcupsd;
+#endif
+
short kflags; /* kernel settings, see enum KFLAG */
};
void update_users(void);
/* defined in conky.c */
-extern double current_update_time, last_update_time;
+extern double current_update_time, last_update_time, update_interval;
/* defined in conky.c */
int spaced_print(char *, int, const char *, int, ...)
__attribute__((format(printf, 3, 5)));
+extern int inotify_fd;
+
+#define TO_X 1
+#define TO_STDOUT 2
+#define TO_STDERR 4
+#define OVERWRITE_FILE 8
+#define APPEND_FILE 16
+enum x_initialiser_state {
+ NO = 0,
+ YES = 1,
+ NEVER = 2
+};
+extern int output_methods;
+extern enum x_initialiser_state x_initialised;
-#endif
+#define DEFAULT_TEXT_BUFFER_SIZE_S "##DEFAULT_TEXT_BUFFER_SIZE"
+
+#endif /* _conky_h_ */