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
8c3bf0e9
Commit
8c3bf0e9
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 WsSetOutput.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9dfe9ec8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
1 deletion
+54
-1
webservices.spec
dlls/webservices/webservices.spec
+1
-1
writer.c
dlls/webservices/writer.c
+53
-0
No files found.
dlls/webservices/webservices.spec
View file @
8c3bf0e9
...
...
@@ -154,7 +154,7 @@
@ stub WsSetInputToBuffer
@ stub WsSetListenerProperty
@ stub WsSetMessageProperty
@ st
ub WsSetOutput
@ st
dcall WsSetOutput(ptr ptr ptr ptr long ptr)
@ stub WsSetOutputToBuffer
@ stub WsSetReaderPosition
@ stub WsSetWriterPosition
...
...
dlls/webservices/writer.c
View file @
8c3bf0e9
...
...
@@ -57,6 +57,7 @@ writer_props[] =
struct
writer
{
WS_XML_WRITER_OUTPUT_TYPE
output_type
;
ULONG
prop_count
;
WS_XML_WRITER_PROPERTY
prop
[
sizeof
(
writer_props
)
/
sizeof
(
writer_props
[
0
])];
};
...
...
@@ -162,5 +163,57 @@ HRESULT WINAPI WsGetWriterProperty( WS_XML_WRITER *handle, WS_XML_WRITER_PROPERT
TRACE
(
"%p %u %p %u %p
\n
"
,
handle
,
id
,
buf
,
size
,
error
);
if
(
error
)
FIXME
(
"ignoring error parameter
\n
"
);
if
(
!
writer
->
output_type
)
return
WS_E_INVALID_OPERATION
;
return
get_writer_prop
(
writer
,
id
,
buf
,
size
);
}
/**************************************************************************
* WsSetOutput [webservices.@]
*/
HRESULT
WINAPI
WsSetOutput
(
WS_XML_WRITER
*
handle
,
const
WS_XML_WRITER_ENCODING
*
encoding
,
const
WS_XML_WRITER_OUTPUT
*
output
,
const
WS_XML_WRITER_PROPERTY
*
properties
,
ULONG
count
,
WS_ERROR
*
error
)
{
struct
writer
*
writer
=
(
struct
writer
*
)
handle
;
HRESULT
hr
;
ULONG
i
;
TRACE
(
"%p %p %p %p %u %p
\n
"
,
handle
,
encoding
,
output
,
properties
,
count
,
error
);
if
(
error
)
FIXME
(
"ignoring error parameter
\n
"
);
if
(
!
writer
)
return
E_INVALIDARG
;
switch
(
encoding
->
encodingType
)
{
case
WS_XML_WRITER_ENCODING_TYPE_TEXT
:
{
WS_XML_WRITER_TEXT_ENCODING
*
text
=
(
WS_XML_WRITER_TEXT_ENCODING
*
)
encoding
;
if
(
text
->
charSet
!=
WS_CHARSET_UTF8
)
{
FIXME
(
"charset %u not supported
\n
"
,
text
->
charSet
);
return
E_NOTIMPL
;
}
break
;
}
default:
FIXME
(
"encoding type %u not supported
\n
"
,
encoding
->
encodingType
);
return
E_NOTIMPL
;
}
switch
(
output
->
outputType
)
{
case
WS_XML_WRITER_OUTPUT_TYPE_BUFFER
:
writer
->
output_type
=
WS_XML_WRITER_OUTPUT_TYPE_BUFFER
;
break
;
default:
FIXME
(
"output type %u not supported
\n
"
,
output
->
outputType
);
return
E_NOTIMPL
;
}
for
(
i
=
0
;
i
<
count
;
i
++
)
{
hr
=
set_writer_prop
(
writer
,
properties
[
i
].
id
,
properties
[
i
].
value
,
properties
[
i
].
valueSize
);
if
(
hr
!=
S_OK
)
return
hr
;
}
return
S_OK
;
}
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