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
02708c62
Commit
02708c62
authored
Oct 26, 2005
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 26, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make functions static.
parent
ea48acb5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
29 deletions
+21
-29
http.c
dlls/wininet/http.c
+21
-26
internet.h
dlls/wininet/internet.h
+0
-3
No files found.
dlls/wininet/http.c
View file @
02708c62
...
@@ -84,20 +84,15 @@ static const WCHAR g_szHost[] = {'H','o','s','t',0};
...
@@ -84,20 +84,15 @@ static const WCHAR g_szHost[] = {'H','o','s','t',0};
static
void
HTTP_CloseHTTPRequestHandle
(
LPWININETHANDLEHEADER
hdr
);
static
void
HTTP_CloseHTTPRequestHandle
(
LPWININETHANDLEHEADER
hdr
);
static
void
HTTP_CloseHTTPSessionHandle
(
LPWININETHANDLEHEADER
hdr
);
static
void
HTTP_CloseHTTPSessionHandle
(
LPWININETHANDLEHEADER
hdr
);
BOOL
HTTP_OpenConnection
(
LPWININETHTTPREQW
lpwhr
);
static
BOOL
HTTP_OpenConnection
(
LPWININETHTTPREQW
lpwhr
);
int
HTTP_WriteDataToStream
(
LPWININETHTTPREQW
lpwhr
,
static
BOOL
HTTP_GetResponseHeaders
(
LPWININETHTTPREQW
lpwhr
);
void
*
Buffer
,
int
BytesToWrite
);
static
BOOL
HTTP_ProcessHeader
(
LPWININETHTTPREQW
lpwhr
,
LPCWSTR
field
,
LPCWSTR
value
,
DWORD
dwModifier
);
int
HTTP_ReadDataFromStream
(
LPWININETHTTPREQW
lpwhr
,
static
BOOL
HTTP_ReplaceHeaderValue
(
LPHTTPHEADERW
lphttpHdr
,
LPCWSTR
lpsztmp
);
void
*
Buffer
,
int
BytesToRead
);
static
LPWSTR
*
HTTP_InterpretHttpHeader
(
LPCWSTR
buffer
);
BOOL
HTTP_GetResponseHeaders
(
LPWININETHTTPREQW
lpwhr
);
static
BOOL
HTTP_InsertCustomHeader
(
LPWININETHTTPREQW
lpwhr
,
LPHTTPHEADERW
lpHdr
);
BOOL
HTTP_ProcessHeader
(
LPWININETHTTPREQW
lpwhr
,
LPCWSTR
field
,
LPCWSTR
value
,
DWORD
dwModifier
);
static
INT
HTTP_GetCustomHeaderIndex
(
LPWININETHTTPREQW
lpwhr
,
LPCWSTR
lpszField
);
BOOL
HTTP_ReplaceHeaderValue
(
LPHTTPHEADERW
lphttpHdr
,
LPCWSTR
lpsztmp
);
static
BOOL
HTTP_DeleteCustomHeader
(
LPWININETHTTPREQW
lpwhr
,
DWORD
index
);
void
HTTP_CloseConnection
(
LPWININETHTTPREQW
lpwhr
);
LPWSTR
*
HTTP_InterpretHttpHeader
(
LPCWSTR
buffer
);
INT
HTTP_GetStdHeaderIndex
(
LPCWSTR
lpszField
);
BOOL
HTTP_InsertCustomHeader
(
LPWININETHTTPREQW
lpwhr
,
LPHTTPHEADERW
lpHdr
);
INT
HTTP_GetCustomHeaderIndex
(
LPWININETHTTPREQW
lpwhr
,
LPCWSTR
lpszField
);
BOOL
HTTP_DeleteCustomHeader
(
LPWININETHTTPREQW
lpwhr
,
DWORD
index
);
/***********************************************************************
/***********************************************************************
* HTTP_Tokenize (internal)
* HTTP_Tokenize (internal)
...
@@ -565,7 +560,7 @@ static LPWSTR HTTP_EncodeBasicAuth( LPCWSTR username, LPCWSTR password)
...
@@ -565,7 +560,7 @@ static LPWSTR HTTP_EncodeBasicAuth( LPCWSTR username, LPCWSTR password)
*
*
* Insert the basic authorization field in the request header
* Insert the basic authorization field in the request header
*/
*/
BOOL
HTTP_InsertProxyAuthorization
(
LPWININETHTTPREQW
lpwhr
,
static
BOOL
HTTP_InsertProxyAuthorization
(
LPWININETHTTPREQW
lpwhr
,
LPCWSTR
username
,
LPCWSTR
password
)
LPCWSTR
username
,
LPCWSTR
password
)
{
{
HTTPHEADERW
hdr
;
HTTPHEADERW
hdr
;
...
@@ -1908,7 +1903,7 @@ lerror:
...
@@ -1908,7 +1903,7 @@ lerror:
* TRUE on success
* TRUE on success
* FALSE on failure
* FALSE on failure
*/
*/
BOOL
HTTP_OpenConnection
(
LPWININETHTTPREQW
lpwhr
)
static
BOOL
HTTP_OpenConnection
(
LPWININETHTTPREQW
lpwhr
)
{
{
BOOL
bSuccess
=
FALSE
;
BOOL
bSuccess
=
FALSE
;
LPWININETHTTPSESSIONW
lpwhs
;
LPWININETHTTPSESSIONW
lpwhs
;
...
@@ -2002,7 +1997,7 @@ static void HTTP_clear_response_headers( LPWININETHTTPREQW lpwhr )
...
@@ -2002,7 +1997,7 @@ static void HTTP_clear_response_headers( LPWININETHTTPREQW lpwhr )
* TRUE on success
* TRUE on success
* FALSE on error
* FALSE on error
*/
*/
BOOL
HTTP_GetResponseHeaders
(
LPWININETHTTPREQW
lpwhr
)
static
BOOL
HTTP_GetResponseHeaders
(
LPWININETHTTPREQW
lpwhr
)
{
{
INT
cbreaks
=
0
;
INT
cbreaks
=
0
;
WCHAR
buffer
[
MAX_REPLY_LEN
];
WCHAR
buffer
[
MAX_REPLY_LEN
];
...
@@ -2152,7 +2147,7 @@ static void strip_spaces(LPWSTR start)
...
@@ -2152,7 +2147,7 @@ static void strip_spaces(LPWSTR start)
* Pointer to array of field, value, NULL on success.
* Pointer to array of field, value, NULL on success.
* NULL on error.
* NULL on error.
*/
*/
LPWSTR
*
HTTP_InterpretHttpHeader
(
LPCWSTR
buffer
)
static
LPWSTR
*
HTTP_InterpretHttpHeader
(
LPCWSTR
buffer
)
{
{
LPWSTR
*
pTokenPair
;
LPWSTR
*
pTokenPair
;
LPWSTR
pszColon
;
LPWSTR
pszColon
;
...
@@ -2205,7 +2200,7 @@ LPWSTR * HTTP_InterpretHttpHeader(LPCWSTR buffer)
...
@@ -2205,7 +2200,7 @@ LPWSTR * HTTP_InterpretHttpHeader(LPCWSTR buffer)
*
*
* FIXME: This should be stuffed into a hash table
* FIXME: This should be stuffed into a hash table
*/
*/
INT
HTTP_GetStdHeaderIndex
(
LPCWSTR
lpszField
)
static
INT
HTTP_GetStdHeaderIndex
(
LPCWSTR
lpszField
)
{
{
INT
index
=
-
1
;
INT
index
=
-
1
;
static
const
WCHAR
szContentLength
[]
=
{
static
const
WCHAR
szContentLength
[]
=
{
...
@@ -2306,7 +2301,7 @@ INT HTTP_GetStdHeaderIndex(LPCWSTR lpszField)
...
@@ -2306,7 +2301,7 @@ INT HTTP_GetStdHeaderIndex(LPCWSTR lpszField)
/***********************************************************************
/***********************************************************************
* HTTP_ReplaceHeaderValue (internal)
* HTTP_ReplaceHeaderValue (internal)
*/
*/
BOOL
HTTP_ReplaceHeaderValue
(
LPHTTPHEADERW
lphttpHdr
,
LPCWSTR
value
)
static
BOOL
HTTP_ReplaceHeaderValue
(
LPHTTPHEADERW
lphttpHdr
,
LPCWSTR
value
)
{
{
INT
len
=
0
;
INT
len
=
0
;
...
@@ -2333,7 +2328,7 @@ BOOL HTTP_ReplaceHeaderValue( LPHTTPHEADERW lphttpHdr, LPCWSTR value )
...
@@ -2333,7 +2328,7 @@ BOOL HTTP_ReplaceHeaderValue( LPHTTPHEADERW lphttpHdr, LPCWSTR value )
#define COALESCEFLASG (HTTP_ADDHDR_FLAG_COALESCE|HTTP_ADDHDR_FLAG_COALESCE_WITH_COMMA|HTTP_ADDHDR_FLAG_COALESCE_WITH_SEMICOLON)
#define COALESCEFLASG (HTTP_ADDHDR_FLAG_COALESCE|HTTP_ADDHDR_FLAG_COALESCE_WITH_COMMA|HTTP_ADDHDR_FLAG_COALESCE_WITH_SEMICOLON)
BOOL
HTTP_ProcessHeader
(
LPWININETHTTPREQW
lpwhr
,
LPCWSTR
field
,
LPCWSTR
value
,
DWORD
dwModifier
)
static
BOOL
HTTP_ProcessHeader
(
LPWININETHTTPREQW
lpwhr
,
LPCWSTR
field
,
LPCWSTR
value
,
DWORD
dwModifier
)
{
{
LPHTTPHEADERW
lphttpHdr
=
NULL
;
LPHTTPHEADERW
lphttpHdr
=
NULL
;
BOOL
bSuccess
=
FALSE
;
BOOL
bSuccess
=
FALSE
;
...
@@ -2467,7 +2462,7 @@ BOOL HTTP_ProcessHeader(LPWININETHTTPREQW lpwhr, LPCWSTR field, LPCWSTR value, D
...
@@ -2467,7 +2462,7 @@ BOOL HTTP_ProcessHeader(LPWININETHTTPREQW lpwhr, LPCWSTR field, LPCWSTR value, D
* Close socket connection
* Close socket connection
*
*
*/
*/
VOID
HTTP_CloseConnection
(
LPWININETHTTPREQW
lpwhr
)
static
VOID
HTTP_CloseConnection
(
LPWININETHTTPREQW
lpwhr
)
{
{
LPWININETHTTPSESSIONW
lpwhs
=
NULL
;
LPWININETHTTPSESSIONW
lpwhs
=
NULL
;
LPWININETAPPINFOW
hIC
=
NULL
;
LPWININETAPPINFOW
hIC
=
NULL
;
...
@@ -2533,7 +2528,7 @@ static void HTTP_CloseHTTPRequestHandle(LPWININETHANDLEHEADER hdr)
...
@@ -2533,7 +2528,7 @@ static void HTTP_CloseHTTPRequestHandle(LPWININETHANDLEHEADER hdr)
* Deallocate session handle
* Deallocate session handle
*
*
*/
*/
void
HTTP_CloseHTTPSessionHandle
(
LPWININETHANDLEHEADER
hdr
)
static
void
HTTP_CloseHTTPSessionHandle
(
LPWININETHANDLEHEADER
hdr
)
{
{
LPWININETHTTPSESSIONW
lpwhs
=
(
LPWININETHTTPSESSIONW
)
hdr
;
LPWININETHTTPSESSIONW
lpwhs
=
(
LPWININETHTTPSESSIONW
)
hdr
;
...
@@ -2551,7 +2546,7 @@ void HTTP_CloseHTTPSessionHandle(LPWININETHANDLEHEADER hdr)
...
@@ -2551,7 +2546,7 @@ void HTTP_CloseHTTPSessionHandle(LPWININETHANDLEHEADER hdr)
* Return index of custom header from header array
* Return index of custom header from header array
*
*
*/
*/
INT
HTTP_GetCustomHeaderIndex
(
LPWININETHTTPREQW
lpwhr
,
LPCWSTR
lpszField
)
static
INT
HTTP_GetCustomHeaderIndex
(
LPWININETHTTPREQW
lpwhr
,
LPCWSTR
lpszField
)
{
{
DWORD
index
;
DWORD
index
;
...
@@ -2578,7 +2573,7 @@ INT HTTP_GetCustomHeaderIndex(LPWININETHTTPREQW lpwhr, LPCWSTR lpszField)
...
@@ -2578,7 +2573,7 @@ INT HTTP_GetCustomHeaderIndex(LPWININETHTTPREQW lpwhr, LPCWSTR lpszField)
* Insert header into array
* Insert header into array
*
*
*/
*/
BOOL
HTTP_InsertCustomHeader
(
LPWININETHTTPREQW
lpwhr
,
LPHTTPHEADERW
lpHdr
)
static
BOOL
HTTP_InsertCustomHeader
(
LPWININETHTTPREQW
lpwhr
,
LPHTTPHEADERW
lpHdr
)
{
{
INT
count
;
INT
count
;
LPHTTPHEADERW
lph
=
NULL
;
LPHTTPHEADERW
lph
=
NULL
;
...
@@ -2616,7 +2611,7 @@ BOOL HTTP_InsertCustomHeader(LPWININETHTTPREQW lpwhr, LPHTTPHEADERW lpHdr)
...
@@ -2616,7 +2611,7 @@ BOOL HTTP_InsertCustomHeader(LPWININETHTTPREQW lpwhr, LPHTTPHEADERW lpHdr)
* Delete header from array
* Delete header from array
* If this function is called, the indexs may change.
* If this function is called, the indexs may change.
*/
*/
BOOL
HTTP_DeleteCustomHeader
(
LPWININETHTTPREQW
lpwhr
,
DWORD
index
)
static
BOOL
HTTP_DeleteCustomHeader
(
LPWININETHTTPREQW
lpwhr
,
DWORD
index
)
{
{
if
(
lpwhr
->
nCustHeaders
<=
0
)
if
(
lpwhr
->
nCustHeaders
<=
0
)
return
FALSE
;
return
FALSE
;
...
...
dlls/wininet/internet.h
View file @
02708c62
...
@@ -455,9 +455,6 @@ VOID SendSyncCallback(LPWININETHANDLEHEADER hdr, DWORD dwContext,
...
@@ -455,9 +455,6 @@ VOID SendSyncCallback(LPWININETHANDLEHEADER hdr, DWORD dwContext,
DWORD
dwInternetStatus
,
LPVOID
lpvStatusInfo
,
DWORD
dwInternetStatus
,
LPVOID
lpvStatusInfo
,
DWORD
dwStatusInfoLength
);
DWORD
dwStatusInfoLength
);
BOOL
HTTP_InsertProxyAuthorization
(
LPWININETHTTPREQW
lpwhr
,
LPCWSTR
username
,
LPCWSTR
password
);
BOOL
NETCON_connected
(
WININET_NETCONNECTION
*
connection
);
BOOL
NETCON_connected
(
WININET_NETCONNECTION
*
connection
);
void
NETCON_init
(
WININET_NETCONNECTION
*
connnection
,
BOOL
useSSL
);
void
NETCON_init
(
WININET_NETCONNECTION
*
connnection
,
BOOL
useSSL
);
BOOL
NETCON_create
(
WININET_NETCONNECTION
*
connection
,
int
domain
,
BOOL
NETCON_create
(
WININET_NETCONNECTION
*
connection
,
int
domain
,
...
...
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