Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
6aeeddba
Commit
6aeeddba
authored
Jun 05, 2015
by
Hans Leidekker
Committed by
Alexandre Julliard
Jun 05, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qmgr: Add IHttpNegotiate support to the bind status callback.
parent
72103ab7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
68 additions
and
6 deletions
+68
-6
file.c
dlls/qmgr/file.c
+68
-6
No files found.
dlls/qmgr/file.c
View file @
6aeeddba
...
@@ -238,6 +238,7 @@ static DWORD CALLBACK copyProgressCallback(LARGE_INTEGER totalSize,
...
@@ -238,6 +238,7 @@ static DWORD CALLBACK copyProgressCallback(LARGE_INTEGER totalSize,
typedef
struct
typedef
struct
{
{
IBindStatusCallback
IBindStatusCallback_iface
;
IBindStatusCallback
IBindStatusCallback_iface
;
IHttpNegotiate
IHttpNegotiate_iface
;
BackgroundCopyFileImpl
*
file
;
BackgroundCopyFileImpl
*
file
;
LONG
ref
;
LONG
ref
;
}
DLBindStatusCallback
;
}
DLBindStatusCallback
;
...
@@ -254,16 +255,24 @@ static HRESULT WINAPI DLBindStatusCallback_QueryInterface(
...
@@ -254,16 +255,24 @@ static HRESULT WINAPI DLBindStatusCallback_QueryInterface(
{
{
DLBindStatusCallback
*
This
=
impl_from_IBindStatusCallback
(
iface
);
DLBindStatusCallback
*
This
=
impl_from_IBindStatusCallback
(
iface
);
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
TRACE
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppvObject
);
||
IsEqualGUID
(
riid
,
&
IID_IBindStatusCallback
))
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IBindStatusCallback
))
{
{
*
ppvObject
=
&
This
->
IBindStatusCallback_iface
;
*
ppvObject
=
&
This
->
IBindStatusCallback_iface
;
IBindStatusCallback_AddRef
(
iface
);
}
return
S_OK
;
else
if
(
IsEqualGUID
(
riid
,
&
IID_IHttpNegotiate
))
{
*
ppvObject
=
&
This
->
IHttpNegotiate_iface
;
}
else
{
*
ppvObject
=
NULL
;
return
E_NOINTERFACE
;
}
}
*
ppvObject
=
NULL
;
IBindStatusCallback_AddRef
(
iface
)
;
return
E_NOINTERFACE
;
return
S_OK
;
}
}
static
ULONG
WINAPI
DLBindStatusCallback_AddRef
(
IBindStatusCallback
*
iface
)
static
ULONG
WINAPI
DLBindStatusCallback_AddRef
(
IBindStatusCallback
*
iface
)
...
@@ -381,6 +390,58 @@ static const IBindStatusCallbackVtbl DLBindStatusCallback_Vtbl =
...
@@ -381,6 +390,58 @@ static const IBindStatusCallbackVtbl DLBindStatusCallback_Vtbl =
DLBindStatusCallback_OnObjectAvailable
DLBindStatusCallback_OnObjectAvailable
};
};
static
inline
DLBindStatusCallback
*
impl_from_IHttpNegotiate
(
IHttpNegotiate
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
DLBindStatusCallback
,
IHttpNegotiate_iface
);
}
static
HRESULT
WINAPI
http_negotiate_QueryInterface
(
IHttpNegotiate
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
DLBindStatusCallback
*
callback
=
impl_from_IHttpNegotiate
(
iface
);
return
IBindStatusCallback_QueryInterface
(
&
callback
->
IBindStatusCallback_iface
,
riid
,
ppv
);
}
static
ULONG
WINAPI
http_negotiate_AddRef
(
IHttpNegotiate
*
iface
)
{
DLBindStatusCallback
*
callback
=
impl_from_IHttpNegotiate
(
iface
);
return
IBindStatusCallback_AddRef
(
&
callback
->
IBindStatusCallback_iface
);
}
static
ULONG
WINAPI
http_negotiate_Release
(
IHttpNegotiate
*
iface
)
{
DLBindStatusCallback
*
callback
=
impl_from_IHttpNegotiate
(
iface
);
return
IBindStatusCallback_Release
(
&
callback
->
IBindStatusCallback_iface
);
}
static
HRESULT
WINAPI
http_negotiate_BeginningTransaction
(
IHttpNegotiate
*
iface
,
LPCWSTR
url
,
LPCWSTR
headers
,
DWORD
reserved
,
LPWSTR
*
add_headers
)
{
DLBindStatusCallback
*
callback
=
impl_from_IHttpNegotiate
(
iface
);
FIXME
(
"(%p)->(%s %s %u %p)
\n
"
,
callback
,
debugstr_w
(
url
),
debugstr_w
(
headers
),
reserved
,
add_headers
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
http_negotiate_OnResponse
(
IHttpNegotiate
*
iface
,
DWORD
code
,
LPCWSTR
resp_headers
,
LPCWSTR
req_headers
,
LPWSTR
*
add_reqheaders
)
{
DLBindStatusCallback
*
callback
=
impl_from_IHttpNegotiate
(
iface
);
FIXME
(
"(%p)->(%d %s %s %p)
\n
"
,
callback
,
code
,
debugstr_w
(
resp_headers
),
debugstr_w
(
req_headers
),
add_reqheaders
);
return
E_NOTIMPL
;
}
static
const
IHttpNegotiateVtbl
http_negotiate_vtbl
=
{
http_negotiate_QueryInterface
,
http_negotiate_AddRef
,
http_negotiate_Release
,
http_negotiate_BeginningTransaction
,
http_negotiate_OnResponse
};
static
DLBindStatusCallback
*
DLBindStatusCallbackConstructor
(
static
DLBindStatusCallback
*
DLBindStatusCallbackConstructor
(
BackgroundCopyFileImpl
*
file
)
BackgroundCopyFileImpl
*
file
)
{
{
...
@@ -389,6 +450,7 @@ static DLBindStatusCallback *DLBindStatusCallbackConstructor(
...
@@ -389,6 +450,7 @@ static DLBindStatusCallback *DLBindStatusCallbackConstructor(
return
NULL
;
return
NULL
;
This
->
IBindStatusCallback_iface
.
lpVtbl
=
&
DLBindStatusCallback_Vtbl
;
This
->
IBindStatusCallback_iface
.
lpVtbl
=
&
DLBindStatusCallback_Vtbl
;
This
->
IHttpNegotiate_iface
.
lpVtbl
=
&
http_negotiate_vtbl
;
IBackgroundCopyFile2_AddRef
(
&
file
->
IBackgroundCopyFile2_iface
);
IBackgroundCopyFile2_AddRef
(
&
file
->
IBackgroundCopyFile2_iface
);
This
->
file
=
file
;
This
->
file
=
file
;
This
->
ref
=
1
;
This
->
ref
=
1
;
...
...
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