Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
352b4212
Commit
352b4212
authored
Mar 02, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Move FTP structs and functions declarations from internet.h.
parent
3b4ca69e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
48 deletions
+47
-48
ftp.c
dlls/wininet/ftp.c
+47
-6
internet.h
dlls/wininet/internet.h
+0
-42
No files found.
dlls/wininet/ftp.c
View file @
352b4212
...
@@ -61,6 +61,30 @@
...
@@ -61,6 +61,30 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
wininet
);
WINE_DEFAULT_DEBUG_CHANNEL
(
wininet
);
typedef
struct
_WININETFTPSESSIONW
WININETFTPSESSIONW
;
typedef
struct
{
WININETHANDLEHEADER
hdr
;
WININETFTPSESSIONW
*
lpFtpSession
;
BOOL
session_deleted
;
int
nDataSocket
;
}
WININETFTPFILE
,
*
LPWININETFTPFILE
;
typedef
struct
_WININETFTPSESSIONW
{
WININETHANDLEHEADER
hdr
;
WININETAPPINFOW
*
lpAppInfo
;
int
sndSocket
;
int
lstnSocket
;
int
pasvSocket
;
/* data socket connected by us in case of passive FTP */
LPWININETFTPFILE
download_in_progress
;
struct
sockaddr_in
socketAddress
;
struct
sockaddr_in
lstnSocketAddress
;
LPWSTR
lpszPassword
;
LPWSTR
lpszUserName
;
}
*
LPWININETFTPSESSIONW
;
typedef
struct
typedef
struct
{
{
BOOL
bIsDirectory
;
BOOL
bIsDirectory
;
...
@@ -164,6 +188,23 @@ static HINTERNET FTP_ReceiveFileList(LPWININETFTPSESSIONW lpwfs, INT nSocket, LP
...
@@ -164,6 +188,23 @@ static HINTERNET FTP_ReceiveFileList(LPWININETFTPSESSIONW lpwfs, INT nSocket, LP
LPWIN32_FIND_DATAW
lpFindFileData
,
DWORD_PTR
dwContext
);
LPWIN32_FIND_DATAW
lpFindFileData
,
DWORD_PTR
dwContext
);
static
DWORD
FTP_SetResponseError
(
DWORD
dwResponse
);
static
DWORD
FTP_SetResponseError
(
DWORD
dwResponse
);
static
BOOL
FTP_ConvertFileProp
(
LPFILEPROPERTIESW
lpafp
,
LPWIN32_FIND_DATAW
lpFindFileData
);
static
BOOL
FTP_ConvertFileProp
(
LPFILEPROPERTIESW
lpafp
,
LPWIN32_FIND_DATAW
lpFindFileData
);
static
BOOL
FTP_FtpPutFileW
(
LPWININETFTPSESSIONW
lpwfs
,
LPCWSTR
lpszLocalFile
,
LPCWSTR
lpszNewRemoteFile
,
DWORD
dwFlags
,
DWORD_PTR
dwContext
);
static
BOOL
FTP_FtpSetCurrentDirectoryW
(
LPWININETFTPSESSIONW
lpwfs
,
LPCWSTR
lpszDirectory
);
static
BOOL
FTP_FtpCreateDirectoryW
(
LPWININETFTPSESSIONW
lpwfs
,
LPCWSTR
lpszDirectory
);
static
HINTERNET
FTP_FtpFindFirstFileW
(
LPWININETFTPSESSIONW
lpwfs
,
LPCWSTR
lpszSearchFile
,
LPWIN32_FIND_DATAW
lpFindFileData
,
DWORD
dwFlags
,
DWORD_PTR
dwContext
);
static
BOOL
FTP_FtpGetCurrentDirectoryW
(
LPWININETFTPSESSIONW
lpwfs
,
LPWSTR
lpszCurrentDirectory
,
LPDWORD
lpdwCurrentDirectory
);
static
BOOL
FTP_FtpRenameFileW
(
LPWININETFTPSESSIONW
lpwfs
,
LPCWSTR
lpszSrc
,
LPCWSTR
lpszDest
);
static
BOOL
FTP_FtpRemoveDirectoryW
(
LPWININETFTPSESSIONW
lpwfs
,
LPCWSTR
lpszDirectory
);
static
BOOL
FTP_FtpDeleteFileW
(
LPWININETFTPSESSIONW
lpwfs
,
LPCWSTR
lpszFileName
);
static
HINTERNET
FTP_FtpOpenFileW
(
LPWININETFTPSESSIONW
lpwfs
,
LPCWSTR
lpszFileName
,
DWORD
fdwAccess
,
DWORD
dwFlags
,
DWORD_PTR
dwContext
);
static
BOOL
FTP_FtpGetFileW
(
LPWININETFTPSESSIONW
lpwfs
,
LPCWSTR
lpszRemoteFile
,
LPCWSTR
lpszNewFile
,
BOOL
fFailIfExists
,
DWORD
dwLocalFlagsAttribute
,
DWORD
dwInternetFlags
,
DWORD_PTR
dwContext
);
/***********************************************************************
/***********************************************************************
* FtpPutFileA (WININET.@)
* FtpPutFileA (WININET.@)
...
@@ -290,7 +331,7 @@ lend:
...
@@ -290,7 +331,7 @@ lend:
* FALSE on failure
* FALSE on failure
*
*
*/
*/
BOOL
WINAPI
FTP_FtpPutFileW
(
LPWININETFTPSESSIONW
lpwfs
,
LPCWSTR
lpszLocalFile
,
static
BOOL
FTP_FtpPutFileW
(
LPWININETFTPSESSIONW
lpwfs
,
LPCWSTR
lpszLocalFile
,
LPCWSTR
lpszNewRemoteFile
,
DWORD
dwFlags
,
DWORD_PTR
dwContext
)
LPCWSTR
lpszNewRemoteFile
,
DWORD
dwFlags
,
DWORD_PTR
dwContext
)
{
{
HANDLE
hFile
;
HANDLE
hFile
;
...
@@ -458,7 +499,7 @@ lend:
...
@@ -458,7 +499,7 @@ lend:
* FALSE on failure
* FALSE on failure
*
*
*/
*/
BOOL
WINAPI
FTP_FtpSetCurrentDirectoryW
(
LPWININETFTPSESSIONW
lpwfs
,
LPCWSTR
lpszDirectory
)
static
BOOL
FTP_FtpSetCurrentDirectoryW
(
LPWININETFTPSESSIONW
lpwfs
,
LPCWSTR
lpszDirectory
)
{
{
INT
nResCode
;
INT
nResCode
;
LPWININETAPPINFOW
hIC
=
NULL
;
LPWININETAPPINFOW
hIC
=
NULL
;
...
@@ -606,7 +647,7 @@ lend:
...
@@ -606,7 +647,7 @@ lend:
* FALSE on failure
* FALSE on failure
*
*
*/
*/
BOOL
WINAPI
FTP_FtpCreateDirectoryW
(
LPWININETFTPSESSIONW
lpwfs
,
LPCWSTR
lpszDirectory
)
static
BOOL
FTP_FtpCreateDirectoryW
(
LPWININETFTPSESSIONW
lpwfs
,
LPCWSTR
lpszDirectory
)
{
{
INT
nResCode
;
INT
nResCode
;
BOOL
bSuccess
=
FALSE
;
BOOL
bSuccess
=
FALSE
;
...
@@ -756,7 +797,7 @@ lend:
...
@@ -756,7 +797,7 @@ lend:
* NULL on failure
* NULL on failure
*
*
*/
*/
HINTERNET
WINAPI
FTP_FtpFindFirstFileW
(
LPWININETFTPSESSIONW
lpwfs
,
static
HINTERNET
FTP_FtpFindFirstFileW
(
LPWININETFTPSESSIONW
lpwfs
,
LPCWSTR
lpszSearchFile
,
LPWIN32_FIND_DATAW
lpFindFileData
,
DWORD
dwFlags
,
DWORD_PTR
dwContext
)
LPCWSTR
lpszSearchFile
,
LPWIN32_FIND_DATAW
lpFindFileData
,
DWORD
dwFlags
,
DWORD_PTR
dwContext
)
{
{
INT
nResCode
;
INT
nResCode
;
...
@@ -967,7 +1008,7 @@ lend:
...
@@ -967,7 +1008,7 @@ lend:
* FALSE on failure
* FALSE on failure
*
*
*/
*/
BOOL
WINAPI
FTP_FtpGetCurrentDirectoryW
(
LPWININETFTPSESSIONW
lpwfs
,
LPWSTR
lpszCurrentDirectory
,
static
BOOL
FTP_FtpGetCurrentDirectoryW
(
LPWININETFTPSESSIONW
lpwfs
,
LPWSTR
lpszCurrentDirectory
,
LPDWORD
lpdwCurrentDirectory
)
LPDWORD
lpdwCurrentDirectory
)
{
{
INT
nResCode
;
INT
nResCode
;
...
@@ -1434,7 +1475,7 @@ lend:
...
@@ -1434,7 +1475,7 @@ lend:
* FALSE on failure
* FALSE on failure
*
*
*/
*/
BOOL
WINAPI
FTP_FtpGetFileW
(
LPWININETFTPSESSIONW
lpwfs
,
LPCWSTR
lpszRemoteFile
,
LPCWSTR
lpszNewFile
,
static
BOOL
FTP_FtpGetFileW
(
LPWININETFTPSESSIONW
lpwfs
,
LPCWSTR
lpszRemoteFile
,
LPCWSTR
lpszNewFile
,
BOOL
fFailIfExists
,
DWORD
dwLocalFlagsAttribute
,
DWORD
dwInternetFlags
,
BOOL
fFailIfExists
,
DWORD
dwLocalFlagsAttribute
,
DWORD
dwInternetFlags
,
DWORD_PTR
dwContext
)
DWORD_PTR
dwContext
)
{
{
...
...
dlls/wininet/internet.h
View file @
352b4212
...
@@ -222,31 +222,6 @@ typedef struct
...
@@ -222,31 +222,6 @@ typedef struct
}
WININETHTTPREQW
,
*
LPWININETHTTPREQW
;
}
WININETHTTPREQW
,
*
LPWININETHTTPREQW
;
struct
_WININETFTPSESSIONW
;
typedef
struct
{
WININETHANDLEHEADER
hdr
;
struct
_WININETFTPSESSIONW
*
lpFtpSession
;
BOOL
session_deleted
;
int
nDataSocket
;
}
WININETFTPFILE
,
*
LPWININETFTPFILE
;
typedef
struct
_WININETFTPSESSIONW
{
WININETHANDLEHEADER
hdr
;
WININETAPPINFOW
*
lpAppInfo
;
int
sndSocket
;
int
lstnSocket
;
int
pasvSocket
;
/* data socket connected by us in case of passive FTP */
LPWININETFTPFILE
download_in_progress
;
struct
sockaddr_in
socketAddress
;
struct
sockaddr_in
lstnSocketAddress
;
LPWSTR
lpszPassword
;
LPWSTR
lpszUserName
;
}
WININETFTPSESSIONW
,
*
LPWININETFTPSESSIONW
;
struct
WORKREQ_FTPPUTFILEW
struct
WORKREQ_FTPPUTFILEW
{
{
...
@@ -407,23 +382,6 @@ BOOL INTERNET_ReadFile(LPWININETHANDLEHEADER lpwh, LPVOID lpBuffer,
...
@@ -407,23 +382,6 @@ BOOL INTERNET_ReadFile(LPWININETHANDLEHEADER lpwh, LPVOID lpBuffer,
DWORD
dwNumOfBytesToRead
,
LPDWORD
pdwNumOfBytesRead
,
DWORD
dwNumOfBytesToRead
,
LPDWORD
pdwNumOfBytesRead
,
BOOL
bWait
);
BOOL
bWait
);
BOOLAPI
FTP_FtpPutFileW
(
LPWININETFTPSESSIONW
lpwfs
,
LPCWSTR
lpszLocalFile
,
LPCWSTR
lpszNewRemoteFile
,
DWORD
dwFlags
,
DWORD_PTR
dwContext
);
BOOLAPI
FTP_FtpSetCurrentDirectoryW
(
LPWININETFTPSESSIONW
lpwfs
,
LPCWSTR
lpszDirectory
);
BOOLAPI
FTP_FtpCreateDirectoryW
(
LPWININETFTPSESSIONW
lpwfs
,
LPCWSTR
lpszDirectory
);
INTERNETAPI
HINTERNET
WINAPI
FTP_FtpFindFirstFileW
(
LPWININETFTPSESSIONW
lpwfs
,
LPCWSTR
lpszSearchFile
,
LPWIN32_FIND_DATAW
lpFindFileData
,
DWORD
dwFlags
,
DWORD_PTR
dwContext
);
BOOLAPI
FTP_FtpGetCurrentDirectoryW
(
LPWININETFTPSESSIONW
lpwfs
,
LPWSTR
lpszCurrentDirectory
,
LPDWORD
lpdwCurrentDirectory
);
BOOL
FTP_FtpRenameFileW
(
LPWININETFTPSESSIONW
lpwfs
,
LPCWSTR
lpszSrc
,
LPCWSTR
lpszDest
);
BOOL
FTP_FtpRemoveDirectoryW
(
LPWININETFTPSESSIONW
lpwfs
,
LPCWSTR
lpszDirectory
);
BOOL
FTP_FtpDeleteFileW
(
LPWININETFTPSESSIONW
lpwfs
,
LPCWSTR
lpszFileName
);
HINTERNET
FTP_FtpOpenFileW
(
LPWININETFTPSESSIONW
lpwfs
,
LPCWSTR
lpszFileName
,
DWORD
fdwAccess
,
DWORD
dwFlags
,
DWORD_PTR
dwContext
);
BOOLAPI
FTP_FtpGetFileW
(
LPWININETFTPSESSIONW
lpwfs
,
LPCWSTR
lpszRemoteFile
,
LPCWSTR
lpszNewFile
,
BOOL
fFailIfExists
,
DWORD
dwLocalFlagsAttribute
,
DWORD
dwInternetFlags
,
DWORD_PTR
dwContext
);
BOOLAPI
HTTP_HttpSendRequestW
(
LPWININETHTTPREQW
lpwhr
,
LPCWSTR
lpszHeaders
,
BOOLAPI
HTTP_HttpSendRequestW
(
LPWININETHTTPREQW
lpwhr
,
LPCWSTR
lpszHeaders
,
DWORD
dwHeaderLength
,
LPVOID
lpOptional
,
DWORD
dwOptionalLength
,
DWORD
dwHeaderLength
,
LPVOID
lpOptional
,
DWORD
dwOptionalLength
,
DWORD
dwContentLength
,
BOOL
bEndRequest
);
DWORD
dwContentLength
,
BOOL
bEndRequest
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment