7 #define DATA_DIR "/var/lib/collectd/rrd"
9 #include "graph_list.h"
11 typedef int (*callback_type_t) (const char *type, void *user_data);
12 typedef int (*callback_plugin_t) (const char *plugin, void *user_data);
13 typedef int (*callback_host_t) (const char *host, void *user_data);
15 int print_debug (const char *format, ...)
16 __attribute__((format(printf,1,2)));
18 # define DEBUG(...) print_debug (__VA_ARGS__)
20 # define DEBUG(...) /**/
23 int foreach_type (const char *host, const char *plugin,
24 callback_type_t, void *user_data);
25 int foreach_plugin (const char *host, callback_plugin_t, void *user_data);
26 int foreach_host (callback_host_t, void *user_data);
28 size_t c_strlcat (char *dst, const char *src, size_t size);
29 #define strlcat c_strlcat
31 int ds_list_from_rrd_file (char *file,
32 size_t *ret_dses_num, char ***ret_dses);
34 uint32_t get_random_color (void);
37 /* vim: set sw=2 sts=2 et fdm=marker : */