*/
/*
- * RUNSCRIPT->when can take following value :
+ * RUNSCRIPT->when can take following bit values:
*/
enum {
- SCRIPT_Never = 1,
- SCRIPT_After = 2, /* AfterJob */
- SCRIPT_Before = 3, /* BeforeJob */
- SCRIPT_Any = 4 /* Before and After */
+ SCRIPT_Never = 0,
+ SCRIPT_After = (1<<0), /* AfterJob */
+ SCRIPT_Before = (1<<1), /* BeforeJob */
+ SCRIPT_Any = SCRIPT_Before | SCRIPT_After
};
/*
bool on_failure; /* executre command on job failure (After) */
bool abort_on_error; /* abort job on error (Before) */
int when; /* SCRIPT_Before|Script_After BEFORE/AFTER JOB*/
+ /* TODO : drop this with bacula 1.42 */
+ bool old_proto; /* used by old 1.3X protocol */
int run(JCR *job, const char *name="");
bool can_run_at_level(int JobLevel) { return true;}; /* TODO */