diff options
Diffstat (limited to 'plugins/utils.h')
-rw-r--r-- | plugins/utils.h | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/plugins/utils.h b/plugins/utils.h index cb979ce..62e489b 100644 --- a/plugins/utils.h +++ b/plugins/utils.h | |||
@@ -16,6 +16,8 @@ suite of plugins. */ | |||
16 | /* now some functions etc are being defined in ../lib/utils_base.c */ | 16 | /* now some functions etc are being defined in ../lib/utils_base.c */ |
17 | #include "utils_base.h" | 17 | #include "utils_base.h" |
18 | 18 | ||
19 | #include <stdbool.h> | ||
20 | |||
19 | 21 | ||
20 | #ifdef NP_EXTRA_OPTS | 22 | #ifdef NP_EXTRA_OPTS |
21 | /* Include extra-opts functions if compiled in */ | 23 | /* Include extra-opts functions if compiled in */ |
@@ -34,21 +36,21 @@ extern time_t start_time, end_time; | |||
34 | 36 | ||
35 | /* Test input types */ | 37 | /* Test input types */ |
36 | 38 | ||
37 | int is_integer (char *); | 39 | bool is_integer (char *); |
38 | int is_intpos (char *); | 40 | bool is_intpos (char *); |
39 | int is_intneg (char *); | 41 | bool is_intneg (char *); |
40 | int is_intnonneg (char *); | 42 | bool is_intnonneg (char *); |
41 | int is_intpercent (char *); | 43 | bool is_intpercent (char *); |
42 | int is_uint64(char *number, uint64_t *target); | 44 | bool is_uint64(char *number, uint64_t *target); |
43 | int is_int64(char *number, int64_t *target); | 45 | bool is_int64(char *number, int64_t *target); |
44 | 46 | ||
45 | int is_numeric (char *); | 47 | bool is_numeric (char *); |
46 | int is_positive (char *); | 48 | bool is_positive (char *); |
47 | int is_negative (char *); | 49 | bool is_negative (char *); |
48 | int is_nonnegative (char *); | 50 | bool is_nonnegative (char *); |
49 | int is_percentage (char *); | 51 | bool is_percentage (char *); |
50 | 52 | ||
51 | int is_option (char *); | 53 | bool is_option (char *); |
52 | 54 | ||
53 | /* Generalized timer that will do milliseconds if available */ | 55 | /* Generalized timer that will do milliseconds if available */ |
54 | #ifndef HAVE_STRUCT_TIMEVAL | 56 | #ifndef HAVE_STRUCT_TIMEVAL |