summaryrefslogtreecommitdiffstats
path: root/lib/utils_base.h
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-08-01 14:29:08 +0200
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-08-01 14:29:08 +0200
commit4966b920a2392484a6ae83a4a499c24a2942c832 (patch)
treee6c6dd287c723e4724b3991ac502f7d8d839617f /lib/utils_base.h
parente570ce63634b57573aa84b12d84e7651d466a761 (diff)
downloadmonitoring-plugins-4966b920a2392484a6ae83a4a499c24a2942c832.tar.gz
General smal improvements to the lib logic
Diffstat (limited to 'lib/utils_base.h')
-rw-r--r--lib/utils_base.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/utils_base.h b/lib/utils_base.h
index 123066f8..8fb114c2 100644
--- a/lib/utils_base.h
+++ b/lib/utils_base.h
@@ -7,6 +7,7 @@
7 7
8#include "./perfdata.h" 8#include "./perfdata.h"
9#include "./thresholds.h" 9#include "./thresholds.h"
10#include "states.h"
10 11
11 12
12#ifndef USE_OPENSSL 13#ifndef USE_OPENSSL
@@ -55,7 +56,7 @@ void set_thresholds(thresholds **, char *, char *);
55void print_thresholds(const char *, thresholds *); 56void print_thresholds(const char *, thresholds *);
56bool check_range(double, range *); 57bool check_range(double, range *);
57bool mp_check_range(mp_perfdata_value, mp_range); 58bool mp_check_range(mp_perfdata_value, mp_range);
58int get_status(double, thresholds *); 59mp_state_enum get_status(double, thresholds *);
59 60
60/* Handle timeouts */ 61/* Handle timeouts */
61extern int timeout_state; 62extern int timeout_state;
@@ -107,6 +108,6 @@ void np_state_write_string(time_t, char *);
107void np_init(char *, int argc, char **argv); 108void np_init(char *, int argc, char **argv);
108void np_set_args(int argc, char **argv); 109void np_set_args(int argc, char **argv);
109void np_cleanup(void); 110void np_cleanup(void);
110const char *state_text(int); 111const char *state_text(mp_state_enum);
111 112
112#endif /* _UTILS_BASE_ */ 113#endif /* _UTILS_BASE_ */