1 /*****************************************************************************
2 * RRDtool 1.0.33 Copyright Tobias Oetiker, 1997,1998, 1999
3 *****************************************************************************
4 * rrdlib.h Public header file for librrd
5 *****************************************************************************
8 * Revision 1.1 2001/02/25 22:25:05 oetiker
11 *****************************************************************************/
21 /* Transplanted from rrd_format.h */
22 typedef double rrd_value_t; /* the data storage type is
24 /* END rrd_format.h */
26 /* main function blocks */
27 int rrd_create(int, char **);
28 int rrd_update(int, char **);
29 int rrd_graph(int, char **, char ***, int *, int *);
30 int rrd_fetch(int, char **, time_t *, time_t *, unsigned long *,
31 unsigned long *, char ***, rrd_value_t **);
32 int rrd_restore(int, char **);
33 int rrd_dump(int, char **);
34 int rrd_tune(int, char **);
35 time_t rrd_last(int, char **);
36 int rrd_resize(int, char **);
38 /* Transplanted from parsetime.h */
41 RELATIVE_TO_START_TIME,
53 char *parsetime(char *spec, struct time_value *ptv);
56 int proc_start_end (struct time_value *, struct time_value *, time_t *, time_t *);
58 /* HELPER FUNCTIONS */
59 void rrd_set_error(char *,...);
60 void rrd_clear_error(void);
61 int rrd_test_error(void);
62 char *rrd_get_error(void);
65 #endif /* _RRDLIB_H */