src/action_graph.c: Remove debugging output.
[collection4.git] / src / graph_instance.h
1 #ifndef GRAPH_INSTANCE_H
2 #define GRAPH_INSTANCE_H 1
3
4 /*
5  * Data types
6  */
7 struct graph_instance_s;
8 typedef struct graph_instance_s graph_instance_t;
9
10 typedef int (*inst_callback_t) (graph_instance_t *inst, void *user_data);
11
12 #include <time.h>
13
14 #include "graph.h"
15 #include "utils_array.h"
16
17 /*
18  * Callback types
19  */
20 /*
21  * Methods
22  */
23 graph_instance_t *inst_create (graph_config_t *cfg,
24                 const graph_ident_t *ident);
25
26 void inst_destroy (graph_instance_t *inst);
27
28 int inst_add_file (graph_instance_t *inst, const graph_ident_t *file);
29
30 graph_instance_t *inst_get_selected (graph_config_t *cfg);
31
32 int inst_get_params (graph_config_t *cfg, graph_instance_t *inst,
33     char *buffer, size_t buffer_size);
34
35 int inst_get_rrdargs (graph_config_t *cfg, graph_instance_t *inst,
36     str_array_t *args);
37
38 graph_ident_t *inst_get_selector (graph_instance_t *inst);
39
40 int inst_append (graph_instance_t *head, graph_instance_t *inst);
41
42 int inst_foreach (graph_instance_t *inst,
43                 inst_callback_t cb, void *user_data);
44
45 graph_instance_t *inst_find_matching (graph_instance_t *inst,
46     const graph_ident_t *ident);
47
48 int inst_describe (graph_config_t *cfg, graph_instance_t *inst,
49     char *buffer, size_t buffer_size);
50
51 time_t inst_get_mtime (graph_instance_t *inst);
52
53 #endif /* GRAPH_INSTANCE_H */
54 /* vim: set sw=2 sts=2 et fdm=marker : */