X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=program%2Fsrc%2Frrd.h;h=dc996695678714e29835102288012936e9fec4e5;hb=3fe75e499b529b4e2e20d3e8c7e30b4b44c86c90;hp=28a50d7bf18e2532965bff032fcb4a9c56591d89;hpb=f9e4ad4df99ab34e3e45a97ec18b17dd571d90eb;p=rrdtool-all.git diff --git a/program/src/rrd.h b/program/src/rrd.h index 28a50d7b..dc996695 100644 --- a/program/src/rrd.h +++ b/program/src/rrd.h @@ -57,6 +57,12 @@ extern "C" { #ifndef WIN32 #include /* for off_t */ #else +#ifdef _MSC_VER +#ifndef PERLPATCHLEVEL + typedef int mode_t; +#endif + #define strtoll _strtoi64 +#endif typedef size_t ssize_t; typedef long off_t; #endif @@ -222,18 +228,32 @@ extern "C" { const char *filename, unsigned long pdp_step, time_t last_up, + /* int no_overwrite, */ + int argc, + const char **argv); + int rrd_create_r2( + const char *filename, + unsigned long pdp_step, + time_t last_up, + int no_overwrite, int argc, const char **argv); rrd_info_t *rrd_info_r( char *); -/* NOTE: rrd_update_r are only thread-safe if no at-style time - specifications get used!!! */ +/* NOTE: rrd_update_r and rrd_update_v_r are only thread-safe if no at-style + time specifications get used!!! */ int rrd_update_r( const char *filename, const char *_template, int argc, const char **argv); + int rrd_update_v_r( + const char *filename, + const char *_template, + int argc, + const char **argv, + rrd_info_t * pcdp_summary); int rrd_fetch_r ( const char *filename, const char *cf, @@ -266,7 +286,8 @@ extern "C" { typedef enum { ABSOLUTE_TIME, RELATIVE_TO_START_TIME, - RELATIVE_TO_END_TIME + RELATIVE_TO_END_TIME, + RELATIVE_TO_EPOCH } rrd_timetype_t; #define TIME_OK NULL