#ifndef COMMON_H
#define COMMON_H 1
+#include <stdint.h>
+#include <inttypes.h>
+
#define DATA_DIR "/var/lib/collectd/rrd"
#include "graph_list.h"
typedef int (*callback_plugin_t) (const char *plugin, void *user_data);
typedef int (*callback_host_t) (const char *host, void *user_data);
+int print_debug (const char *format, ...)
+ __attribute__((format(printf,1,2)));
+#if 0
+# define DEBUG(...) print_debug (__VA_ARGS__)
+#else
+# define DEBUG(...) /**/
+#endif
+
int foreach_type (const char *host, const char *plugin,
callback_type_t, void *user_data);
int foreach_plugin (const char *host, callback_plugin_t, void *user_data);
int ds_list_from_rrd_file (char *file,
size_t *ret_dses_num, char ***ret_dses);
+uint32_t get_random_color (void);
+
#endif /* COMMON_H */
/* vim: set sw=2 sts=2 et fdm=marker : */