X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd.h;h=f27bb7a13266d3e56fb54bf7f60eef4ceb1b5bc9;hb=6801c3fb1c505c5534218100fab7888e140ca359;hp=d907d18443f09e1fc3c3ff9f49be89b1042161ea;hpb=990fcfb7eec407edfe504f42760bae204e1c074d;p=rrdtool.git diff --git a/src/rrd.h b/src/rrd.h index d907d18..f27bb7a 100644 --- a/src/rrd.h +++ b/src/rrd.h @@ -1,5 +1,5 @@ /***************************************************************************** - * RRDtool 1.2rc9 Copyright by Tobi Oetiker, 1997-2005 + * RRDtool 1.2.18 Copyright by Tobi Oetiker, 1997-2006 ***************************************************************************** * rrdlib.h Public header file for librrd ***************************************************************************** @@ -72,6 +72,8 @@ int rrd_tune(int, char **); time_t rrd_last(int, char **); time_t rrd_first(int, char **); int rrd_resize(int, char **); +char * rrd_strversion(void); +double rrd_version(void); int rrd_xport(int, char **, int *, time_t *, time_t *, unsigned long *, unsigned long *, char ***, rrd_value_t **); @@ -82,9 +84,10 @@ int rrd_create_r(char *filename, int argc, char **argv); /* NOTE: rrd_update_r are only thread-safe if no at-style time specifications get used!!! */ + int rrd_update_r(char *filename, char *_template, int argc, char **argv); -int rrd_dump_r(char *filename); +int rrd_dump_r(const char *filename, char *outname); time_t rrd_last_r(const char *filename); time_t rrd_first_r(const char *filename, int rraindex); @@ -103,6 +106,9 @@ struct rrd_time_value { struct tm tm; }; +char *parsetime(const char *spec, struct rrd_time_value *ptv); +/* END parsetime.h */ + struct rrd_context { int len; int errlen; @@ -113,8 +119,6 @@ struct rrd_context { /* returns the current per-thread rrd_context */ struct rrd_context *rrd_get_context(void); -char *parsetime(const char *spec, struct rrd_time_value *ptv); -/* END parsetime.h */ int proc_start_end (struct rrd_time_value *, struct rrd_time_value *, time_t *, time_t *);