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
64254a0a
Commit
64254a0a
authored
May 17, 2021
by
Hans Leidekker
Committed by
Alexandre Julliard
May 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webservices: Implement WsGetChannelProperty(WS_CHANNEL_PROPERTY_STATE).
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
19c9969c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
channel.c
dlls/webservices/channel.c
+5
-0
channel.c
dlls/webservices/tests/channel.c
+11
-0
No files found.
dlls/webservices/channel.c
View file @
64254a0a
...
...
@@ -672,6 +672,11 @@ HRESULT WINAPI WsGetChannelProperty( WS_CHANNEL *handle, WS_CHANNEL_PROPERTY_ID
else
*
(
WS_ENCODING
*
)
buf
=
channel
->
encoding
;
break
;
case
WS_CHANNEL_PROPERTY_STATE
:
if
(
!
buf
||
size
!=
sizeof
(
channel
->
state
))
hr
=
E_INVALIDARG
;
else
*
(
WS_CHANNEL_STATE
*
)
buf
=
channel
->
state
;
break
;
default:
hr
=
prop_get
(
channel
->
prop
,
channel
->
prop_count
,
id
,
buf
,
size
);
}
...
...
dlls/webservices/tests/channel.c
View file @
64254a0a
...
...
@@ -117,6 +117,7 @@ static void test_WsOpenChannel(void)
{
HRESULT
hr
;
WS_CHANNEL
*
channel
;
WS_CHANNEL_STATE
state
;
WS_ENDPOINT_ADDRESS
addr
;
hr
=
WsCreateChannel
(
WS_CHANNEL_TYPE_REQUEST
,
WS_HTTP_CHANNEL_BINDING
,
NULL
,
0
,
NULL
,
&
channel
,
NULL
);
...
...
@@ -141,12 +142,22 @@ static void test_WsOpenChannel(void)
hr
=
WsOpenChannel
(
channel
,
&
addr
,
NULL
,
NULL
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
state
=
0xdeadbeef
;
hr
=
WsGetChannelProperty
(
channel
,
WS_CHANNEL_PROPERTY_STATE
,
&
state
,
sizeof
(
state
),
NULL
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
state
==
WS_CHANNEL_STATE_OPEN
,
"got %u
\n
"
,
state
);
hr
=
WsOpenChannel
(
channel
,
&
addr
,
NULL
,
NULL
);
ok
(
hr
==
WS_E_INVALID_OPERATION
,
"got %08x
\n
"
,
hr
);
hr
=
WsCloseChannel
(
channel
,
NULL
,
NULL
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
state
=
0xdeadbeef
;
hr
=
WsGetChannelProperty
(
channel
,
WS_CHANNEL_PROPERTY_STATE
,
&
state
,
sizeof
(
state
),
NULL
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
state
==
WS_CHANNEL_STATE_CLOSED
,
"got %u
\n
"
,
state
);
hr
=
WsCloseChannel
(
channel
,
NULL
,
NULL
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
...
...
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