X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_tool.h;h=09cda43d97888e3c76564ad4d720fcf5aab352e4;hb=08ba6fd3d1a554f7ba249d96688c0d5a3e9814f0;hp=cf4f45c5ba9b28646d3544181e07dd4664f1b7ed;hpb=4f7e223142e96d5549de252214c3ab3f825b8dbb;p=rrdtool.git diff --git a/src/rrd_tool.h b/src/rrd_tool.h index cf4f45c..09cda43 100644 --- a/src/rrd_tool.h +++ b/src/rrd_tool.h @@ -1,5 +1,5 @@ /***************************************************************************** - * RRDtool 1.2.19 Copyright by Tobi Oetiker, 1997-2007 + * RRDtool 1.2.21 Copyright by Tobi Oetiker, 1997-2007 ***************************************************************************** * rrd_tool.h Common Header File *****************************************************************************/ @@ -115,7 +115,7 @@ int isnan(double value); #endif /* local include files -- need to be after the system ones */ -#include "getopt.h" +#include "rrd_getopt.h" #include "rrd_format.h" #ifndef max @@ -159,8 +159,8 @@ info_t *info_push(info_t *, char *, enum info_type, infoval); int PngSize(FILE *, long *, long *); -int rrd_create_fn(char *file_name, rrd_t *rrd); -int rrd_fetch_fn(char *filename, enum cf_en cf_idx, +int rrd_create_fn(const char *file_name, rrd_t *rrd); +int rrd_fetch_fn(const char *filename, enum cf_en cf_idx, time_t *start,time_t *end, unsigned long *step, unsigned long *ds_cnt, @@ -177,7 +177,7 @@ int readfile(const char *file, char **buffer, int skipfirst); #define RRD_READONLY 0 #define RRD_READWRITE 1 -enum cf_en cf_conv(char *string); +enum cf_en cf_conv(const char *string); enum dst_en dst_conv(char *string); long ds_match(rrd_t *rrd,char *ds_nam); double rrd_diff(char *a, char *b);