]> git.itanic.dy.fi Git - rrdd/blob - rrdtool.h
Collect all rrdtool handling in one file
[rrdd] / rrdtool.h
1 #ifndef _DRAW_GRAPHS
2 #define _DRAW_GRAPHS
3
4 #define MAX_STRLEN 16
5
6 struct rrd_image {
7         char    *rrd_database;  /* Database file path */
8         char    *image_filename; /* Output image */
9         int     width;          /* Image dimensions */
10         int     height;
11         char    timestart[MAX_STRLEN];
12         char    timeend[MAX_STRLEN];
13         char    imageformat[MAX_STRLEN];
14         char    **options;      /* Null terminated list of rrdgraph options */
15         int     text_lead;      /* Number of spaces at the beginning of line */
16         char    **text;         /* Null terminated list of text lines */
17 };
18
19 int rrdtool_draw_image(struct rrd_image *image);
20 int rrdtool_draw_images(struct rrd_image **image);
21 int rrdtool_update_data(struct rrd_database *rrd);
22
23 #endif