graph_list: Free old list when re-scanning.
[collection4.git] / graph_list.h
1 #ifndef GRAPH_LIST_H
2 #define GRAPH_LIST_H 1
3
4 struct graph_list_s
5 {
6   char *host;
7   char *plugin;
8   char *plugin_instance;
9   char *type;
10   char *type_instance;
11 };
12 typedef struct graph_list_s graph_list_t;
13
14 typedef int (*gl_callback) (const graph_list_t *, void *);
15
16 int gl_update (void);
17 int gl_foreach (gl_callback callback, void *user_data);
18
19 #endif /* GRAPH_LIST_H */
20 /* vim: set sw=2 sts=2 et fdm=marker : */