diff options
Diffstat (limited to 'plugins/utils.h')
-rw-r--r-- | plugins/utils.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/utils.h b/plugins/utils.h index 2d976345..f47d0533 100644 --- a/plugins/utils.h +++ b/plugins/utils.h | |||
@@ -58,6 +58,19 @@ struct timeval { | |||
58 | }; | 58 | }; |
59 | #endif | 59 | #endif |
60 | 60 | ||
61 | #define OUTSIDE 0 | ||
62 | #define INSIDE 1 | ||
63 | |||
64 | typedef struct threshold_struct { | ||
65 | double start; | ||
66 | int start_infinity; /* FALSE (default) or TRUE */ | ||
67 | double end; | ||
68 | int end_infinity; | ||
69 | int alert_on; /* OUTSIDE (default) or INSIDE */ | ||
70 | } threshold; | ||
71 | |||
72 | threshold *parse_threshold (char *); | ||
73 | |||
61 | #ifndef HAVE_GETTIMEOFDAY | 74 | #ifndef HAVE_GETTIMEOFDAY |
62 | int gettimeofday(struct timeval *, struct timezone *); | 75 | int gettimeofday(struct timeval *, struct timezone *); |
63 | #endif | 76 | #endif |