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
f227d9c7
Commit
f227d9c7
authored
Apr 06, 2017
by
Owen Rudge
Committed by
Alexandre Julliard
Apr 10, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wsdapi: Add implementation of SetAddressFamily.
Signed-off-by:
Owen Rudge
<
orudge@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ab326fe5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
2 deletions
+23
-2
discovery.c
dlls/wsdapi/discovery.c
+20
-2
wsdbase.idl
include/wsdbase.idl
+3
-0
No files found.
dlls/wsdapi/discovery.c
View file @
f227d9c7
...
...
@@ -36,6 +36,7 @@ typedef struct IWSDiscoveryPublisherImpl {
IWSDiscoveryPublisher
IWSDiscoveryPublisher_iface
;
LONG
ref
;
IWSDXMLContext
*
xmlContext
;
DWORD
addressFamily
;
}
IWSDiscoveryPublisherImpl
;
static
inline
IWSDiscoveryPublisherImpl
*
impl_from_IWSDiscoveryPublisher
(
IWSDiscoveryPublisher
*
iface
)
...
...
@@ -101,8 +102,25 @@ static ULONG WINAPI IWSDiscoveryPublisherImpl_Release(IWSDiscoveryPublisher *ifa
static
HRESULT
WINAPI
IWSDiscoveryPublisherImpl_SetAddressFamily
(
IWSDiscoveryPublisher
*
This
,
DWORD
dwAddressFamily
)
{
FIXME
(
"(%p, %d)
\n
"
,
This
,
dwAddressFamily
);
return
E_NOTIMPL
;
IWSDiscoveryPublisherImpl
*
impl
=
impl_from_IWSDiscoveryPublisher
(
This
);
TRACE
(
"(%p, %d)
\n
"
,
This
,
dwAddressFamily
);
/* Has the address family already been set? */
if
(
impl
->
addressFamily
!=
0
)
{
return
STG_E_INVALIDFUNCTION
;
}
if
((
dwAddressFamily
==
WSDAPI_ADDRESSFAMILY_IPV4
)
||
(
dwAddressFamily
==
WSDAPI_ADDRESSFAMILY_IPV6
)
||
(
dwAddressFamily
==
(
WSDAPI_ADDRESSFAMILY_IPV4
|
WSDAPI_ADDRESSFAMILY_IPV6
)))
{
/* TODO: Check that the address family is supported by the system */
impl
->
addressFamily
=
dwAddressFamily
;
return
S_OK
;
}
return
E_INVALIDARG
;
}
static
HRESULT
WINAPI
IWSDiscoveryPublisherImpl_RegisterNotificationSink
(
IWSDiscoveryPublisher
*
This
,
IWSDiscoveryPublisherNotify
*
pSink
)
...
...
include/wsdbase.idl
View file @
f227d9c7
...
...
@@ -18,6 +18,9 @@
import
"objidl.idl"
;
cpp_quote
(
"#define WSDAPI_ADDRESSFAMILY_IPV4 1"
)
cpp_quote
(
"#define WSDAPI_ADDRESSFAMILY_IPV6 2"
)
interface
IWSDAddress
;
interface
IWSDMessageParameters
;
...
...
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