From: Kern Sibbald Date: Wed, 3 Mar 2010 15:36:30 +0000 (+0100) Subject: Add James' code to get VssObject X-Git-Tag: Release-7.0.0~2117 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bd870d2881bb0e2a3df2ec226a5a0d99636ad4d9;p=bacula%2Fbacula Add James' code to get VssObject --- diff --git a/bacula/src/filed/fd_plugins.c b/bacula/src/filed/fd_plugins.c index df13465431..c864d7a8e8 100644 --- a/bacula/src/filed/fd_plugins.c +++ b/bacula/src/filed/fd_plugins.c @@ -907,6 +907,14 @@ static bRC baculaGetValue(bpContext *ctx, bVariable var, void *value) break; case bVarFileSeen: break; /* a write only variable, ignore read request */ + case bVarVssObject: +#ifdef HAVE_WIN32 + if (g_pVSSClient) { + value = g_pVSSClient->GetVssObject(); + break; + } +#endif + return bRC_Error; } return bRC_OK; } diff --git a/bacula/src/filed/fd_plugins.h b/bacula/src/filed/fd_plugins.h index 50ed3dde76..0e95d4640a 100644 --- a/bacula/src/filed/fd_plugins.h +++ b/bacula/src/filed/fd_plugins.h @@ -1,7 +1,7 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2007-2009 Free Software Foundation Europe e.V. + Copyright (C) 2007-2010 Free Software Foundation Europe e.V. The main author of Bacula is Kern Sibbald, with contributions from many others, a complete list can be found in the file AUTHORS. @@ -66,6 +66,9 @@ #include "bc_types.h" #include "lib/plugins.h" #include +#ifdef HAVE_WIN32 +#include "../win32/filed/vss.h" +#endif /* * This packet is used for file save info transfer. @@ -146,7 +149,8 @@ typedef enum { bVarJobStatus = 7, bVarSinceTime = 8, bVarAccurate = 9, - bVarFileSeen = 10 + bVarFileSeen = 10, + bVarVssObject = 11 } bVariable; /* Events that are passed to plugin */