winsock: Tweak getnameinfo() prototype.

Tweak the getnameinfo() prototype to better match the Windows PSDK and
the GetNameInfoW() prototype.
Update win32.api.
oldstable
Francois Gouget 2006-02-24 15:58:09 +01:00 committed by Alexandre Julliard
parent 4c2f22f7c6
commit dcb90635f8
3 changed files with 6 additions and 3 deletions

View File

@ -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;

View File

@ -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)

View File

@ -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