X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fdaemon%2Futils_threshold.h;h=cefc6e2ca60bffc28484d57a79650be33d5b2913;hp=a5c3373723efc23e0254425397bcdda4cc0fe246;hb=da11ce02eb202b3e01d3e2d1b40f248a84430973;hpb=b5a33aab585aabef83c79bf3261092ca901edf9c diff --git a/src/daemon/utils_threshold.h b/src/daemon/utils_threshold.h index a5c33737..cefc6e2c 100644 --- a/src/daemon/utils_threshold.h +++ b/src/daemon/utils_threshold.h @@ -27,13 +27,12 @@ #ifndef UTILS_THRESHOLD_H #define UTILS_THRESHOLD_H 1 -#define UT_FLAG_INVERT 0x01 +#define UT_FLAG_INVERT 0x01 #define UT_FLAG_PERSIST 0x02 #define UT_FLAG_PERCENTAGE 0x04 #define UT_FLAG_INTERESTING 0x08 #define UT_FLAG_PERSIST_OK 0x10 -typedef struct threshold_s -{ +typedef struct threshold_s { char host[DATA_MAX_NAME_LEN]; char plugin[DATA_MAX_NAME_LEN]; char plugin_instance[DATA_MAX_NAME_LEN]; @@ -50,18 +49,15 @@ typedef struct threshold_s struct threshold_s *next; } threshold_t; -extern c_avl_tree_t *threshold_tree; +extern c_avl_tree_t *threshold_tree; extern pthread_mutex_t threshold_lock; -threshold_t *threshold_get (const char *hostname, - const char *plugin, const char *plugin_instance, - const char *type, const char *type_instance); +threshold_t *threshold_get(const char *hostname, const char *plugin, + const char *plugin_instance, const char *type, + const char *type_instance); -threshold_t *threshold_search (const value_list_t *vl); +threshold_t *threshold_search(const value_list_t *vl); -int ut_search_threshold (const value_list_t *vl, - threshold_t *ret_threshold); +int ut_search_threshold(const value_list_t *vl, threshold_t *ret_threshold); #endif /* UTILS_THRESHOLD_H */ - -/* vim: set sw=2 sts=2 ts=8 : */