diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-06-20 13:27:16 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-06-24 13:07:58 +0800 |
commit | c20a0460f3c9057aa920949414f8c3bd6529f927 (patch) | |
tree | 9fa41a7f92482b7441049afcdb4528bcd0aef221 /lib/system/system.h | |
parent | 974853d86dd6328ec2aaf6b9ff5b56398942a902 (diff) | |
download | petitboot-c20a0460f3c9057aa920949414f8c3bd6529f927.zip petitboot-c20a0460f3c9057aa920949414f8c3bd6529f927.tar.gz |
lib/system: Add pb_run_cmd_pipe
Add a function to run a command and capture the output into a buffer.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'lib/system/system.h')
-rw-r--r-- | lib/system/system.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/system/system.h b/lib/system/system.h index 271c435..a7a1a12 100644 --- a/lib/system/system.h +++ b/lib/system/system.h @@ -18,6 +18,8 @@ struct pb_system_apps { extern const struct pb_system_apps pb_system_apps; int pb_run_cmd(const char *const *cmd_argv, int wait, int dry_run); +int pb_run_cmd_pipe(const char *const *cmd_argv, int wait, int dry_run, + void *ctx, char **buf, int *buf_len); int pb_mkdir_recursive(const char *dir); int pb_rmdir_recursive(const char *base, const char *dir); |