#define CRIT_ERR(s, varargs...) \
{ fprintf(stderr, "Conky: " s "\n", ##varargs); exit(EXIT_FAILURE); }
+#ifndef MIN
#define MIN(a,b) (a>b ? b : a)
+#endif
+#ifndef MAX
#define MAX(a,b) (a<b ? b : a)
+#endif
struct i8k_struct {
char *version;
};
#endif
+#ifdef BMPX
+struct bmpx_s {
+ char *title;
+ char *artist;
+ char *album;
+ char *uri;
+ int bitrate;
+ int track;
+};
+#endif
+
#ifdef TCP_PORT_MONITOR
#include "libtcp-portmon.h"
#define MIN_PORT_MONITORS_DEFAULT 16
#ifdef TCP_PORT_MONITOR
INFO_TCP_PORT_MONITOR = 22,
#endif
+#ifdef BMPX
+ INFO_BMPX = 23,
+#endif
};
struct mpd_s mpd;
mpd_Connection *conn;
#endif
+#ifdef BMPX
+ struct bmpx_s bmpx;
+#endif
struct process *cpu[10];
struct process *memu[10];
struct process *first_process;