webservices: Implement WsFillReader.

This commit is contained in:
Hans Leidekker 2015-09-16 11:19:00 +02:00 committed by Alexandre Julliard
parent 8bef93521f
commit 7b16d186e6
2 changed files with 23 additions and 1 deletions

View File

@ -336,6 +336,8 @@ reader_props[] =
struct reader struct reader
{ {
ULONG read_size;
ULONG read_pos;
struct list nodes; struct list nodes;
struct node *current; struct node *current;
const char *input_data; const char *input_data;
@ -445,6 +447,26 @@ void WINAPI WsFreeReader( WS_XML_READER *handle )
heap_free( reader ); heap_free( reader );
} }
/**************************************************************************
* WsFillReader [webservices.@]
*/
HRESULT WINAPI WsFillReader( WS_XML_READER *handle, ULONG min_size, const WS_ASYNC_CONTEXT *ctx,
WS_ERROR *error )
{
struct reader *reader = (struct reader *)handle;
TRACE( "%p %u %p %p\n", handle, min_size, ctx, error );
if (error) FIXME( "ignoring error parameter\n" );
if (!reader) return E_INVALIDARG;
/* FIXME: add support for stream input */
reader->read_size = min( min_size, reader->input_size );
reader->read_pos = 0;
return S_OK;
}
/************************************************************************** /**************************************************************************
* WsGetErrorProperty [webservices.@] * WsGetErrorProperty [webservices.@]
*/ */

View File

@ -44,7 +44,7 @@
@ stub WsEndWriterCanonicalization @ stub WsEndWriterCanonicalization
@ stub WsFileTimeToDateTime @ stub WsFileTimeToDateTime
@ stub WsFillBody @ stub WsFillBody
@ stub WsFillReader @ stdcall WsFillReader(ptr long ptr ptr)
@ stub WsFindAttribute @ stub WsFindAttribute
@ stub WsFlushBody @ stub WsFlushBody
@ stub WsFlushWriter @ stub WsFlushWriter