[WINHTTP]

* Move some inclusions to the main header.
* Set the default debugging channel globally through the main header.
* Remove inclusions and definitions that already exist in the main header.
CORE-7716

svn path=/trunk/; revision=61478
This commit is contained in:
Amine Khaldi 2014-01-01 21:42:31 +00:00
parent cea29aab6d
commit d8c817aa78
8 changed files with 32 additions and 142 deletions

View file

@ -16,24 +16,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define WIN32_NO_STATUS
#define _INC_WINDOWS
#define COM_NO_WINDOWS_H
#include <config.h>
//#include <stdarg.h>
#include <wine/debug.h>
//#include "wine/list.h"
//#include "windef.h"
#include <winbase.h>
#include <winhttp.h>
#include "winhttp_private.h"
WINE_DEFAULT_DEBUG_CHANNEL(winhttp);
static domain_t *add_domain( session_t *session, WCHAR *name )
{
domain_t *domain;

View file

@ -18,24 +18,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define WIN32_NO_STATUS
#define _INC_WINDOWS
#define COM_NO_WINDOWS_H
#include <config.h>
//#include "wine/port.h"
#include <wine/debug.h>
//#include <stdarg.h>
//#include "windef.h"
#include <winbase.h>
#include <winhttp.h>
#include "winhttp_private.h"
WINE_DEFAULT_DEBUG_CHANNEL(winhttp);
#define HANDLE_CHUNK_SIZE 0x10
static CRITICAL_SECTION handle_cs;

View file

@ -16,27 +16,12 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define WIN32_NO_STATUS
#define _INC_WINDOWS
#define COM_NO_WINDOWS_H
#define COBJMACROS
#include <config.h>
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
#include <objbase.h>
#include <rpcproxy.h>
#include <httprequest.h>
#include <winhttp.h>
#include <wine/debug.h>
#include "winhttp_private.h"
static HINSTANCE instance;
#include <rpcproxy.h>
#include <httprequest.h>
WINE_DEFAULT_DEBUG_CHANNEL(winhttp);
static HINSTANCE instance;
/******************************************************************
* DllMain (winhttp.@)

View file

@ -17,19 +17,11 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define WIN32_NO_STATUS
#define _INC_WINDOWS
#define COM_NO_WINDOWS_H
#include "winhttp_private.h"
#include <config.h>
//#include <wine/port.h>
//#include <stdarg.h>
//#include <stdio.h>
//#include <errno.h>
#include <assert.h>
#include <schannel.h>
//#include <sys/types.h>
#ifdef HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
@ -43,25 +35,6 @@
# include <poll.h>
#endif
#define NONAMELESSUNION
#include <wine/debug.h>
#include <wine/library.h>
//#include "windef.h"
//#include "winbase.h"
#include <winhttp.h>
//#include "wincrypt.h"
#include <schannel.h>
#include "winhttp_private.h"
/* to avoid conflicts with the Unix socket headers */
#define USE_WS_PREFIX
//#include "winsock2.h"
WINE_DEFAULT_DEBUG_CHANNEL(winhttp);
#ifndef HAVE_GETADDRINFO
/* critical section to protect non-reentrant gethostbyname() */

View file

@ -19,33 +19,17 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define WIN32_NO_STATUS
#define _INC_WINDOWS
#define COM_NO_WINDOWS_H
#include "winhttp_private.h"
#define COBJMACROS
#include <config.h>
//#include "wine/port.h"
#include <wine/debug.h>
#include <stdarg.h>
#ifdef HAVE_ARPA_INET_H
# include <arpa/inet.h>
#endif
#include <windef.h>
#include <winbase.h>
#include <ole2.h>
//#include "initguid.h"
#include <winuser.h>
#include <httprequest.h>
#include <winhttp.h>
#include "winhttp_private.h"
#include "inet_ntop.c"
WINE_DEFAULT_DEBUG_CHANNEL(winhttp);
static const WCHAR attr_accept[] = {'A','c','c','e','p','t',0};
static const WCHAR attr_accept_charset[] = {'A','c','c','e','p','t','-','C','h','a','r','s','e','t', 0};
static const WCHAR attr_accept_encoding[] = {'A','c','c','e','p','t','-','E','n','c','o','d','i','n','g',0};

View file

@ -16,31 +16,12 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define WIN32_NO_STATUS
#define _INC_WINDOWS
#define COM_NO_WINDOWS_H
#include <config.h>
//#include "wine/port.h"
#include <wine/debug.h>
//#include <stdarg.h>
//#include <stdlib.h>
#include <windef.h>
#include <winbase.h>
#include <winsock2.h>
#include <winhttp.h>
#include <wincrypt.h>
#include <winreg.h>
#define COBJMACROS
#include <ole2.h>
#include <dispex.h>
#include <activscp.h>
#include "winhttp_private.h"
WINE_DEFAULT_DEBUG_CHANNEL(winhttp);
#include <wincrypt.h>
#include <winreg.h>
#include <dispex.h>
#include <activscp.h>
#define DEFAULT_RESOLVE_TIMEOUT 0
#define DEFAULT_CONNECT_TIMEOUT 20000

View file

@ -16,25 +16,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define WIN32_NO_STATUS
#define _INC_WINDOWS
#define COM_NO_WINDOWS_H
#include <config.h>
//#include <stdarg.h>
#include <wine/debug.h>
//#include "windef.h"
#include <winbase.h>
//#include "winreg.h"
#include <winhttp.h>
//#include "shlwapi.h"
#include "winhttp_private.h"
WINE_DEFAULT_DEBUG_CHANNEL(winhttp);
static const WCHAR scheme_http[] = {'h','t','t','p',0};
static const WCHAR scheme_https[] = {'h','t','t','p','s',0};

View file

@ -19,14 +19,27 @@
#ifndef _WINE_WINHTTP_PRIVATE_H_
#define _WINE_WINHTTP_PRIVATE_H_
#ifndef __WINE_CONFIG_H
# error You must include config.h to use this header
#endif
#include <wine/config.h>
#include <stdarg.h>
#define WIN32_NO_STATUS
#define _INC_WINDOWS
#define COM_NO_WINDOWS_H
#define COBJMACROS
#define NONAMELESSUNION
#include <windef.h>
#include <winbase.h>
#include <objbase.h>
#include <oleauto.h>
#include <winsock2.h>
#include <winhttp.h>
#include <wine/list.h>
#include <wine/unicode.h>
//#include <sys/types.h>
#ifdef HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
@ -42,9 +55,12 @@
# define closesocket close
# define ioctlsocket ioctl
#endif
#include <ole2.h>
#include <sspi.h>
#include <wine/debug.h>
WINE_DEFAULT_DEBUG_CHANNEL(winhttp);
static const WCHAR getW[] = {'G','E','T',0};
static const WCHAR postW[] = {'P','O','S','T',0};
static const WCHAR headW[] = {'H','E','A','D',0};