diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-08-26 05:07:32 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-08-26 05:07:32 +0200 |
commit | a593789a46ceb27d26186db7b3215b2a046ff865 (patch) | |
tree | 978ac4dbf25e1b9fb7da8299d1abb9514017420a /src/ci.h | |
parent | add some more code (diff) | |
download | cimple-a593789a46ceb27d26186db7b3215b2a046ff865.tar.gz cimple-a593789a46ceb27d26186db7b3215b2a046ff865.zip |
worker: capture process output
Diffstat (limited to '')
-rw-r--r-- | src/ci.h | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -1,14 +1,9 @@ #ifndef __CI_H__ #define __CI_H__ -typedef enum { - RUN_ERROR = -1, - RUN_SUCCESS, - RUN_FAILURE, - RUN_NO, -} run_result; +#include "process.h" -run_result ci_run(int *ec); +int ci_run(struct proc_output *); /* * This is a high-level function. It's basically equivalent to the following @@ -23,6 +18,6 @@ run_result ci_run(int *ec); * rm -rf "$dir" * */ -run_result ci_run_git_repo(const char *url, const char *rev, int *ec); +int ci_run_git_repo(const char *url, const char *rev, struct proc_output *); #endif |