]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/blobdiff - src/rrd_format.h
Update Version and Copyright year in git files
[thirdparty/rrdtool-1.x.git] / src / rrd_format.h
index 6935ae06c469eba64ea404fa0cd3ddd5ea8d1ddd..d20578441115fe35fb0d9cf7c9539f569fb373a6 100644 (file)
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * RRDtool 1.4.3  Copyright by Tobi Oetiker, 1997-2010
+ * RRDtool 1.8.0 Copyright by Tobi Oetiker, 1997-2022
  *****************************************************************************
  * rrd_format.h  RRD Database Format header
  *****************************************************************************/
@@ -9,7 +9,7 @@
 
 /* 
  * _RRD_TOOL_H
- *   We're building RRDTool itself.
+ *   We're building RRDtool itself.
  *
  * RRD_EXPORT_DEPRECATED
  *   User is requesting internal function which need this struct. They have
@@ -33,8 +33,9 @@
 #define RRD_COOKIE    "RRD"
 /* #define RRD_VERSION   "0002" */
 /* changed because microsecond precision requires another field */
-#define RRD_VERSION   "0004"
 #define RRD_VERSION3  "0003"
+#define RRD_VERSION4  "0004"
+#define RRD_VERSION5  "0005"
 #define FLOAT_COOKIE  ((double)8.642135E130)
 
 typedef union unival {
@@ -47,13 +48,13 @@ typedef union unival {
  * The RRD Database Structure
  * ---------------------------
  * 
- * In oder to properly describe the database structure lets define a few
+ * In order to properly describe the database structure lets define a few
  * new words:
  *
  * ds - Data Source (ds) providing input to the database. A Data Source (ds)
  *       can be a traffic counter, a temperature, the number of users logged
  *       into a system. The rrd database format can handle the input of
- *       several Data Sources (ds) in a singe database.
+ *       several Data Sources (ds) in a single database.
  *  
  * dst - Data Source Type (dst). The Data Source Type (dst) defines the rules
  *       applied to Build Primary Data Points from the input provided by the
@@ -138,7 +139,9 @@ enum dst_en { DST_COUNTER = 0,  /* data source types available */
     DST_ABSOLUTE,
     DST_GAUGE,
     DST_DERIVE,
-    DST_CDEF
+    DST_CDEF,
+    DST_DCOUNTER,
+    DST_DDERIVE
 };
 
 enum ds_param_en { DS_mrhb_cnt = 0, /* minimum required heartbeat. A
@@ -318,7 +321,7 @@ typedef struct pdp_prep_t {
 
    * DS updates may only occur at ever increasing points in time
    * When any DS update arrives after a cdp update time, the *previous*
-     update cycle gets executed. All pdps are transfered to cdps and the
+     update cycle gets executed. All pdps are transferred to cdps and the
      cdps feed the rras where necessary. Only then the new DS value
      is loaded into the PDP.                                                   */
 
@@ -343,12 +346,12 @@ enum cdp_par_en { CDP_val = 0,
      * prediction algorithm. */
     CDP_hw_last_intercept,
     /* Last iteration intercept coefficient for the Holt-Winters
-     * prediction algorihtm. */
+     * prediction algorithm. */
     CDP_hw_slope,
     /* Current slope coefficient for the Holt-Winters
      * prediction algorithm. */
     CDP_hw_last_slope,
-    /* Last iteration slope coeffient. */
+    /* Last iteration slope coefficient. */
     CDP_null_count,
     /* Number of sequential Unknown (DNAN) values + 1 preceding
      * the current prediction.
@@ -366,7 +369,7 @@ enum cdp_par_en { CDP_val = 0,
      * prediction algorithm. This is stored in CDP prep to avoid
      * redundant seek operations. */
     CDP_hw_last_seasonal = CDP_hw_last_intercept,
-    /* Last iteration seasonal coeffient. */
+    /* Last iteration seasonal coefficient. */
     CDP_seasonal_deviation = CDP_hw_intercept,
     CDP_last_seasonal_deviation = CDP_hw_last_intercept,
     CDP_init_seasonal = CDP_null_count