summaryrefslogtreecommitdiffstats
path: root/lib/utils_cmd.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils_cmd.h')
-rw-r--r--lib/utils_cmd.h12
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 **/
11struct output 13struct 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
20typedef struct output output; 22typedef struct cmd_output cmd_output;
21 23
22/** prototypes **/ 24/** prototypes **/
23int cmd_run (const char *, output *, output *, int); 25int cmd_run (const char *, cmd_output *, cmd_output *, int);
24int cmd_run_array (char *const *, output *, output *, int); 26int cmd_run_array (char *const *, cmd_output *, cmd_output *, int);
25int cmd_file_read (char *, output *, int); 27int 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 */
28void cmd_init (void); 30void cmd_init (void);