diff options
author | Mattias Andrée <maandree@member.fsf.org> | 2015-12-29 05:27:38 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@member.fsf.org> | 2015-12-29 05:27:38 +0100 |
commit | b7b29f3db454fc8e2aaa4297b9e03d9637e99a57 (patch) | |
tree | 21709944cca3218bed17d2613972cccde3260a7c /src/daemon.h | |
parent | m (diff) | |
download | sat-b7b29f3db454fc8e2aaa4297b9e03d9637e99a57.tar.gz sat-b7b29f3db454fc8e2aaa4297b9e03d9637e99a57.tar.bz2 sat-b7b29f3db454fc8e2aaa4297b9e03d9637e99a57.tar.xz |
run_job_or_hook is not static
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to 'src/daemon.h')
-rw-r--r-- | src/daemon.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/daemon.h b/src/daemon.h index 2e402c8..ddb2854 100644 --- a/src/daemon.h +++ b/src/daemon.h @@ -179,6 +179,15 @@ int reopen(int fd, int oflag); int send_string(int sockfd, int outfd, ...); /** + * Run a job or a hook. + * + * @param job The job. + * @param hook The hook, `NULL` to run the job. + * @return 0 on success, -1 on error, 1 if the child failed. + */ +int run_job_or_hook(struct job *job, const char *hook); + +/** * Removes (and optionally runs) a job. * * @param jobno The job number, `NULL` for any job. |