#define WIN32_REPARSE_POINT 1
#define WIN32_MOUNT_POINT 2
+/* Reduce compiler warnings from Windows vss code */
+#define uuid(x)
+
void InitWinAPIWrapper();
#define OSDependentInit() InitWinAPIWrapper()
/*
Bacula® - The Network Backup Solution
- Copyright (C) 2003-2008 Free Software Foundation Europe e.V.
+ Copyright (C) 2003-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.
*
* Kern Sibbald, June MMIII
*
- * Version $Id$
- *
*/
#include "bacula.h"
/*
Bacula® - The Network Backup Solution
- Copyright (C) 2003-2008 Free Software Foundation Europe e.V.
+ Copyright (C) 2003-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.
Switzerland, email:ftf@fsfeurope.org.
*/
/*
- * Version $Id$
- *
* Kern Sibbald, June MMIII
*/
#define MAX_PATHLENGTH 1024
-/* UTF-8 to UCS2 path conversion is expensive,
+/**
+ UTF-8 to UCS2 path conversion is expensive,
so we cache the conversion. During backup the
conversion is called 3 times (lstat, attribs, open),
- by using the cache this is reduced to 1 time */
-
+ by using the cache this is reduced to 1 time
+ */
static POOLMEM *g_pWin32ConvUTF8Cache = NULL;
static POOLMEM *g_pWin32ConvUCS2Cache = NULL;
static DWORD g_dwWin32ConvUTF8strlen = 0;
}
name++;
}
- /** Strip any trailing slash, if we stored something */
- /** but leave "c:\" with backslash (root directory case */
+ /** Strip any trailing slash, if we stored something
+ * but leave "c:\" with backslash (root directory case
+ */
if (*fname != 0 && win32_name[-1] == '\\' && strlen (fname) != 3) {
win32_name[-1] = 0;
} else {
const int VSSClient::GetWriterState(int nIndex)
{
alist* pV = m_pAlistWriterState;
- return (int64_t)pV->get(nIndex);
+ void *item = pV->get(nIndex);
+/* Eliminate compiler warnings */
+#ifdef HAVE_VSS64
+ return (int64_t)(char *)item;
+#else
+ return (int)(char *)item;
+#endif
}
void VSSClient::AppendWriterInfo(int nState, const char* pszInfo)
extern VSSClient *g_pVSSClient;
+BOOL VSSPathConvert(const char *szFilePath, char *szShadowPath, int nBuflen);
+BOOL VSSPathConvertW(const wchar_t *szFilePath, wchar_t *szShadowPath, int nBuflen);
+
#endif /* WIN32_VSS */
#endif /* __VSS_H_ */
#endif
/* Reduce compiler warnings from Windows vss code */
+#undef uuid
#define uuid(x)
#ifdef B_VSS_XP