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
49f5ee74
Commit
49f5ee74
authored
Dec 25, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 26, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Get rid of ASYNC_FUNC enum.
parent
f08ff892
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
2 additions
and
28 deletions
+2
-28
ftp.c
dlls/wininet/ftp.c
+0
-10
http.c
dlls/wininet/http.c
+0
-2
internet.c
dlls/wininet/internet.c
+2
-9
internet.h
dlls/wininet/internet.h
+0
-6
utility.c
dlls/wininet/utility.c
+0
-1
No files found.
dlls/wininet/ftp.c
View file @
49f5ee74
...
...
@@ -214,7 +214,6 @@ BOOL WINAPI FtpPutFileW(HINTERNET hConnect, LPCWSTR lpszLocalFile,
WORKREQUEST
workRequest
;
struct
WORKREQ_FTPPUTFILEW
*
req
=
&
workRequest
.
u
.
FtpPutFileW
;
workRequest
.
asyncall
=
CALLASYNCPROC
;
workRequest
.
asyncproc
=
AsyncFtpPutFileProc
;
workRequest
.
hdr
=
WININET_AddRef
(
&
lpwfs
->
hdr
);
req
->
lpszLocalFile
=
WININET_strdupW
(
lpszLocalFile
);
...
...
@@ -390,7 +389,6 @@ BOOL WINAPI FtpSetCurrentDirectoryW(HINTERNET hConnect, LPCWSTR lpszDirectory)
WORKREQUEST
workRequest
;
struct
WORKREQ_FTPSETCURRENTDIRECTORYW
*
req
;
workRequest
.
asyncall
=
CALLASYNCPROC
;
workRequest
.
asyncproc
=
AsyncFtpSetCurrentDirectoryProc
;
workRequest
.
hdr
=
WININET_AddRef
(
&
lpwfs
->
hdr
);
req
=
&
workRequest
.
u
.
FtpSetCurrentDirectoryW
;
...
...
@@ -529,7 +527,6 @@ BOOL WINAPI FtpCreateDirectoryW(HINTERNET hConnect, LPCWSTR lpszDirectory)
WORKREQUEST
workRequest
;
struct
WORKREQ_FTPCREATEDIRECTORYW
*
req
;
workRequest
.
asyncall
=
CALLASYNCPROC
;
workRequest
.
asyncproc
=
AsyncFtpCreateDirectoryProc
;
workRequest
.
hdr
=
WININET_AddRef
(
&
lpwfs
->
hdr
);
req
=
&
workRequest
.
u
.
FtpCreateDirectoryW
;
...
...
@@ -675,7 +672,6 @@ HINTERNET WINAPI FtpFindFirstFileW(HINTERNET hConnect,
WORKREQUEST
workRequest
;
struct
WORKREQ_FTPFINDFIRSTFILEW
*
req
;
workRequest
.
asyncall
=
CALLASYNCPROC
;
workRequest
.
asyncproc
=
AsyncFtpFindFirstFileProc
;
workRequest
.
hdr
=
WININET_AddRef
(
&
lpwfs
->
hdr
);
req
=
&
workRequest
.
u
.
FtpFindFirstFileW
;
...
...
@@ -868,7 +864,6 @@ BOOL WINAPI FtpGetCurrentDirectoryW(HINTERNET hFtpSession, LPWSTR lpszCurrentDir
WORKREQUEST
workRequest
;
struct
WORKREQ_FTPGETCURRENTDIRECTORYW
*
req
;
workRequest
.
asyncall
=
CALLASYNCPROC
;
workRequest
.
asyncproc
=
AsyncFtpGetCurrentDirectoryProc
;
workRequest
.
hdr
=
WININET_AddRef
(
&
lpwfs
->
hdr
);
req
=
&
workRequest
.
u
.
FtpGetCurrentDirectoryW
;
...
...
@@ -1043,7 +1038,6 @@ HINTERNET WINAPI FtpOpenFileW(HINTERNET hFtpSession,
WORKREQUEST
workRequest
;
struct
WORKREQ_FTPOPENFILEW
*
req
;
workRequest
.
asyncall
=
CALLASYNCPROC
;
workRequest
.
asyncproc
=
AsyncFtpOpenFileProc
;
workRequest
.
hdr
=
WININET_AddRef
(
&
lpwfs
->
hdr
);
req
=
&
workRequest
.
u
.
FtpOpenFileW
;
...
...
@@ -1238,7 +1232,6 @@ BOOL WINAPI FtpGetFileW(HINTERNET hInternet, LPCWSTR lpszRemoteFile, LPCWSTR lps
WORKREQUEST
workRequest
;
struct
WORKREQ_FTPGETFILEW
*
req
;
workRequest
.
asyncall
=
CALLASYNCPROC
;
workRequest
.
asyncproc
=
AsyncFtpGetFileProc
;
workRequest
.
hdr
=
WININET_AddRef
(
&
lpwfs
->
hdr
);
req
=
&
workRequest
.
u
.
FtpGetFileW
;
...
...
@@ -1418,7 +1411,6 @@ BOOL WINAPI FtpDeleteFileW(HINTERNET hFtpSession, LPCWSTR lpszFileName)
WORKREQUEST
workRequest
;
struct
WORKREQ_FTPDELETEFILEW
*
req
;
workRequest
.
asyncall
=
CALLASYNCPROC
;
workRequest
.
asyncproc
=
AsyncFtpDeleteFileProc
;
workRequest
.
hdr
=
WININET_AddRef
(
&
lpwfs
->
hdr
);
req
=
&
workRequest
.
u
.
FtpDeleteFileW
;
...
...
@@ -1549,7 +1541,6 @@ BOOL WINAPI FtpRemoveDirectoryW(HINTERNET hFtpSession, LPCWSTR lpszDirectory)
WORKREQUEST
workRequest
;
struct
WORKREQ_FTPREMOVEDIRECTORYW
*
req
;
workRequest
.
asyncall
=
CALLASYNCPROC
;
workRequest
.
asyncproc
=
AsyncFtpRemoveDirectoryProc
;
workRequest
.
hdr
=
WININET_AddRef
(
&
lpwfs
->
hdr
);
req
=
&
workRequest
.
u
.
FtpRemoveDirectoryW
;
...
...
@@ -1685,7 +1676,6 @@ BOOL WINAPI FtpRenameFileW(HINTERNET hFtpSession, LPCWSTR lpszSrc, LPCWSTR lpszD
WORKREQUEST
workRequest
;
struct
WORKREQ_FTPRENAMEFILEW
*
req
;
workRequest
.
asyncall
=
CALLASYNCPROC
;
workRequest
.
asyncproc
=
AsyncFtpRenameFileProc
;
workRequest
.
hdr
=
WININET_AddRef
(
&
lpwfs
->
hdr
);
req
=
&
workRequest
.
u
.
FtpRenameFileW
;
...
...
dlls/wininet/http.c
View file @
49f5ee74
...
...
@@ -1792,7 +1792,6 @@ BOOL WINAPI HttpSendRequestExW(HINTERNET hRequest,
WORKREQUEST
workRequest
;
struct
WORKREQ_HTTPSENDREQUESTW
*
req
;
workRequest
.
asyncall
=
CALLASYNCPROC
;
workRequest
.
asyncproc
=
AsyncHttpSendRequestProc
;
workRequest
.
hdr
=
WININET_AddRef
(
&
lpwhr
->
hdr
);
req
=
&
workRequest
.
u
.
HttpSendRequestW
;
...
...
@@ -1888,7 +1887,6 @@ BOOL WINAPI HttpSendRequestW(HINTERNET hHttpRequest, LPCWSTR lpszHeaders,
WORKREQUEST
workRequest
;
struct
WORKREQ_HTTPSENDREQUESTW
*
req
;
workRequest
.
asyncall
=
CALLASYNCPROC
;
workRequest
.
asyncproc
=
AsyncHttpSendRequestProc
;
workRequest
.
hdr
=
WININET_AddRef
(
&
lpwhr
->
hdr
);
req
=
&
workRequest
.
u
.
HttpSendRequestW
;
...
...
dlls/wininet/internet.c
View file @
49f5ee74
...
...
@@ -947,7 +947,6 @@ BOOL WINAPI InternetFindNextFileW(HINTERNET hFind, LPVOID lpvFindData)
WORKREQUEST
workRequest
;
struct
WORKREQ_FTPFINDNEXTW
*
req
;
workRequest
.
asyncall
=
CALLASYNCPROC
;
workRequest
.
asyncproc
=
AsyncFtpFindNextFileProc
;
workRequest
.
hdr
=
WININET_AddRef
(
&
lpwh
->
hdr
);
req
=
&
workRequest
.
u
.
FtpFindNextW
;
...
...
@@ -1866,7 +1865,6 @@ BOOL WINAPI InternetReadFileExA(HINTERNET hFile, LPINTERNET_BUFFERSA lpBuffersOu
WORKREQUEST
workRequest
;
struct
WORKREQ_INTERNETREADFILEEXA
*
req
;
workRequest
.
asyncall
=
CALLASYNCPROC
;
workRequest
.
asyncproc
=
AsyncInternetReadFileExProc
;
workRequest
.
hdr
=
WININET_AddRef
(
lpwh
);
req
=
&
workRequest
.
u
.
InternetReadFileExA
;
...
...
@@ -2940,7 +2938,6 @@ HINTERNET WINAPI InternetOpenUrlW(HINTERNET hInternet, LPCWSTR lpszUrl,
WORKREQUEST
workRequest
;
struct
WORKREQ_INTERNETOPENURLW
*
req
;
workRequest
.
asyncall
=
CALLASYNCPROC
;
workRequest
.
asyncproc
=
AsyncInternetOpenUrlProc
;
workRequest
.
hdr
=
WININET_AddRef
(
&
hIC
->
hdr
);
req
=
&
workRequest
.
u
.
InternetOpenUrlW
;
...
...
@@ -3248,12 +3245,8 @@ static VOID INTERNET_ExecuteWork(void)
if
(
!
INTERNET_GetWorkRequest
(
&
workRequest
))
return
;
switch
(
workRequest
.
asyncall
)
{
case
CALLASYNCPROC
:
workRequest
.
asyncproc
(
&
workRequest
);
break
;
}
workRequest
.
asyncproc
(
&
workRequest
);
WININET_Release
(
workRequest
.
hdr
);
}
...
...
dlls/wininet/internet.h
View file @
49f5ee74
...
...
@@ -247,11 +247,6 @@ typedef struct
LPFILEPROPERTIESW
lpafp
;
}
WININETFTPFINDNEXTW
,
*
LPWININETFTPFINDNEXTW
;
typedef
enum
{
CALLASYNCPROC
,
}
ASYNC_FUNC
;
struct
WORKREQ_FTPPUTFILEW
{
LPWSTR
lpszLocalFile
;
...
...
@@ -358,7 +353,6 @@ struct WORKREQ_INTERNETREADFILEEXA
typedef
struct
WORKREQ
{
ASYNC_FUNC
asyncall
;
void
(
*
asyncproc
)(
struct
WORKREQ
*
);
WININETHANDLEHEADER
*
hdr
;
...
...
dlls/wininet/utility.c
View file @
49f5ee74
...
...
@@ -293,7 +293,6 @@ VOID SendAsyncCallback(LPWININETHANDLEHEADER hdr, DWORD dwContext,
memcpy
(
lpvStatusInfo_copy
,
lpvStatusInfo
,
dwStatusInfoLength
);
}
workRequest
.
asyncall
=
CALLASYNCPROC
;
workRequest
.
asyncproc
=
SendAsyncCallbackProc
;
workRequest
.
hdr
=
WININET_AddRef
(
hdr
);
req
=
&
workRequest
.
u
.
SendCallback
;
...
...
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