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
9dfe9ec8
Commit
9dfe9ec8
authored
Oct 14, 2015
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 15, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webservices: Implement WsGetWriterProperty.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
65e04e00
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
1 deletion
+24
-1
webservices.spec
dlls/webservices/webservices.spec
+1
-1
writer.c
dlls/webservices/writer.c
+23
-0
No files found.
dlls/webservices/webservices.spec
View file @
9dfe9ec8
...
...
@@ -88,7 +88,7 @@
@ stub WsGetServiceHostProperty
@ stub WsGetServiceProxyProperty
@ stub WsGetWriterPosition
@ st
ub WsGetWriterProperty
@ st
dcall WsGetWriterProperty(ptr long ptr long ptr)
@ stub WsGetXmlAttribute
@ stub WsInitializeMessage
@ stub WsMarkHeaderAsUnderstood
...
...
dlls/webservices/writer.c
View file @
9dfe9ec8
...
...
@@ -92,6 +92,15 @@ static HRESULT set_writer_prop( struct writer *writer, WS_XML_WRITER_PROPERTY_ID
return
S_OK
;
}
static
HRESULT
get_writer_prop
(
struct
writer
*
writer
,
WS_XML_WRITER_PROPERTY_ID
id
,
void
*
buf
,
ULONG
size
)
{
if
(
id
>=
writer
->
prop_count
||
size
!=
writer_props
[
id
].
size
)
return
E_INVALIDARG
;
memcpy
(
buf
,
writer
->
prop
[
id
].
value
,
writer
->
prop
[
id
].
valueSize
);
return
S_OK
;
}
/**************************************************************************
* WsCreateWriter [webservices.@]
*/
...
...
@@ -141,3 +150,17 @@ void WINAPI WsFreeWriter( WS_XML_WRITER *handle )
TRACE
(
"%p
\n
"
,
handle
);
heap_free
(
writer
);
}
/**************************************************************************
* WsGetWriterProperty [webservices.@]
*/
HRESULT
WINAPI
WsGetWriterProperty
(
WS_XML_WRITER
*
handle
,
WS_XML_WRITER_PROPERTY_ID
id
,
void
*
buf
,
ULONG
size
,
WS_ERROR
*
error
)
{
struct
writer
*
writer
=
(
struct
writer
*
)
handle
;
TRACE
(
"%p %u %p %u %p
\n
"
,
handle
,
id
,
buf
,
size
,
error
);
if
(
error
)
FIXME
(
"ignoring error parameter
\n
"
);
return
get_writer_prop
(
writer
,
id
,
buf
,
size
);
}
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