]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/runscript.h
Eliminate dependency on man2html.
[bacula/bacula] / bacula / src / lib / runscript.h
index f50feb9699f411d944daa21f528b888aed3bed23..69fce04187d6fe9badca9888f1a474ba3776b07c 100644 (file)
  */
 
 /* 
- * 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
 };
 
 /*
@@ -58,6 +58,8 @@ public:
    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 */