X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_tool.h;h=40a484601e021f78b3b3af7f081dc82968e105e6;hp=6cbca574dc2834c5a85977c364d7ee4f5b46fc94;hb=HEAD;hpb=56d67cdd0c5b2c27c9242a3d5810c7184917f663 diff --git a/src/rrd_tool.h b/src/rrd_tool.h index 6cbca57..40a4846 100644 --- a/src/rrd_tool.h +++ b/src/rrd_tool.h @@ -1,5 +1,5 @@ /***************************************************************************** - * RRDtool 1.4.0 Copyright by Tobi Oetiker, 1997-2009 + * RRDtool 1.4.3 Copyright by Tobi Oetiker, 1997-2010 ***************************************************************************** * rrd_tool.h Common Header File *****************************************************************************/ @@ -10,10 +10,12 @@ extern "C" { #ifndef _RRD_TOOL_H #define _RRD_TOOL_H +#if defined(WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__) +#include "../win32/config.h" +#else #ifdef HAVE_CONFIG_H #include "../rrd_config.h" -#elif defined(_WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__) -#include "../win32/config.h" +#endif #endif #include "rrd.h" @@ -82,7 +84,8 @@ extern "C" { int rrd_create_fn( const char *file_name, - rrd_t *rrd); + rrd_t *rrd, + int no_overwrite); int rrd_fetch_fn (const char *filename, enum cf_en cf_idx, time_t *start, @@ -107,6 +110,7 @@ int rrd_fetch_fn_libdbi(const char *filename, enum cf_en cf_idx, #define RRD_CREAT (1<<2) #define RRD_READAHEAD (1<<3) #define RRD_COPY (1<<4) +#define RRD_EXCL (1<<5) enum cf_en cf_conv( const char *string); @@ -121,6 +125,8 @@ int rrd_fetch_fn_libdbi(const char *filename, enum cf_en cf_idx, char *a, char *b); + const char *cf_to_string (enum cf_en cf); + #endif /* _RRD_TOOL_H */ #ifdef __cplusplus