2 * collection4 - graph_list.h
3 * Copyright (C) 2010 Florian octo Forster
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301 USA
21 * Florian octo Forster <ff at octo.it>
25 #define GRAPH_LIST_H 1
27 #include "graph_types.h"
28 #include "graph_ident.h"
33 int gl_add_graph (graph_config_t *cfg);
35 int gl_config_submit (void);
37 graph_config_t *gl_graph_get_selected (void);
39 int gl_graph_get_all (graph_callback_t callback, void *user_data);
41 int gl_graph_instance_get_all (graph_config_t *cfg, graph_inst_callback_t callback,
44 int gl_instance_get_all (graph_inst_callback_t callback, void *user_data);
46 int gl_search (const char *search, graph_inst_callback_t callback,
49 int gl_search_field (graph_ident_field_t field, const char *field_value,
50 graph_inst_callback_t callback, void *user_data);
52 int gl_foreach_host (int (*callback) (const char *host, void *user_data),
57 #endif /* GRAPH_LIST_H */
58 /* vim: set sw=2 sts=2 et fdm=marker : */