diff options
Diffstat (limited to 'plugins/runcmd.h')
-rw-r--r-- | plugins/runcmd.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/plugins/runcmd.h b/plugins/runcmd.h index 5957562..fe66067 100644 --- a/plugins/runcmd.h +++ b/plugins/runcmd.h | |||
@@ -25,17 +25,7 @@ | |||
25 | #define NAGIOSPLUG_RUNCMD_H | 25 | #define NAGIOSPLUG_RUNCMD_H |
26 | 26 | ||
27 | #include "common.h" | 27 | #include "common.h" |
28 | 28 | #include "utils_cmd.h" /* for the "output" type */ | |
29 | /** types **/ | ||
30 | struct output { | ||
31 | char *buf; /* output buffer */ | ||
32 | size_t buflen; /* output buffer content length */ | ||
33 | char **line; /* array of lines (points to buf) */ | ||
34 | size_t *lens; /* string lengths */ | ||
35 | size_t lines; /* lines of output */ | ||
36 | }; | ||
37 | |||
38 | typedef struct output output; | ||
39 | 29 | ||
40 | /** prototypes **/ | 30 | /** prototypes **/ |
41 | int np_runcmd(const char *, output *, output *, int); | 31 | int np_runcmd(const char *, output *, output *, int); |