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
5f5c3890
Commit
5f5c3890
authored
Apr 13, 2016
by
Hans Leidekker
Committed by
Alexandre Julliard
Apr 13, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webservices: Implement WsGetChannelProperty and WsSetChannelProperty.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8d9bf537
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
2 deletions
+39
-2
channel.c
dlls/webservices/channel.c
+37
-0
webservices.spec
dlls/webservices/webservices.spec
+2
-2
No files found.
dlls/webservices/channel.c
View file @
5f5c3890
...
...
@@ -78,6 +78,15 @@ static HRESULT set_channel_prop( struct channel *channel, WS_CHANNEL_PROPERTY_ID
return
S_OK
;
}
static
HRESULT
get_channel_prop
(
struct
channel
*
channel
,
WS_CHANNEL_PROPERTY_ID
id
,
void
*
buf
,
ULONG
size
)
{
if
(
id
>=
channel
->
prop_count
||
size
!=
channel_props
[
id
].
size
)
return
E_INVALIDARG
;
memcpy
(
buf
,
channel
->
prop
[
id
].
value
,
channel
->
prop
[
id
].
valueSize
);
return
S_OK
;
}
void
free_channel
(
struct
channel
*
channel
)
{
heap_free
(
channel
);
...
...
@@ -156,3 +165,31 @@ void WINAPI WsFreeChannel( WS_CHANNEL *handle )
TRACE
(
"%p
\n
"
,
handle
);
free_channel
(
channel
);
}
/**************************************************************************
* WsGetChannelProperty [webservices.@]
*/
HRESULT
WINAPI
WsGetChannelProperty
(
WS_CHANNEL
*
handle
,
WS_CHANNEL_PROPERTY_ID
id
,
void
*
buf
,
ULONG
size
,
WS_ERROR
*
error
)
{
struct
channel
*
channel
=
(
struct
channel
*
)
handle
;
TRACE
(
"%p %u %p %u %p
\n
"
,
handle
,
id
,
buf
,
size
,
error
);
if
(
error
)
FIXME
(
"ignoring error parameter
\n
"
);
return
get_channel_prop
(
channel
,
id
,
buf
,
size
);
}
/**************************************************************************
* WsSetChannelProperty [webservices.@]
*/
HRESULT
WINAPI
WsSetChannelProperty
(
WS_CHANNEL
*
handle
,
WS_CHANNEL_PROPERTY_ID
id
,
const
void
*
value
,
ULONG
size
,
WS_ERROR
*
error
)
{
struct
channel
*
channel
=
(
struct
channel
*
)
handle
;
TRACE
(
"%p %u %p %u
\n
"
,
handle
,
id
,
value
,
size
);
if
(
error
)
FIXME
(
"ignoring error parameter
\n
"
);
return
set_channel_prop
(
channel
,
id
,
value
,
size
);
}
dlls/webservices/webservices.spec
View file @
5f5c3890
...
...
@@ -59,7 +59,7 @@
@ stub WsFreeServiceHost
@ stub WsFreeServiceProxy
@ stdcall WsFreeWriter(ptr)
@ st
ub WsGetChannelProperty
@ st
dcall WsGetChannelProperty(ptr long ptr long ptr)
@ stub WsGetCustomHeader
@ stub WsGetDictionary
@ stdcall WsGetErrorProperty(ptr long ptr long)
...
...
@@ -145,7 +145,7 @@
@ stub WsSendFaultMessageForError
@ stub WsSendMessage
@ stub WsSendReplyMessage
@ st
ub WsSetChannelProperty
@ st
dcall WsSetChannelProperty(ptr long ptr long ptr)
@ stdcall WsSetErrorProperty(ptr long ptr long)
@ stub WsSetFaultErrorDetail
@ stub WsSetFaultErrorProperty
...
...
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