X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcollectd.h;h=7cb405c04bd43d25ec6b807f730419cbf39a93bb;hb=9f6f901889d4c9f594b5ae1fd0f449fcdd2d8fe3;hp=7012f4d13f9261348f476495f67e8ffe0343ca9a;hpb=edd0e2639a241167e213ec301bfc71c7d291ee61;p=collectd.git diff --git a/src/collectd.h b/src/collectd.h index 7012f4d1..7cb405c0 100644 --- a/src/collectd.h +++ b/src/collectd.h @@ -97,6 +97,12 @@ # define assert(...) /* nop */ #endif +#if !defined(HAVE__BOOL) || !HAVE__BOOL +typedef int _Bool; +# undef HAVE__BOOL +# define HAVE__BOOL 1 +#endif + #if NAN_STATIC_DEFAULT # include /* #endif NAN_STATIC_DEFAULT*/ @@ -212,10 +218,6 @@ # include #endif -#if HAVE_SENSORS_SENSORS_H -# include -#endif - #ifndef PACKAGE_NAME #define PACKAGE_NAME "collectd" #endif @@ -256,7 +258,9 @@ # define COLLECTD_GRP_NAME "collectd" #endif -#define STATIC_ARRAY_LEN(array) (sizeof (array) / sizeof ((array)[0])) +#ifndef COLLECTD_DEFAULT_INTERVAL +# define COLLECTD_DEFAULT_INTERVAL 10.0 +#endif /* Remove GNU specific __attribute__ settings when using another compiler */ #if !__GNUC__ @@ -286,8 +290,8 @@ /* 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; +extern char hostname_g[]; +extern cdtime_t interval_g; +extern int timeout_g; #endif /* COLLECTD_H */