From: Ruben Kerkhof Date: Tue, 1 Mar 2016 11:09:40 +0000 (+0100) Subject: write_riemann: move prototype to header file X-Git-Tag: collectd-5.5.2~48 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e790264a655713a5f9b0b733e2ed56c16bff63f4;p=collectd.git write_riemann: move prototype to header file --- diff --git a/src/write_riemann.c b/src/write_riemann.c index 328341ea..58611a96 100644 --- a/src/write_riemann.c +++ b/src/write_riemann.c @@ -26,13 +26,6 @@ * Florian octo Forster */ -#include "collectd.h" -#include "plugin.h" -#include "common.h" -#include "configfile.h" -#include "utils_cache.h" -#include "riemann.pb-c.h" - #include #include #include @@ -40,13 +33,19 @@ #include #include +#include "collectd.h" +#include "plugin.h" +#include "common.h" +#include "configfile.h" +#include "utils_cache.h" +#include "riemann.pb-c.h" +#include "write_riemann_threshold.h" + #define RIEMANN_HOST "localhost" #define RIEMANN_PORT "5555" #define RIEMANN_TTL_FACTOR 2.0 #define RIEMANN_BATCH_MAX 8192 -int write_riemann_threshold_check(const data_set_t *, const value_list_t *, int *); - struct riemann_host { char *name; char *event_service_prefix; diff --git a/src/write_riemann_threshold.c b/src/write_riemann_threshold.c index 6d5af032..b1f7297e 100644 --- a/src/write_riemann_threshold.c +++ b/src/write_riemann_threshold.c @@ -25,16 +25,17 @@ * Andrés J. Díaz **/ +#include +#include +#include + #include "collectd.h" #include "common.h" #include "plugin.h" #include "utils_avltree.h" #include "utils_cache.h" #include "utils_threshold.h" - -#include -#include -#include +#include "write_riemann_threshold.h" /* * Threshold management diff --git a/src/write_riemann_threshold.h b/src/write_riemann_threshold.h new file mode 100644 index 00000000..d3b3fe9a --- /dev/null +++ b/src/write_riemann_threshold.h @@ -0,0 +1,6 @@ +#ifndef WRITE_RIEMANN_THRESHOLD_H +#define WRITE_RIEMANN_THRESHOLD_H + +int write_riemann_threshold_check(const data_set_t *, const value_list_t *, int *); + +#endif