Module: wine Branch: master Commit: bd56d1a0f1bec8cc809f7fa9c4440edb7c6eecfb URL: http://source.winehq.org/git/wine.git/?a=commit;h=bd56d1a0f1bec8cc809f7fa9c4...
Author: Hans Leidekker hans@codeweavers.com Date: Fri Apr 22 09:42:46 2016 +0200
webservices: Implement WsOpenServiceProxy and WsCloseServiceProxy.
Signed-off-by: Hans Leidekker hans@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/webservices/proxy.c | 29 +++++++++++++++++++++++++++++ dlls/webservices/webservices.spec | 4 ++-- 2 files changed, 31 insertions(+), 2 deletions(-)
diff --git a/dlls/webservices/proxy.c b/dlls/webservices/proxy.c index 1563ac9..02ae96d 100644 --- a/dlls/webservices/proxy.c +++ b/dlls/webservices/proxy.c @@ -205,3 +205,32 @@ HRESULT WINAPI WsGetServiceProxyProperty( WS_SERVICE_PROXY *handle, WS_PROXY_PRO
return prop_get( proxy->prop, proxy->prop_count, id, buf, size ); } + +/************************************************************************** + * WsOpenServiceProxy [webservices.@] + */ +HRESULT WINAPI WsOpenServiceProxy( WS_SERVICE_PROXY *handle, const WS_ENDPOINT_ADDRESS *endpoint, + const WS_ASYNC_CONTEXT *ctx, WS_ERROR *error ) +{ + struct proxy *proxy = (struct proxy *)handle; + + TRACE( "%p %p %p %p\n", handle, endpoint, ctx, error ); + if (error) FIXME( "ignoring error parameter\n" ); + if (ctx) FIXME( "ignoring ctx parameter\n" ); + + return open_channel( proxy->channel, endpoint ); +} + +/************************************************************************** + * WsCloseServiceProxy [webservices.@] + */ +HRESULT WINAPI WsCloseServiceProxy( WS_SERVICE_PROXY *handle, const WS_ASYNC_CONTEXT *ctx, WS_ERROR *error ) +{ + struct proxy *proxy = (struct proxy *)handle; + + TRACE( "%p %p %p\n", handle, ctx, error ); + if (error) FIXME( "ignoring error parameter\n" ); + if (ctx) FIXME( "ignoring ctx parameter\n" ); + + return close_channel( proxy->channel ); +} diff --git a/dlls/webservices/webservices.spec b/dlls/webservices/webservices.spec index 95a8c1f..5ed9351 100644 --- a/dlls/webservices/webservices.spec +++ b/dlls/webservices/webservices.spec @@ -16,7 +16,7 @@ @ stdcall WsCloseChannel(ptr ptr ptr) @ stub WsCloseListener @ stub WsCloseServiceHost -@ stub WsCloseServiceProxy +@ stdcall WsCloseServiceProxy(ptr ptr ptr) @ stub WsCombineUrl @ stub WsCopyError @ stub WsCopyNode @@ -98,7 +98,7 @@ @ stdcall WsOpenChannel(ptr ptr ptr ptr) @ stub WsOpenListener @ stub WsOpenServiceHost -@ stub WsOpenServiceProxy +@ stdcall WsOpenServiceProxy(ptr ptr ptr ptr) @ stub WsPullBytes @ stub WsPushBytes @ stub WsReadArray