From: Owen Rudge Subject: [PATCH 1/7] wsdapi: Add wsdapi_internal.h for shared internal function and macro definitions. Message-Id: <649c6ead-0aa1-6877-caf3-a2224e61e27c@codeweavers.com> Date: Tue, 21 Nov 2017 22:42:41 +0000 This patch series adds the initial implementation of the PublishEx function for the IWSDiscoveryPublisher interface. A large XML structure needs to be built up to create the message - the actual sending will follow in a further series. Signed-off-by: Owen Rudge --- dlls/wsdapi/address.c | 6 +----- dlls/wsdapi/wsdapi_internal.h | 35 +++++++++++++++++++++++++++++++++++ dlls/wsdapi/xml.c | 7 +------ 3 files changed, 37 insertions(+), 11 deletions(-) create mode 100644 dlls/wsdapi/wsdapi_internal.h diff --git a/dlls/wsdapi/address.c b/dlls/wsdapi/address.c index 8e9d475118..d6be6a2c57 100644 --- a/dlls/wsdapi/address.c +++ b/dlls/wsdapi/address.c @@ -22,12 +22,8 @@ #define COBJMACROS -#include "winsock2.h" -#include "ws2tcpip.h" -#include "windef.h" -#include "winbase.h" +#include "wsdapi_internal.h" #include "wine/debug.h" -#include "wsdapi.h" WINE_DEFAULT_DEBUG_CHANNEL(wsdapi); diff --git a/dlls/wsdapi/wsdapi_internal.h b/dlls/wsdapi/wsdapi_internal.h new file mode 100644 index 0000000000..e032a85766 --- /dev/null +++ b/dlls/wsdapi/wsdapi_internal.h @@ -0,0 +1,35 @@ +/* + * Web Services on Devices + * Internal header + * + * Copyright 2017 Owen Rudge for CodeWeavers + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#ifndef _WINE_WSDAPI_INTERNAL_H +#define _WINE_WSDAPI_INTERNAL_H + +#include "winsock2.h" +#include "ws2tcpip.h" +#include "windef.h" +#include "winbase.h" +#include "objbase.h" +#include "wsdapi.h" +#include "wine/list.h" + +#define WSD_MAX_TEXT_LENGTH 8192 + +#endif diff --git a/dlls/wsdapi/xml.c b/dlls/wsdapi/xml.c index 824b7ff2fd..4d6319c36b 100644 --- a/dlls/wsdapi/xml.c +++ b/dlls/wsdapi/xml.c @@ -22,16 +22,11 @@ #define COBJMACROS -#include "windef.h" -#include "winbase.h" +#include "wsdapi_internal.h" #include "wine/debug.h" -#include "wine/list.h" -#include "wsdapi.h" WINE_DEFAULT_DEBUG_CHANNEL(wsdapi); -#define WSD_MAX_TEXT_LENGTH 8192 - static LPWSTR duplicate_string(void *parentMemoryBlock, LPCWSTR value) { int valueLen;