From 51f62acce0e2633b1fca669680e25a84f99137ff Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Mon, 24 Dec 2007 17:57:46 +0000 Subject: [PATCH] More tweaks for job_code_edit on Win32 git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6139 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/lib/protos.h | 5 +++++ bacula/src/lib/runscript.c | 1 - bacula/src/lib/runscript.h | 4 +++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/bacula/src/lib/protos.h b/bacula/src/lib/protos.h index e77832c233..61d248b687 100644 --- a/bacula/src/lib/protos.h +++ b/bacula/src/lib/protos.h @@ -31,6 +31,9 @@ * Version $Id$ */ +#ifndef __LIBPROTOS_H +#define __LIBPROTOS_H + class JCR; /* attr.c */ @@ -342,3 +345,5 @@ btimer_t *start_thread_timer(JCR *jcr, pthread_t tid, uint32_t wait); void stop_thread_timer(btimer_t *wid); btimer_t *start_bsock_timer(BSOCK *bs, uint32_t wait); void stop_bsock_timer(btimer_t *wid); + +#endif /* __LIBPROTOS_H */ diff --git a/bacula/src/lib/runscript.c b/bacula/src/lib/runscript.c index 0b9db7848d..1041be3245 100644 --- a/bacula/src/lib/runscript.c +++ b/bacula/src/lib/runscript.c @@ -37,7 +37,6 @@ #include "bacula.h" #include "jcr.h" - #include "runscript.h" RUNSCRIPT *new_runscript() diff --git a/bacula/src/lib/runscript.h b/bacula/src/lib/runscript.h index 27b678b7cc..b07e0852a7 100644 --- a/bacula/src/lib/runscript.h +++ b/bacula/src/lib/runscript.h @@ -35,6 +35,8 @@ #ifndef __RUNSCRIPT_H_ #define __RUNSCRIPT_H_ 1 +#include "protos.h" + /* Usage: * * #define USE_RUNSCRIPT @@ -74,7 +76,7 @@ public: /* TODO : drop this with bacula 1.42 */ bool old_proto; /* used by old 1.3X protocol */ job_code_callback_t job_code_callback; - /* Optional callback function passed to edit_job_code */ + /* Optional callback function passed to edit_job_code */ bool run(JCR *job, const char *name=""); /* name must contain "Before" or "After" keyword */ bool can_run_at_level(int JobLevel) { return true;}; /* TODO */ -- 2.39.5