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
cf8efc38
Commit
cf8efc38
authored
Sep 15, 2015
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 15, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webservices: Implement WsSetInput.
parent
0e3b3e07
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
1 deletion
+59
-1
reader.c
dlls/webservices/reader.c
+58
-0
webservices.spec
dlls/webservices/webservices.spec
+1
-1
No files found.
dlls/webservices/reader.c
View file @
cf8efc38
...
...
@@ -276,6 +276,8 @@ reader_props[] =
struct
reader
{
const
char
*
input_data
;
ULONG
input_size
;
ULONG
prop_count
;
WS_XML_READER_PROPERTY
prop
[
sizeof
(
reader_props
)
/
sizeof
(
reader_props
[
0
])];
};
...
...
@@ -407,6 +409,7 @@ HRESULT WINAPI WsGetReaderProperty( WS_XML_READER *handle, WS_XML_READER_PROPERT
TRACE
(
"%p %u %p %u %p
\n
"
,
handle
,
id
,
buf
,
size
,
error
);
if
(
error
)
FIXME
(
"ignoring error parameter
\n
"
);
if
(
!
reader
->
input_data
)
return
WS_E_INVALID_OPERATION
;
return
get_reader_prop
(
reader
,
id
,
buf
,
size
);
}
...
...
@@ -423,3 +426,58 @@ HRESULT WINAPI WsSetErrorProperty( WS_ERROR *handle, WS_ERROR_PROPERTY_ID id, co
if
(
id
==
WS_ERROR_PROPERTY_LANGID
)
return
WS_E_INVALID_OPERATION
;
return
set_error_prop
(
error
,
id
,
value
,
size
);
}
/**************************************************************************
* WsSetInput [webservices.@]
*/
HRESULT
WINAPI
WsSetInput
(
WS_XML_READER
*
handle
,
const
WS_XML_READER_ENCODING
*
encoding
,
const
WS_XML_READER_INPUT
*
input
,
const
WS_XML_READER_PROPERTY
*
properties
,
ULONG
count
,
WS_ERROR
*
error
)
{
struct
reader
*
reader
=
(
struct
reader
*
)
handle
;
HRESULT
hr
;
ULONG
i
;
TRACE
(
"%p %p %p %p %u %p
\n
"
,
handle
,
encoding
,
input
,
properties
,
count
,
error
);
if
(
error
)
FIXME
(
"ignoring error parameter
\n
"
);
if
(
!
reader
)
return
E_INVALIDARG
;
switch
(
encoding
->
encodingType
)
{
case
WS_XML_READER_ENCODING_TYPE_TEXT
:
{
WS_XML_READER_TEXT_ENCODING
*
text
=
(
WS_XML_READER_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
(
input
->
inputType
)
{
case
WS_XML_READER_INPUT_TYPE_BUFFER
:
{
WS_XML_READER_BUFFER_INPUT
*
buf
=
(
WS_XML_READER_BUFFER_INPUT
*
)
input
;
reader
->
input_data
=
buf
->
encodedData
;
reader
->
input_size
=
buf
->
encodedDataSize
;
break
;
}
default:
FIXME
(
"input type %u not supported
\n
"
,
input
->
inputType
);
return
E_NOTIMPL
;
}
for
(
i
=
0
;
i
<
count
;
i
++
)
{
hr
=
set_reader_prop
(
reader
,
properties
[
i
].
id
,
properties
[
i
].
value
,
properties
[
i
].
valueSize
);
if
(
hr
!=
S_OK
)
return
hr
;
}
return
S_OK
;
}
dlls/webservices/webservices.spec
View file @
cf8efc38
...
...
@@ -150,7 +150,7 @@
@ stub WsSetFaultErrorDetail
@ stub WsSetFaultErrorProperty
@ stub WsSetHeader
@ st
ub WsSetInput
@ st
dcall WsSetInput(ptr ptr ptr ptr long ptr)
@ stub WsSetInputToBuffer
@ stub WsSetListenerProperty
@ stub WsSetMessageProperty
...
...
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