diff options
Diffstat (limited to 'lib/utils_cmd.h')
-rw-r--r-- | lib/utils_cmd.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/utils_cmd.h b/lib/utils_cmd.h index d00069c9..3672cdc9 100644 --- a/lib/utils_cmd.h +++ b/lib/utils_cmd.h | |||
@@ -5,22 +5,22 @@ | |||
5 | * Header file for Monitoring Plugins utils_cmd.c | 5 | * Header file for Monitoring Plugins utils_cmd.c |
6 | * | 6 | * |
7 | */ | 7 | */ |
8 | #include "../config.h" | ||
9 | #include <stddef.h> | ||
8 | 10 | ||
9 | /** types **/ | 11 | /** types **/ |
10 | struct output { | 12 | typedef struct { |
11 | char *buf; /* output buffer */ | 13 | char *buf; /* output buffer */ |
12 | size_t buflen; /* output buffer content length */ | 14 | size_t buflen; /* output buffer content length */ |
13 | char **line; /* array of lines (points to buf) */ | 15 | char **line; /* array of lines (points to buf) */ |
14 | size_t *lens; /* string lengths */ | 16 | size_t *lens; /* string lengths */ |
15 | size_t lines; /* lines of output */ | 17 | size_t lines; /* lines of output */ |
16 | }; | 18 | } output; |
17 | |||
18 | typedef struct output output; | ||
19 | 19 | ||
20 | /** prototypes **/ | 20 | /** prototypes **/ |
21 | int cmd_run(const char *, output *, output *, int); | 21 | int cmd_run(const char *, output *, output *, int); |
22 | int cmd_run_array(char *const *, output *, output *, int); | 22 | int cmd_run_array(char *const *, output *, output *, int); |
23 | int cmd_file_read(char *, output *, int); | 23 | int cmd_file_read(const char *, output *, int); |
24 | 24 | ||
25 | /* only multi-threaded plugins need to bother with this */ | 25 | /* only multi-threaded plugins need to bother with this */ |
26 | void cmd_init(void); | 26 | void cmd_init(void); |