Move the "cdtime_t" type to "collectd.h".
[collectd.git] / src / collectd.h
index 3d8998f..4c347dd 100644 (file)
@@ -135,6 +135,12 @@ typedef bool _Bool;
 # ifndef isnan
 #  define isnan(f) ((f) != (f))
 # endif /* !defined(isnan) */
+# ifndef isfinite
+#  define isfinite(f) (((f) - (f)) == 0.0)
+# endif
+# ifndef isinf
+#  define isinf(f) (!isfinite(f) && !isnan(f))
+# endif
 #endif /* NAN_ZERO_ZERO */
 
 /* Try really, really hard to determine endianess. Under NexentaStor 1.0.2 this
@@ -292,7 +298,11 @@ 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;
 
 #endif /* COLLECTD_H */