src/dp_rrdtool.c: Adapt to new callback prototype.
[collection4.git] / src / graph_types.h
1 /**
2  * collection4 - graph_types.h
3  * Copyright (C) 2010  Florian octo Forster
4  * 
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.
9  * 
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.
14  * 
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
19  *
20  * Authors:
21  *   Florian octo Forster <ff at octo.it>
22  **/
23
24 #ifndef GRAPH_TYPES_H
25 #define GRAPH_TYPES_H 1
26
27 /*
28  * Opaque types
29  */
30 struct graph_config_s;
31 typedef struct graph_config_s graph_config_t;
32
33 struct graph_def_s;
34 typedef struct graph_def_s graph_def_t;
35
36 struct graph_ident_s;
37 typedef struct graph_ident_s graph_ident_t;
38
39 struct graph_instance_s;
40 typedef struct graph_instance_s graph_instance_t;
41
42 /*
43  * Callback types
44  */
45 typedef int (*graph_callback_t) (graph_config_t *cfg,
46     void *user_data);
47
48 typedef int (*graph_inst_callback_t) (graph_config_t *cfg,
49     graph_instance_t *inst, void *user_data);
50
51 typedef int (*def_callback_t) (graph_def_t *def,
52     void *user_data);
53
54 typedef int (*inst_callback_t) (graph_instance_t *inst,
55                 void *user_data);
56
57 #endif /* GRAPH_TYPES_H */
58 /* vim: set sw=2 sts=2 et fdm=marker : */