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
bd4361cb
Commit
bd4361cb
authored
Jan 29, 2016
by
Hans Leidekker
Committed by
Alexandre Julliard
Jan 29, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webservices: Implement WsReadStartAttribute.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5eed03cb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
1 deletion
+25
-1
reader.c
dlls/webservices/reader.c
+24
-0
webservices.spec
dlls/webservices/webservices.spec
+1
-1
No files found.
dlls/webservices/reader.c
View file @
bd4361cb
...
...
@@ -378,6 +378,7 @@ enum reader_state
READER_STATE_INITIAL
,
READER_STATE_BOF
,
READER_STATE_STARTELEMENT
,
READER_STATE_STARTATTRIBUTE
,
READER_STATE_STARTENDELEMENT
,
READER_STATE_TEXT
,
READER_STATE_ENDELEMENT
,
...
...
@@ -393,6 +394,7 @@ struct reader
enum
reader_state
state
;
struct
node
*
root
;
struct
node
*
current
;
ULONG
current_attr
;
WS_XML_READER_INPUT_TYPE
input_type
;
const
unsigned
char
*
input_data
;
ULONG
input_size
;
...
...
@@ -1341,6 +1343,28 @@ HRESULT WINAPI WsMoveReader( WS_XML_READER *handle, WS_MOVE_TO move, BOOL *found
return
read_move_to
(
reader
,
move
,
found
);
}
/**************************************************************************
* WsReadStartAttribute [webservices.@]
*/
HRESULT
WINAPI
WsReadStartAttribute
(
WS_XML_READER
*
handle
,
ULONG
index
,
WS_ERROR
*
error
)
{
struct
reader
*
reader
=
(
struct
reader
*
)
handle
;
WS_XML_ELEMENT_NODE
*
elem
;
TRACE
(
"%p %u %p
\n
"
,
handle
,
index
,
error
);
if
(
error
)
FIXME
(
"ignoring error parameter
\n
"
);
if
(
!
reader
)
return
E_INVALIDARG
;
elem
=
&
reader
->
current
->
hdr
;
if
(
reader
->
state
!=
READER_STATE_STARTELEMENT
||
index
>=
elem
->
attributeCount
)
return
WS_E_INVALID_FORMAT
;
reader
->
current_attr
=
index
;
reader
->
state
=
READER_STATE_STARTATTRIBUTE
;
return
S_OK
;
}
static
WCHAR
*
xmltext_to_widechar
(
WS_HEAP
*
heap
,
const
WS_XML_TEXT
*
text
)
{
WCHAR
*
ret
;
...
...
dlls/webservices/webservices.spec
View file @
bd4361cb
...
...
@@ -118,7 +118,7 @@
@ stub WsReadMetadata
@ stdcall WsReadNode(ptr ptr)
@ stub WsReadQualifiedName
@ st
ub WsReadStartAttribute
@ st
dcall WsReadStartAttribute(ptr long ptr)
@ stdcall WsReadStartElement(ptr ptr)
@ stdcall WsReadToStartElement(ptr ptr ptr ptr ptr)
@ stdcall WsReadType(ptr long long ptr long ptr ptr long ptr)
...
...
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