action graph: Remove unused functions.
[collection4.git] / common.h
1 #ifndef COMMON_H
2 #define COMMON_H 1
3
4 #include <stdint.h>
5 #include <inttypes.h>
6
7 #define DATA_DIR "/var/lib/collectd/rrd"
8
9 #include "graph_list.h"
10
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);
14
15 int foreach_type (const char *host, const char *plugin,
16     callback_type_t, void *user_data);
17 int foreach_plugin (const char *host, callback_plugin_t, void *user_data);
18 int foreach_host (callback_host_t, void *user_data);
19
20 size_t c_strlcat (char *dst, const char *src, size_t size);
21 #define strlcat c_strlcat
22
23 int ds_list_from_rrd_file (char *file,
24     size_t *ret_dses_num, char ***ret_dses);
25
26 uint32_t get_random_color (void);
27
28 #endif /* COMMON_H */
29 /* vim: set sw=2 sts=2 et fdm=marker : */