aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/ci.h
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-08-26 05:07:32 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2022-08-26 05:07:32 +0200
commita593789a46ceb27d26186db7b3215b2a046ff865 (patch)
tree978ac4dbf25e1b9fb7da8299d1abb9514017420a /src/ci.h
parentadd some more code (diff)
downloadcimple-a593789a46ceb27d26186db7b3215b2a046ff865.tar.gz
cimple-a593789a46ceb27d26186db7b3215b2a046ff865.zip
worker: capture process output
Diffstat (limited to '')
-rw-r--r--src/ci.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/ci.h b/src/ci.h
index 4267b89..f890796 100644
--- a/src/ci.h
+++ b/src/ci.h
@@ -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