]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
BEE Backport bacula/src/win32/compat/winapi.h
authorAlain Spineux <alain@baculasystems.com>
Wed, 5 Aug 2020 07:59:57 +0000 (09:59 +0200)
committerEric Bollengier <eric@baculasystems.com>
Tue, 1 Mar 2022 14:36:17 +0000 (15:36 +0100)
This commit is the result of the squash of the following main commits:

bacula/src/win32/compat/winapi.h

index c2fa590fc2d39da87fbbff29009cdd6469b47ad4..2bac8f12795783547a315603295b3c317d9293fb 100644 (file)
@@ -15,6 +15,7 @@
    conveyed and/or propagated.
 
    Bacula(R) is a registered trademark of Kern Sibbald.
+
 */
 /*
  * Windows APIs that are different for each system.
@@ -49,6 +50,8 @@ typedef char POOLMEM;
 
 int wchar_2_UTF8(POOLMEM **pszUTF, const wchar_t *pszUCS);
 int wchar_2_UTF8(char *pszUTF, const WCHAR *pszUCS, int cchChar = MAX_PATH_UTF8);
+int wchar_path_2_wutf8(POOLMEM **pszUTF, const wchar_t *pszUCS);
+int wutf8_path_2_wchar(POOLMEM **ppszUCS, const char *pszUTF);
 int UTF8_2_wchar(POOLMEM **pszUCS, const char *pszUTF);
 int make_win32_path_UTF8_2_wchar(POOLMEM **pszUCS, const char *pszUTF, BOOL* pBIsRawPath = NULL);