action_list_graphs.c: Implement real simple HTML output.
[collection4.git] / common.h
1 #ifndef COMMON_H
2 #define COMMON_H 1
3
4 #define DATA_DIR "/var/lib/collectd/rrd"
5
6 typedef int (*callback_type_t)   (const char *type,   void *user_data);
7 typedef int (*callback_plugin_t) (const char *plugin, void *user_data);
8 typedef int (*callback_host_t)   (const char *host,   void *user_data);
9
10 int foreach_type (const char *host, const char *plugin,
11     callback_type_t, void *user_data);
12 int foreach_plugin (const char *host, callback_plugin_t, void *user_data);
13 int foreach_host (callback_host_t, void *user_data);
14
15 #endif /* COMMON_H */
16 /* vim: set sw=2 sts=2 et fdm=marker : */