X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_format.h;h=e9e6f11ab5a6a45c37ef3453daff06a92ade17e8;hb=eaf3af3f1af054366dbdf3eb522f5ef270759604;hp=3eb46ae22a5c4cca5119600f80a92911a99370cc;hpb=1b8f812fbf8d14bad0fcf9749ac71f640bda2868;p=rrdtool.git diff --git a/src/rrd_format.h b/src/rrd_format.h index 3eb46ae..e9e6f11 100644 --- a/src/rrd_format.h +++ b/src/rrd_format.h @@ -1,5 +1,5 @@ /***************************************************************************** - * RRDtool 1.2.99907080300 Copyright by Tobi Oetiker, 1997-2007 + * RRDtool 1.3.2 Copyright by Tobi Oetiker, 1997-2008 ***************************************************************************** * rrd_format.h RRD Database Format header *****************************************************************************/ @@ -7,6 +7,18 @@ #ifndef _RRD_FORMAT_H #define _RRD_FORMAT_H +/* + * _RRD_TOOL_H + * We're building RRDTool itself. + * + * RRD_EXPORT_DEPRECATED + * User is requesting internal function which need this struct. They have + * been told that this will change and have agreed to adapt their programs. + */ +#if !defined(_RRD_TOOL_H) && !defined(RRD_EXPORT_DEPRECATED) +# error "Do not include rrd_format.h directly. Include rrd.h instead!" +#endif + #include "rrd.h" /***************************************************************************** @@ -25,8 +37,6 @@ #define RRD_VERSION3 "0003" #define FLOAT_COOKIE 8.642135E130 -#include "rrd_nan_inf.h" - typedef union unival { unsigned long u_cnt; rrd_value_t u_val; @@ -231,11 +241,11 @@ enum rra_par_en { RRA_cdp_xff_val = 0, /* what part of the consolidated * the period smoother. */ /* CF_FAILURES: */ - RRA_delta_pos = 1, /* confidence bound scaling parameters */ + RRA_delta_pos = 1, /* confidence bound scaling parameters */ RRA_delta_neg = 2, /* RRA_dependent_rra_idx = 3, */ RRA_window_len = 4, - RRA_failure_threshold = 5, + RRA_failure_threshold = 5 /* For CF_FAILURES, number of violations within the last * window required to mark a failure. */ }; @@ -385,7 +395,8 @@ typedef struct rrd_t { stat_head_t *stat_head; /* the static header */ ds_def_t *ds_def; /* list of data source definitions */ rra_def_t *rra_def; /* list of round robin archive def */ - live_head_t *live_head; + live_head_t *live_head; /* rrd v >= 3 last_up with us */ + time_t *legacy_last_up; /* rrd v < 3 last_up time */ pdp_prep_t *pdp_prep; /* pdp data prep area */ cdp_prep_t *cdp_prep; /* cdp prep area */ rra_ptr_t *rra_ptr; /* list of rra pointers */