summaryrefslogtreecommitdiffstats
path: root/plugins/runcmd.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/runcmd.h')
-rw-r--r--plugins/runcmd.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/plugins/runcmd.h b/plugins/runcmd.h
index 5957562b..fe660673 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 **/
30struct 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
38typedef struct output output;
39 29
40/** prototypes **/ 30/** prototypes **/
41int np_runcmd(const char *, output *, output *, int); 31int np_runcmd(const char *, output *, output *, int);