[SHELLBTRFS] Fix GCC build

CORE-15048
This commit is contained in:
Pierre Schweitzer 2018-09-15 10:54:00 +02:00
parent 0f47f27829
commit 71ac5e6c65
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B
5 changed files with 48 additions and 0 deletions

View file

@ -1090,6 +1090,10 @@ static void unserialize(void* data, ULONG len, WCHAR* s) {
}
}
#ifdef __REACTOS__
extern "C" {
#endif
void CALLBACK StartBalanceW(HWND hwnd, HINSTANCE hinst, LPWSTR lpszCmdLine, int nCmdShow) {
WCHAR *s, *vol, *block;
HANDLE h, token;
@ -1291,3 +1295,7 @@ void CALLBACK StopBalanceW(HWND hwnd, HINSTANCE hinst, LPWSTR lpszCmdLine, int n
end:
CloseHandle(token);
}
#ifdef __REACTOS__
} /* extern "C" */
#endif

View file

@ -1718,6 +1718,10 @@ end:
CloseHandle(source);
}
#ifdef __REACTOS__
extern "C" {
#endif
void CALLBACK ReflinkCopyW(HWND hwnd, HINSTANCE hinst, LPWSTR lpszCmdLine, int nCmdShow) {
LPWSTR* args;
int num_args;
@ -1796,3 +1800,7 @@ void CALLBACK ReflinkCopyW(HWND hwnd, HINSTANCE hinst, LPWSTR lpszCmdLine, int n
end:
LocalFree(args);
}
#ifdef __REACTOS__
} /* extern "C" */
#endif

View file

@ -1987,6 +1987,10 @@ void BtrfsRecv::Open(HWND hwnd, WCHAR* file, WCHAR* path, BOOL quiet) {
}
}
#ifdef __REACTOS__
extern "C" {
#endif
void CALLBACK RecvSubvolGUIW(HWND hwnd, HINSTANCE hinst, LPWSTR lpszCmdLine, int nCmdShow) {
OPENFILENAMEW ofn;
WCHAR file[MAX_PATH];
@ -2145,3 +2149,7 @@ void CALLBACK RecvSubvolW(HWND hwnd, HINSTANCE hinst, LPWSTR lpszCmdLine, int nC
end:
LocalFree(args);
}
#ifdef __REACTOS__
} /* extern "C" */
#endif

View file

@ -566,6 +566,10 @@ static INT_PTR CALLBACK stub_ScrubDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam
return FALSE;
}
#ifdef __REACTOS__
extern "C" {
#endif
void CALLBACK ShowScrubW(HWND hwnd, HINSTANCE hinst, LPWSTR lpszCmdLine, int nCmdShow) {
HANDLE token;
TOKEN_PRIVILEGES tp;
@ -694,3 +698,7 @@ void CALLBACK StopScrubW(HWND hwnd, HINSTANCE hinst, LPWSTR lpszCmdLine, int nCm
end:
LocalFree(args);
}
#ifdef __REACTOS__
} /* extern "C" */
#endif

View file

@ -547,6 +547,10 @@ void BtrfsSend::Open(HWND hwnd, LPWSTR path) {
ShowError(hwnd, GetLastError());
}
#ifdef __REACTOS__
extern "C" {
#endif
void CALLBACK SendSubvolGUIW(HWND hwnd, HINSTANCE hinst, LPWSTR lpszCmdLine, int nCmdShow) {
HANDLE token;
TOKEN_PRIVILEGES tp;
@ -585,6 +589,10 @@ void CALLBACK SendSubvolGUIW(HWND hwnd, HINSTANCE hinst, LPWSTR lpszCmdLine, int
CloseHandle(token);
}
#ifdef __REACTOS__
} /* extern "C" */
#endif
static void send_subvol(std::wstring subvol, std::wstring file, std::wstring parent, std::vector<std::wstring> clones) {
char* buf;
HANDLE dirh, stream;
@ -697,6 +705,10 @@ end3:
free(buf);
}
#ifdef __REACTOS__
extern "C" {
#endif
void CALLBACK SendSubvolW(HWND hwnd, HINSTANCE hinst, LPWSTR lpszCmdLine, int nCmdShow) {
LPWSTR* args;
int num_args;
@ -755,3 +767,7 @@ void CALLBACK SendSubvolW(HWND hwnd, HINSTANCE hinst, LPWSTR lpszCmdLine, int nC
end:
LocalFree(args);
}
#ifdef __REACTOS__
} /* extern "C" */
#endif