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
e16af659
Commit
e16af659
authored
May 18, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
May 19, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Use common name for IInternetProtocol and IInternetProtocolSink vtbls.
parent
638c7ac8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
38 additions
and
44 deletions
+38
-44
binding.c
dlls/urlmon/binding.c
+3
-4
bindprot.c
dlls/urlmon/bindprot.c
+12
-14
file.c
dlls/urlmon/file.c
+3
-4
ftp.c
dlls/urlmon/ftp.c
+5
-6
gopher.c
dlls/urlmon/gopher.c
+4
-5
http.c
dlls/urlmon/http.c
+5
-6
mk.c
dlls/urlmon/mk.c
+3
-5
urlmon_main.h
dlls/urlmon/urlmon_main.h
+3
-0
No files found.
dlls/urlmon/binding.c
View file @
e16af659
...
...
@@ -78,7 +78,7 @@ typedef enum {
struct
Binding
{
const
IBindingVtbl
*
lpBindingVtbl
;
const
IInternetProtocolSinkVtbl
*
lpInternetProtocolSinkVtbl
;
const
IInternetProtocolSinkVtbl
*
lpI
I
nternetProtocolSinkVtbl
;
const
IInternetBindInfoVtbl
*
lpInternetBindInfoVtbl
;
const
IWinInetHttpInfoVtbl
*
lpWinInetHttpInfoVtbl
;
const
IServiceProviderVtbl
*
lpServiceProviderVtbl
;
...
...
@@ -112,7 +112,6 @@ struct Binding {
};
#define BINDING(x) ((IBinding*) &(x)->lpBindingVtbl)
#define PROTSINK(x) ((IInternetProtocolSink*) &(x)->lpInternetProtocolSinkVtbl)
#define BINDINF(x) ((IInternetBindInfo*) &(x)->lpInternetBindInfoVtbl)
#define INETINFO(x) ((IWinInetHttpInfo*) &(x)->lpWinInetHttpInfoVtbl)
#define SERVPROV(x) ((IServiceProvider*) &(x)->lpServiceProviderVtbl)
...
...
@@ -916,7 +915,7 @@ static const IBindingVtbl BindingVtbl = {
Binding_GetBindResult
};
#define PROTSINK_THIS(iface) DEFINE_THIS(Binding, InternetProtocolSink, iface)
#define PROTSINK_THIS(iface) DEFINE_THIS(Binding, I
I
nternetProtocolSink, iface)
static
HRESULT
WINAPI
InternetProtocolSink_QueryInterface
(
IInternetProtocolSink
*
iface
,
REFIID
riid
,
void
**
ppv
)
...
...
@@ -1360,7 +1359,7 @@ static HRESULT Binding_Create(IMoniker *mon, Binding *binding_ctx, LPCWSTR url,
ret
=
heap_alloc_zero
(
sizeof
(
Binding
));
ret
->
lpBindingVtbl
=
&
BindingVtbl
;
ret
->
lpInternetProtocolSinkVtbl
=
&
InternetProtocolSinkVtbl
;
ret
->
lpI
I
nternetProtocolSinkVtbl
=
&
InternetProtocolSinkVtbl
;
ret
->
lpInternetBindInfoVtbl
=
&
InternetBindInfoVtbl
;
ret
->
lpWinInetHttpInfoVtbl
=
&
WinInetHttpInfoVtbl
;
ret
->
lpServiceProviderVtbl
=
&
ServiceProviderVtbl
;
...
...
dlls/urlmon/bindprot.c
View file @
e16af659
...
...
@@ -33,11 +33,11 @@ typedef struct _task_header_t {
}
task_header_t
;
struct
BindProtocol
{
const
IInternetProtocolVtbl
*
lp
InternetProtocolVtbl
;
const
IInternetBindInfoVtbl
*
lpInternetBindInfoVtbl
;
const
IInternetPriorityVtbl
*
lpInternetPriorityVtbl
;
const
IServiceProviderVtbl
*
lpServiceProviderVtbl
;
const
IInternetProtocolSinkVtbl
*
lp
InternetProtocolSinkVtbl
;
const
IInternetProtocolVtbl
*
lpI
InternetProtocolVtbl
;
const
IInternetBindInfoVtbl
*
lpInternetBindInfoVtbl
;
const
IInternetPriorityVtbl
*
lpInternetPriorityVtbl
;
const
IServiceProviderVtbl
*
lpServiceProviderVtbl
;
const
IInternetProtocolSinkVtbl
*
lpI
InternetProtocolSinkVtbl
;
const
IInternetProtocolVtbl
*
lpIInternetProtocolHandlerVtbl
;
...
...
@@ -70,11 +70,9 @@ struct BindProtocol {
LPWSTR
url
;
};
#define PROTOCOL(x) ((IInternetProtocol*) &(x)->lpInternetProtocolVtbl)
#define BINDINFO(x) ((IInternetBindInfo*) &(x)->lpInternetBindInfoVtbl)
#define PRIORITY(x) ((IInternetPriority*) &(x)->lpInternetPriorityVtbl)
#define SERVPROV(x) ((IServiceProvider*) &(x)->lpServiceProviderVtbl)
#define PROTSINK(x) ((IInternetProtocolSink*) &(x)->lpInternetProtocolSinkVtbl)
#define PROTOCOLHANDLER(x) ((IInternetProtocol*) &(x)->lpIInternetProtocolHandlerVtbl)
...
...
@@ -234,7 +232,7 @@ static void mime_available(BindProtocol *This, LPCWSTR mime, BOOL verified)
}
}
#define PROTOCOL_THIS(iface) DEFINE_THIS(BindProtocol, InternetProtocol, iface)
#define PROTOCOL_THIS(iface) DEFINE_THIS(BindProtocol, I
I
nternetProtocol, iface)
static
HRESULT
WINAPI
BindProtocol_QueryInterface
(
IInternetProtocol
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
...
...
@@ -792,7 +790,7 @@ static const IInternetPriorityVtbl InternetPriorityVtbl = {
};
#define PROTSINK_THIS(iface) DEFINE_THIS(BindProtocol, InternetProtocolSink, iface)
#define PROTSINK_THIS(iface) DEFINE_THIS(BindProtocol, I
I
nternetProtocolSink, iface)
static
HRESULT
WINAPI
BPInternetProtocolSink_QueryInterface
(
IInternetProtocolSink
*
iface
,
REFIID
riid
,
void
**
ppv
)
...
...
@@ -1118,11 +1116,11 @@ HRESULT create_binding_protocol(LPCWSTR url, BOOL from_urlmon, IInternetProtocol
{
BindProtocol
*
ret
=
heap_alloc_zero
(
sizeof
(
BindProtocol
));
ret
->
lpI
nternetProtocolVtbl
=
&
BindProtocolVtbl
;
ret
->
lpInternetBindInfoVtbl
=
&
InternetBindInfoVtbl
;
ret
->
lpInternetPriorityVtbl
=
&
InternetPriorityVtbl
;
ret
->
lpServiceProviderVtbl
=
&
ServiceProviderVtbl
;
ret
->
lpI
nternetProtocolSinkVtbl
=
&
InternetProtocolSinkVtbl
;
ret
->
lpI
InternetProtocolVtbl
=
&
BindProtocolVtbl
;
ret
->
lpInternetBindInfoVtbl
=
&
InternetBindInfoVtbl
;
ret
->
lpInternetPriorityVtbl
=
&
InternetPriorityVtbl
;
ret
->
lpServiceProviderVtbl
=
&
ServiceProviderVtbl
;
ret
->
lpI
InternetProtocolSinkVtbl
=
&
InternetProtocolSinkVtbl
;
ret
->
lpIInternetProtocolHandlerVtbl
=
&
InternetProtocolHandlerVtbl
;
ret
->
ref
=
1
;
...
...
dlls/urlmon/file.c
View file @
e16af659
...
...
@@ -22,7 +22,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
urlmon
);
typedef
struct
{
const
IInternetProtocolVtbl
*
lpInternetProtocolVtbl
;
const
IInternetProtocolVtbl
*
lpI
I
nternetProtocolVtbl
;
const
IInternetPriorityVtbl
*
lpInternetPriorityVtbl
;
HANDLE
file
;
...
...
@@ -31,10 +31,9 @@ typedef struct {
LONG
ref
;
}
FileProtocol
;
#define PROTOCOL(x) ((IInternetProtocol*) &(x)->lpInternetProtocolVtbl)
#define PRIORITY(x) ((IInternetPriority*) &(x)->lpInternetPriorityVtbl)
#define PROTOCOL_THIS(iface) DEFINE_THIS(FileProtocol, InternetProtocol, iface)
#define PROTOCOL_THIS(iface) DEFINE_THIS(FileProtocol, I
I
nternetProtocol, iface)
static
HRESULT
WINAPI
FileProtocol_QueryInterface
(
IInternetProtocol
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
...
...
@@ -360,7 +359,7 @@ HRESULT FileProtocol_Construct(IUnknown *pUnkOuter, LPVOID *ppobj)
ret
=
heap_alloc
(
sizeof
(
FileProtocol
));
ret
->
lpInternetProtocolVtbl
=
&
FileProtocolVtbl
;
ret
->
lpI
I
nternetProtocolVtbl
=
&
FileProtocolVtbl
;
ret
->
lpInternetPriorityVtbl
=
&
FilePriorityVtbl
;
ret
->
file
=
NULL
;
ret
->
priority
=
0
;
...
...
dlls/urlmon/ftp.c
View file @
e16af659
...
...
@@ -24,14 +24,13 @@ WINE_DEFAULT_DEBUG_CHANNEL(urlmon);
typedef
struct
{
Protocol
base
;
const
IInternetProtocolVtbl
*
lpInternetProtocolVtbl
;
const
IInternetProtocolVtbl
*
lpI
I
nternetProtocolVtbl
;
const
IInternetPriorityVtbl
*
lpInternetPriorityVtbl
;
const
IWinInetHttpInfoVtbl
*
lpWinInetHttpInfoVtbl
;
LONG
ref
;
}
FtpProtocol
;
#define PROTOCOL(x) ((IInternetProtocol*) &(x)->lpInternetProtocolVtbl)
#define PRIORITY(x) ((IInternetPriority*) &(x)->lpInternetPriorityVtbl)
#define INETHTTPINFO(x) ((IWinInetHttpInfo*) &(x)->lpWinInetHttpInfoVtbl)
...
...
@@ -80,7 +79,7 @@ static const ProtocolVtbl AsyncProtocolVtbl = {
FtpProtocol_close_connection
};
#define PROTOCOL_THIS(iface) DEFINE_THIS(FtpProtocol, InternetProtocol, iface)
#define PROTOCOL_THIS(iface) DEFINE_THIS(FtpProtocol, I
I
nternetProtocol, iface)
static
HRESULT
WINAPI
FtpProtocol_QueryInterface
(
IInternetProtocol
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
...
...
@@ -360,9 +359,9 @@ HRESULT FtpProtocol_Construct(IUnknown *pUnkOuter, LPVOID *ppobj)
ret
=
heap_alloc_zero
(
sizeof
(
FtpProtocol
));
ret
->
base
.
vtbl
=
&
AsyncProtocolVtbl
;
ret
->
lpInternetProtocolVtbl
=
&
FtpProtocolVtbl
;
ret
->
lpInternetPriorityVtbl
=
&
FtpPriorityVtbl
;
ret
->
lpWinInetHttpInfoVtbl
=
&
WinInetHttpInfoVtbl
;
ret
->
lpI
I
nternetProtocolVtbl
=
&
FtpProtocolVtbl
;
ret
->
lpInternetPriorityVtbl
=
&
FtpPriorityVtbl
;
ret
->
lpWinInetHttpInfoVtbl
=
&
WinInetHttpInfoVtbl
;
ret
->
ref
=
1
;
*
ppobj
=
PROTOCOL
(
ret
);
...
...
dlls/urlmon/gopher.c
View file @
e16af659
...
...
@@ -24,13 +24,12 @@ WINE_DEFAULT_DEBUG_CHANNEL(urlmon);
typedef
struct
{
Protocol
base
;
const
IInternetProtocolVtbl
*
lpInternetProtocolVtbl
;
const
IInternetProtocolVtbl
*
lpI
I
nternetProtocolVtbl
;
const
IInternetPriorityVtbl
*
lpInternetPriorityVtbl
;
LONG
ref
;
}
GopherProtocol
;
#define PROTOCOL(x) ((IInternetProtocol*) &(x)->lpInternetProtocolVtbl)
#define PRIORITY(x) ((IInternetPriority*) &(x)->lpInternetPriorityVtbl)
#define ASYNCPROTOCOL_THIS(iface) DEFINE_THIS2(GopherProtocol, base, iface)
...
...
@@ -67,7 +66,7 @@ static const ProtocolVtbl AsyncProtocolVtbl = {
GopherProtocol_close_connection
};
#define PROTOCOL_THIS(iface) DEFINE_THIS(GopherProtocol, InternetProtocol, iface)
#define PROTOCOL_THIS(iface) DEFINE_THIS(GopherProtocol, I
I
nternetProtocol, iface)
static
HRESULT
WINAPI
GopherProtocol_QueryInterface
(
IInternetProtocol
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
...
...
@@ -289,8 +288,8 @@ HRESULT GopherProtocol_Construct(IUnknown *pUnkOuter, LPVOID *ppobj)
ret
=
heap_alloc_zero
(
sizeof
(
GopherProtocol
));
ret
->
base
.
vtbl
=
&
AsyncProtocolVtbl
;
ret
->
lpInternetProtocolVtbl
=
&
GopherProtocolVtbl
;
ret
->
lpInternetPriorityVtbl
=
&
GopherPriorityVtbl
;
ret
->
lpI
I
nternetProtocolVtbl
=
&
GopherProtocolVtbl
;
ret
->
lpInternetPriorityVtbl
=
&
GopherPriorityVtbl
;
ret
->
ref
=
1
;
*
ppobj
=
PROTOCOL
(
ret
);
...
...
dlls/urlmon/http.c
View file @
e16af659
...
...
@@ -32,7 +32,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(urlmon);
typedef
struct
{
Protocol
base
;
const
IInternetProtocolVtbl
*
lpInternetProtocolVtbl
;
const
IInternetProtocolVtbl
*
lpI
I
nternetProtocolVtbl
;
const
IInternetPriorityVtbl
*
lpInternetPriorityVtbl
;
const
IWinInetHttpInfoVtbl
*
lpWinInetHttpInfoVtbl
;
...
...
@@ -43,7 +43,6 @@ typedef struct {
LONG
ref
;
}
HttpProtocol
;
#define PROTOCOL(x) ((IInternetProtocol*) &(x)->lpInternetProtocolVtbl)
#define PRIORITY(x) ((IInternetPriority*) &(x)->lpInternetPriorityVtbl)
#define INETHTTPINFO(x) ((IWinInetHttpInfo*) &(x)->lpWinInetHttpInfoVtbl)
...
...
@@ -309,7 +308,7 @@ static const ProtocolVtbl AsyncProtocolVtbl = {
HttpProtocol_close_connection
};
#define PROTOCOL_THIS(iface) DEFINE_THIS(HttpProtocol, InternetProtocol, iface)
#define PROTOCOL_THIS(iface) DEFINE_THIS(HttpProtocol, I
I
nternetProtocol, iface)
static
HRESULT
WINAPI
HttpProtocol_QueryInterface
(
IInternetProtocol
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
...
...
@@ -590,9 +589,9 @@ static HRESULT create_http_protocol(BOOL https, void **ppobj)
return
E_OUTOFMEMORY
;
ret
->
base
.
vtbl
=
&
AsyncProtocolVtbl
;
ret
->
lpInternetProtocolVtbl
=
&
HttpProtocolVtbl
;
ret
->
lpInternetPriorityVtbl
=
&
HttpPriorityVtbl
;
ret
->
lpWinInetHttpInfoVtbl
=
&
WinInetHttpInfoVtbl
;
ret
->
lpI
I
nternetProtocolVtbl
=
&
HttpProtocolVtbl
;
ret
->
lpInternetPriorityVtbl
=
&
HttpPriorityVtbl
;
ret
->
lpWinInetHttpInfoVtbl
=
&
WinInetHttpInfoVtbl
;
ret
->
https
=
https
;
ret
->
ref
=
1
;
...
...
dlls/urlmon/mk.c
View file @
e16af659
...
...
@@ -22,16 +22,14 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
urlmon
);
typedef
struct
{
const
IInternetProtocolVtbl
*
lpInternetProtocolVtbl
;
const
IInternetProtocolVtbl
*
lpI
I
nternetProtocolVtbl
;
LONG
ref
;
IStream
*
stream
;
}
MkProtocol
;
#define PROTOCOL_THIS(iface) DEFINE_THIS(MkProtocol, InternetProtocol, iface)
#define PROTOCOL(x) ((IInternetProtocol*) &(x)->lpInternetProtocolVtbl)
#define PROTOCOL_THIS(iface) DEFINE_THIS(MkProtocol, IInternetProtocol, iface)
static
HRESULT
WINAPI
MkProtocol_QueryInterface
(
IInternetProtocol
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
...
...
@@ -293,7 +291,7 @@ HRESULT MkProtocol_Construct(IUnknown *pUnkOuter, LPVOID *ppobj)
ret
=
heap_alloc
(
sizeof
(
MkProtocol
));
ret
->
lpInternetProtocolVtbl
=
&
MkProtocolVtbl
;
ret
->
lpI
I
nternetProtocolVtbl
=
&
MkProtocolVtbl
;
ret
->
ref
=
1
;
ret
->
stream
=
NULL
;
...
...
dlls/urlmon/urlmon_main.h
View file @
e16af659
...
...
@@ -107,6 +107,9 @@ HRESULT protocol_lock_request(Protocol*);
HRESULT
protocol_unlock_request
(
Protocol
*
);
void
protocol_close_connection
(
Protocol
*
);
#define PROTOCOL(x) ((IInternetProtocol*) &(x)->lpIInternetProtocolVtbl)
#define PROTSINK(x) ((IInternetProtocolSink*) &(x)->lpIInternetProtocolSinkVtbl)
typedef
struct
{
HWND
notif_hwnd
;
DWORD
notif_hwnd_cnt
;
...
...
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