]> git.sur5r.net Git - bacula/bacula/commitdiff
Add bVarExePath to let plugins know about exepath
authorEric Bollengier <eric@eb.homelinux.org>
Sat, 6 Nov 2010 10:10:49 +0000 (11:10 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Fri, 12 Nov 2010 08:13:58 +0000 (09:13 +0100)
bacula/src/filed/fd_plugins.c
bacula/src/filed/fd_plugins.h

index 44f9be503dd9661d92d49e5d359b75453a17c6c2..8fb472f8f6beec512ecde52ec54c0605a76379ae 100644 (file)
@@ -35,6 +35,7 @@
 #include "filed.h"
 
 extern CLIENT *me;
+extern char *exepath;
 
 const int dbglvl = 150;
 #ifdef HAVE_WIN32
@@ -1023,6 +1024,9 @@ static bRC baculaGetValue(bpContext *ctx, bVariable var, void *value)
    case bVarRegexWhere:
       *(char **)value = jcr->RegexWhere;
       break;
+   case bVarExePath:
+      *(char **)value = exepath;
+      break;
    }
    return bRC_OK;
 }
index 8fd4c6275de601ee88f1b31aba6c5131ce0a3c22..059636e05d6bb0cf40243c6d6ee19bcda30e5e5a 100644 (file)
@@ -177,7 +177,8 @@ typedef enum {
   bVarVssDllHandle = 12,
   bVarWorkingDir = 13,
   bVarWhere      = 14,
-  bVarRegexWhere = 15
+  bVarRegexWhere = 15,
+  bVarExePath    = 16
 } bVariable;
 
 /* Events that are passed to plugin */