From: Alain Spineux Date: Wed, 5 Aug 2020 07:59:57 +0000 (+0200) Subject: BEE Backport bacula/src/win32/compat/winapi.h X-Git-Tag: Release-11.3.2~1349 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a3fd0bf0ffb39ccbca441ebbf2e329b15650572;p=thirdparty%2Fbacula.git BEE Backport bacula/src/win32/compat/winapi.h This commit is the result of the squash of the following main commits: --- diff --git a/bacula/src/win32/compat/winapi.h b/bacula/src/win32/compat/winapi.h index c2fa590fc2..2bac8f1279 100644 --- a/bacula/src/win32/compat/winapi.h +++ b/bacula/src/win32/compat/winapi.h @@ -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);