From b7b29f3db454fc8e2aaa4297b9e03d9637e99a57 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 29 Dec 2015 05:27:38 +0100 Subject: run_job_or_hook is not static MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/daemon.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/daemon.h') diff --git a/src/daemon.h b/src/daemon.h index 2e402c8..ddb2854 100644 --- a/src/daemon.h +++ b/src/daemon.h @@ -178,6 +178,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. * -- cgit v1.2.3-70-g09d2