diff options
| author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2022-03-26 16:31:52 +0100 |
|---|---|---|
| committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2022-03-26 16:31:52 +0100 |
| commit | 36f4495deee8611f2fc4c62e54616d52f5c25979 (patch) | |
| tree | 4c9579bd02124c34c543f874c5b4f5d40ef957ba /lib/utils_cmd.h | |
| parent | 066b6e68242b5e7a6f1eb665df9b227d896aec66 (diff) | |
| download | monitoring-plugins-36f4495.tar.gz | |
Rename output to cmd_output
Diffstat (limited to 'lib/utils_cmd.h')
| -rw-r--r-- | lib/utils_cmd.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/utils_cmd.h b/lib/utils_cmd.h index 6f3aeb81..b37c7712 100644 --- a/lib/utils_cmd.h +++ b/lib/utils_cmd.h | |||
| @@ -7,8 +7,10 @@ | |||
| 7 | * | 7 | * |
| 8 | */ | 8 | */ |
| 9 | 9 | ||
| 10 | #include <sys/types.h> | ||
| 11 | |||
| 10 | /** types **/ | 12 | /** types **/ |
| 11 | struct output | 13 | struct cmd_output |
| 12 | { | 14 | { |
| 13 | char *buf; /* output buffer */ | 15 | char *buf; /* output buffer */ |
| 14 | size_t buflen; /* output buffer content length */ | 16 | size_t buflen; /* output buffer content length */ |
| @@ -17,12 +19,12 @@ struct output | |||
| 17 | size_t lines; /* lines of output */ | 19 | size_t lines; /* lines of output */ |
| 18 | }; | 20 | }; |
| 19 | 21 | ||
| 20 | typedef struct output output; | 22 | typedef struct cmd_output cmd_output; |
| 21 | 23 | ||
| 22 | /** prototypes **/ | 24 | /** prototypes **/ |
| 23 | int cmd_run (const char *, output *, output *, int); | 25 | int cmd_run (const char *, cmd_output *, cmd_output *, int); |
| 24 | int cmd_run_array (char *const *, output *, output *, int); | 26 | int cmd_run_array (char *const *, cmd_output *, cmd_output *, int); |
| 25 | int cmd_file_read (char *, output *, int); | 27 | int cmd_file_read (char *, cmd_output *, int); |
| 26 | 28 | ||
| 27 | /* only multi-threaded plugins need to bother with this */ | 29 | /* only multi-threaded plugins need to bother with this */ |
| 28 | void cmd_init (void); | 30 | void cmd_init (void); |
