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
d00aa4db
Commit
d00aa4db
authored
Dec 04, 2018
by
Hans Leidekker
Committed by
Alexandre Julliard
Dec 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webservices: Implement WsFillBody.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
708a2c99
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
1 deletion
+29
-1
msg.c
dlls/webservices/msg.c
+27
-0
webservices.spec
dlls/webservices/webservices.spec
+1
-1
webservices.h
include/webservices.h
+1
-0
No files found.
dlls/webservices/msg.c
View file @
d00aa4db
...
...
@@ -999,6 +999,33 @@ HRESULT WINAPI WsReadBody( WS_MESSAGE *handle, const WS_ELEMENT_DESCRIPTION *des
}
/**************************************************************************
* WsFillBody [webservices.@]
*/
HRESULT
WINAPI
WsFillBody
(
WS_MESSAGE
*
handle
,
ULONG
size
,
const
WS_ASYNC_CONTEXT
*
ctx
,
WS_ERROR
*
error
)
{
struct
msg
*
msg
=
(
struct
msg
*
)
handle
;
HRESULT
hr
;
TRACE
(
"%p %u %p %p
\n
"
,
handle
,
size
,
ctx
,
error
);
if
(
!
msg
)
return
E_INVALIDARG
;
EnterCriticalSection
(
&
msg
->
cs
);
if
(
msg
->
magic
!=
MSG_MAGIC
)
{
LeaveCriticalSection
(
&
msg
->
cs
);
return
E_INVALIDARG
;
}
hr
=
WsFillReader
(
msg
->
reader_body
,
size
,
ctx
,
error
);
LeaveCriticalSection
(
&
msg
->
cs
);
TRACE
(
"returning %08x
\n
"
,
hr
);
return
hr
;
}
/**************************************************************************
* WsInitializeMessage [webservices.@]
*/
HRESULT
WINAPI
WsInitializeMessage
(
WS_MESSAGE
*
handle
,
WS_MESSAGE_INITIALIZATION
init
,
...
...
dlls/webservices/webservices.spec
View file @
d00aa4db
...
...
@@ -43,7 +43,7 @@
@ stub WsEndReaderCanonicalization
@ stub WsEndWriterCanonicalization
@ stdcall WsFileTimeToDateTime(ptr ptr ptr)
@ st
ub WsFillBody
@ st
dcall WsFillBody(ptr long ptr ptr)
@ stdcall WsFillReader(ptr long ptr ptr)
@ stdcall WsFindAttribute(ptr ptr ptr long ptr ptr)
@ stub WsFlushBody
...
...
include/webservices.h
View file @
d00aa4db
...
...
@@ -1622,6 +1622,7 @@ HRESULT WINAPI WsDateTimeToFileTime(const WS_DATETIME*, FILETIME*, WS_ERROR*);
HRESULT
WINAPI
WsDecodeUrl
(
const
WS_STRING
*
,
ULONG
,
WS_HEAP
*
,
WS_URL
**
,
WS_ERROR
*
);
HRESULT
WINAPI
WsEncodeUrl
(
const
WS_URL
*
,
ULONG
,
WS_HEAP
*
,
WS_STRING
*
,
WS_ERROR
*
);
HRESULT
WINAPI
WsFileTimeToDateTime
(
const
FILETIME
*
,
WS_DATETIME
*
,
WS_ERROR
*
);
HRESULT
WINAPI
WsFillBody
(
WS_MESSAGE
*
,
ULONG
,
const
WS_ASYNC_CONTEXT
*
,
WS_ERROR
*
);
HRESULT
WINAPI
WsFillReader
(
WS_XML_READER
*
,
ULONG
,
const
WS_ASYNC_CONTEXT
*
,
WS_ERROR
*
);
HRESULT
WINAPI
WsFindAttribute
(
WS_XML_READER
*
,
const
WS_XML_STRING
*
,
const
WS_XML_STRING
*
,
BOOL
,
ULONG
*
,
WS_ERROR
*
);
...
...
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