X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fdaemon%2Futils_threshold.h;h=585ad12a7e1385b87ec8d033e5137cd5066b1a85;hp=a5c3373723efc23e0254425397bcdda4cc0fe246;hb=79963d13c1884d1d92667cc502ad20758b084a12;hpb=51181b899668ad2c232a152d6e5e787c4eb049cc diff --git a/src/daemon/utils_threshold.h b/src/daemon/utils_threshold.h index a5c33737..585ad12a 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,17 +49,16 @@ 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 */