/*
* Copyright (C) 2001 Francois Gouget
*
* 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
*/
/*
* Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
* other than GPL or LGPL is available it will apply instead, Oracle elects to use only
* the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
* a choice of LGPL license versions is made available with the language indicating
* that LGPLv2 or any later version may be used, or where a choice of which version
* of the LGPL is applied is otherwise unspecified.
*/
#ifndef __WS2TCPIP__
#define __WS2TCPIP__
#include <winsock2.h>
#include <ws2ipdef.h>
#include <limits.h>
#ifdef USE_WS_PREFIX
#else
#define WS(x) x
#endif
/* for addrinfo calls */
{
int ai_flags;
int ai_family;
int ai_socktype;
int ai_protocol;
char * ai_canonname;
} ADDRINFOA, *PADDRINFOA;
{
int ai_flags;
int ai_family;
int ai_socktype;
int ai_protocol;
} ADDRINFOW, *PADDRINFOW;
/* Possible Windows flags for getaddrinfo() */
#ifndef USE_WS_PREFIX
/* getaddrinfo error codes */
#else
/* getaddrinfo error codes */
#endif
#ifndef USE_WS_PREFIX
#else
#endif
/* Possible Windows flags for getnameinfo() */
#ifndef USE_WS_PREFIX
#else
#endif
#ifdef __cplusplus
extern "C" {
#endif
{
/* FIXME: should format message from system, ignoring inserts in neutral
* language */
buffer[0] = '\0';
return buffer;
}
{
/* FIXME: should format message from system, ignoring inserts in neutral
* language */
buffer[0] = '\0';
return buffer;
}
#ifdef USE_WS_PREFIX
#elif defined(WINE_NO_UNICODE_MACROS)
#else
#endif
int WINAPI WS(getaddrinfo)(const char*,const char*,const struct WS(addrinfo)*,struct WS(addrinfo)**);
/*
* Ws2tcpip Function Typedefs
*
* Remember to keep this section in sync with the
* prototypes above.
*/
typedef int (WINAPI *LPFN_GETADDRINFO)(const char*,const char*,const struct WS(addrinfo)*,struct WS(addrinfo)**);
typedef int (WINAPI *LPFN_GETNAMEINFO)(const struct sockaddr*,socklen_t,char*,DWORD,char*,DWORD,int);
#endif
#ifdef __cplusplus
}
#endif
#endif /* __WS2TCPIP__ */