Commit dcb90635 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

winsock: Tweak getnameinfo() prototype.

Tweak the getnameinfo() prototype to better match the Windows PSDK and the GetNameInfoW() prototype. Update win32.api.
parent 4c2f22f7
......@@ -3235,8 +3235,8 @@ int WINAPI GetAddrInfoW(LPCWSTR nodename, LPCWSTR servname, const ADDRINFOW *hin
return EAI_FAIL;
}
int WINAPI WS_getnameinfo(const struct WS_sockaddr *sa, socklen_t salen, char *host,
DWORD hostlen, char *serv, DWORD servlen, int flags)
int WINAPI WS_getnameinfo(const SOCKADDR *sa, socklen_t salen, PCHAR host,
DWORD hostlen, PCHAR serv, DWORD servlen, INT flags)
{
#if HAVE_GETNAMEINFO
int ret;
......
......@@ -215,7 +215,7 @@ int WINAPI WS(getaddrinfo)(const char*,const char*,const struct WS(addrinfo)*,s
#define GetAddrInfoA WS(getaddrinfo)
int WINAPI GetAddrInfoW(PCWSTR,PCWSTR,const ADDRINFOW*,PADDRINFOW*);
#define GetAddrInfo WINELIB_NAME_AW(GetAddrInfo)
int WINAPI WS(getnameinfo)(const struct WS(sockaddr)*,socklen_t,char*,DWORD,char*,DWORD,int);
int WINAPI WS(getnameinfo)(const SOCKADDR*,socklen_t,PCHAR,DWORD,PCHAR,DWORD,INT);
#define GetNameInfoA WS(getnameinfo)
INT WINAPI GetNameInfoW(const SOCKADDR*,socklen_t,PWCHAR,DWORD,PWCHAR,DWORD,INT);
#define GetNameInfo WINELIB_NAME_AW(GetNameInfo)
......
......@@ -5347,6 +5347,7 @@ WSAESETSERVICEOP
WSAEVENT
int
long
socklen_t
u_long
u_short
......@@ -5378,6 +5379,7 @@ LPWSAQUERYSETW
LPWSASERVICECLASSINFOA
LPWSASERVICECLASSINFOW
PADDRINFOW *
SOCKADDR *
WS_fd_set *
int *
struct WS_addrinfo *
......@@ -5394,6 +5396,7 @@ u_short *
LPCSTR
LPSTR
PCHAR
char *
%unknown
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment