From: Florian Forster Date: Sun, 31 Oct 2010 16:10:43 +0000 (+0100) Subject: Move the "cdtime_t" type to "collectd.h". X-Git-Tag: collectd-5.0.0-beta0~19^2~7 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=37376539adc2398591f306aee89a37dc4734f926;p=collectd.git Move the "cdtime_t" type to "collectd.h". This will make it possible to turn "interval_g" into a "cdtime_t". --- diff --git a/src/collectd.h b/src/collectd.h index 8849b30b..4c347ddc 100644 --- a/src/collectd.h +++ b/src/collectd.h @@ -298,6 +298,9 @@ typedef bool _Bool; # endif #endif +/* Type for time as used by "utils_time.h" */ +typedef uint64_t cdtime_t; + extern char hostname_g[]; extern int interval_g; extern int timeout_g; diff --git a/src/utils_time.h b/src/utils_time.h index 33384cf1..0c477d8c 100644 --- a/src/utils_time.h +++ b/src/utils_time.h @@ -32,7 +32,9 @@ * manner is that comparing times and calculating differences is as simple as * it is with "time_t", i.e. a simple integer comparison / subtraction works. */ -typedef uint64_t cdtime_t; +/* + * cdtime_t is defined in "collectd.h" */ +/* typedef uint64_t cdtime_t; */ /* 2^30 = 1073741824 */ #define TIME_T_TO_CDTIME_T(t) (((cdtime_t) (t)) * 1073741824)