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
47c71fcd
Commit
47c71fcd
authored
Nov 30, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 01, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Make HTTP_HttpOpenRequestW static and avoid forward its declaration.
parent
b01d5842
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
59 deletions
+54
-59
http.c
dlls/wininet/http.c
+54
-55
internet.h
dlls/wininet/internet.h
+0
-4
No files found.
dlls/wininet/http.c
View file @
47c71fcd
...
...
@@ -1177,60 +1177,6 @@ BOOL WINAPI HttpEndRequestW(HINTERNET hRequest,
}
/***********************************************************************
* HttpOpenRequestW (WININET.@)
*
* Open a HTTP request handle
*
* RETURNS
* HINTERNET a HTTP request handle on success
* NULL on failure
*
*/
HINTERNET
WINAPI
HttpOpenRequestW
(
HINTERNET
hHttpSession
,
LPCWSTR
lpszVerb
,
LPCWSTR
lpszObjectName
,
LPCWSTR
lpszVersion
,
LPCWSTR
lpszReferrer
,
LPCWSTR
*
lpszAcceptTypes
,
DWORD
dwFlags
,
DWORD_PTR
dwContext
)
{
http_session_t
*
lpwhs
;
HINTERNET
handle
=
NULL
;
TRACE
(
"(%p, %s, %s, %s, %s, %p, %08x, %08lx)
\n
"
,
hHttpSession
,
debugstr_w
(
lpszVerb
),
debugstr_w
(
lpszObjectName
),
debugstr_w
(
lpszVersion
),
debugstr_w
(
lpszReferrer
),
lpszAcceptTypes
,
dwFlags
,
dwContext
);
if
(
lpszAcceptTypes
!=
NULL
)
{
int
i
;
for
(
i
=
0
;
lpszAcceptTypes
[
i
]
!=
NULL
;
i
++
)
TRACE
(
"
\t
accept type: %s
\n
"
,
debugstr_w
(
lpszAcceptTypes
[
i
]));
}
lpwhs
=
(
http_session_t
*
)
WININET_GetObject
(
hHttpSession
);
if
(
NULL
==
lpwhs
||
lpwhs
->
hdr
.
htype
!=
WH_HHTTPSESSION
)
{
INTERNET_SetLastError
(
ERROR_INTERNET_INCORRECT_HANDLE_TYPE
);
goto
lend
;
}
/*
* My tests seem to show that the windows version does not
* become asynchronous until after this point. And anyhow
* if this call was asynchronous then how would you get the
* necessary HINTERNET pointer returned by this function.
*
*/
handle
=
HTTP_HttpOpenRequestW
(
lpwhs
,
lpszVerb
,
lpszObjectName
,
lpszVersion
,
lpszReferrer
,
lpszAcceptTypes
,
dwFlags
,
dwContext
);
lend:
if
(
lpwhs
)
WININET_Release
(
&
lpwhs
->
hdr
);
TRACE
(
"returning %p
\n
"
,
handle
);
return
handle
;
}
/***********************************************************************
* HttpOpenRequestA (WININET.@)
*
* Open a HTTP request handle
...
...
@@ -2584,7 +2530,7 @@ static const object_vtbl_t HTTPREQVtbl = {
* NULL on failure
*
*/
HINTERNET
WINAPI
HTTP_HttpOpenRequestW
(
http_session_t
*
lpwhs
,
static
HINTERNET
WINAPI
HTTP_HttpOpenRequestW
(
http_session_t
*
lpwhs
,
LPCWSTR
lpszVerb
,
LPCWSTR
lpszObjectName
,
LPCWSTR
lpszVersion
,
LPCWSTR
lpszReferrer
,
LPCWSTR
*
lpszAcceptTypes
,
DWORD
dwFlags
,
DWORD_PTR
dwContext
)
...
...
@@ -2722,6 +2668,59 @@ lend:
return
handle
;
}
/***********************************************************************
* HttpOpenRequestW (WININET.@)
*
* Open a HTTP request handle
*
* RETURNS
* HINTERNET a HTTP request handle on success
* NULL on failure
*
*/
HINTERNET
WINAPI
HttpOpenRequestW
(
HINTERNET
hHttpSession
,
LPCWSTR
lpszVerb
,
LPCWSTR
lpszObjectName
,
LPCWSTR
lpszVersion
,
LPCWSTR
lpszReferrer
,
LPCWSTR
*
lpszAcceptTypes
,
DWORD
dwFlags
,
DWORD_PTR
dwContext
)
{
http_session_t
*
lpwhs
;
HINTERNET
handle
=
NULL
;
TRACE
(
"(%p, %s, %s, %s, %s, %p, %08x, %08lx)
\n
"
,
hHttpSession
,
debugstr_w
(
lpszVerb
),
debugstr_w
(
lpszObjectName
),
debugstr_w
(
lpszVersion
),
debugstr_w
(
lpszReferrer
),
lpszAcceptTypes
,
dwFlags
,
dwContext
);
if
(
lpszAcceptTypes
!=
NULL
)
{
int
i
;
for
(
i
=
0
;
lpszAcceptTypes
[
i
]
!=
NULL
;
i
++
)
TRACE
(
"
\t
accept type: %s
\n
"
,
debugstr_w
(
lpszAcceptTypes
[
i
]));
}
lpwhs
=
(
http_session_t
*
)
WININET_GetObject
(
hHttpSession
);
if
(
NULL
==
lpwhs
||
lpwhs
->
hdr
.
htype
!=
WH_HHTTPSESSION
)
{
INTERNET_SetLastError
(
ERROR_INTERNET_INCORRECT_HANDLE_TYPE
);
goto
lend
;
}
/*
* My tests seem to show that the windows version does not
* become asynchronous until after this point. And anyhow
* if this call was asynchronous then how would you get the
* necessary HINTERNET pointer returned by this function.
*
*/
handle
=
HTTP_HttpOpenRequestW
(
lpwhs
,
lpszVerb
,
lpszObjectName
,
lpszVersion
,
lpszReferrer
,
lpszAcceptTypes
,
dwFlags
,
dwContext
);
lend:
if
(
lpwhs
)
WININET_Release
(
&
lpwhs
->
hdr
);
TRACE
(
"returning %p
\n
"
,
handle
);
return
handle
;
}
/* read any content returned by the server so that the connection can be
* reused */
static
void
HTTP_DrainContent
(
http_request_t
*
req
)
...
...
dlls/wininet/internet.h
View file @
47c71fcd
...
...
@@ -414,10 +414,6 @@ LPSTR INTERNET_GetNextLine(INT nSocket, LPDWORD dwLen);
BOOLAPI
HTTP_HttpSendRequestW
(
http_request_t
*
req
,
LPCWSTR
lpszHeaders
,
DWORD
dwHeaderLength
,
LPVOID
lpOptional
,
DWORD
dwOptionalLength
,
DWORD
dwContentLength
,
BOOL
bEndRequest
);
INTERNETAPI
HINTERNET
WINAPI
HTTP_HttpOpenRequestW
(
http_session_t
*
session
,
LPCWSTR
lpszVerb
,
LPCWSTR
lpszObjectName
,
LPCWSTR
lpszVersion
,
LPCWSTR
lpszReferrer
,
LPCWSTR
*
lpszAcceptTypes
,
DWORD
dwFlags
,
DWORD_PTR
dwContext
);
VOID
SendAsyncCallback
(
object_header_t
*
hdr
,
DWORD_PTR
dwContext
,
DWORD
dwInternetStatus
,
LPVOID
lpvStatusInfo
,
...
...
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