1 #ifndef GRAPH_INSTANCE_H
2 #define GRAPH_INSTANCE_H 1
6 #include "graph_types.h"
7 #include "utils_array.h"
12 graph_instance_t *inst_create (graph_config_t *cfg,
13 const graph_ident_t *ident);
15 void inst_destroy (graph_instance_t *inst);
17 int inst_add_file (graph_instance_t *inst, const graph_ident_t *file);
19 graph_instance_t *inst_get_selected (graph_config_t *cfg);
21 int inst_get_params (graph_config_t *cfg, graph_instance_t *inst,
22 char *buffer, size_t buffer_size);
24 int inst_get_rrdargs (graph_config_t *cfg, graph_instance_t *inst,
27 graph_ident_t *inst_get_selector (graph_instance_t *inst);
29 int inst_append (graph_instance_t *head, graph_instance_t *inst);
31 int inst_foreach (graph_instance_t *inst,
32 inst_callback_t cb, void *user_data);
34 int inst_search (graph_config_t *cfg, graph_instance_t *inst,
35 const char *term, inst_callback_t cb,
38 graph_instance_t *inst_find_matching (graph_instance_t *inst,
39 const graph_ident_t *ident);
41 int inst_describe (graph_config_t *cfg, graph_instance_t *inst,
42 char *buffer, size_t buffer_size);
44 time_t inst_get_mtime (graph_instance_t *inst);
46 #endif /* GRAPH_INSTANCE_H */
47 /* vim: set sw=2 sts=2 et fdm=marker : */