diff options
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); |