Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
264503d4
Commit
264503d4
authored
Jul 13, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Jul 13, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add NI_* defines and add a WS(socklen_t) type.
parent
2538490d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
3 deletions
+20
-3
socket.c
dlls/ws2_32/socket.c
+1
-1
ws2tcpip.h
include/ws2tcpip.h
+19
-2
No files found.
dlls/ws2_32/socket.c
View file @
264503d4
...
...
@@ -3238,7 +3238,7 @@ int WINAPI GetAddrInfoW(LPCWSTR nodename, LPCWSTR servname, const ADDRINFOW *hin
return
EAI_FAIL
;
}
int
WINAPI
WS_getnameinfo
(
const
SOCKADDR
*
sa
,
socklen_t
salen
,
PCHAR
host
,
int
WINAPI
WS_getnameinfo
(
const
SOCKADDR
*
sa
,
WS_
socklen_t
salen
,
PCHAR
host
,
DWORD
hostlen
,
PCHAR
serv
,
DWORD
servlen
,
INT
flags
)
{
#if HAVE_GETNAMEINFO
...
...
include/ws2tcpip.h
View file @
264503d4
...
...
@@ -53,6 +53,8 @@ typedef struct WS(addrinfoW)
struct
WS
(
addrinfoW
)
*
ai_next
;
}
ADDRINFOW
,
*
PADDRINFOW
;
typedef
int
WS
(
socklen_t
);
typedef
ADDRINFOA
ADDRINFO
,
*
LPADDRINFO
;
/*
...
...
@@ -202,6 +204,21 @@ typedef struct _INTERFACE_INFO
# define WS_EAI_SOCKTYPE WSAESOCKTNOSUPPORT
#endif
/* Possible Windows flags for getnameinfo() */
#ifndef USE_WS_PREFIX
# define NI_NOFQDN 0x01
# define NI_NUMERICHOST 0x02
# define NI_NAMEREQD 0x04
# define NI_NUMERICSERV 0x08
# define NI_DGRAM 0x10
#else
# define WS_NI_NOFQDN 0x01
# define WS_NI_NUMERICHOST 0x02
# define WS_NI_NAMEREQD 0x04
# define WS_NI_NUMERICSERV 0x08
# define WS_NI_DGRAM 0x10
#endif
#ifdef __cplusplus
extern
"C"
{
...
...
@@ -215,9 +232,9 @@ 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
SOCKADDR
*
,
socklen_t
,
PCHAR
,
DWORD
,
PCHAR
,
DWORD
,
INT
);
int
WINAPI
WS
(
getnameinfo
)(
const
SOCKADDR
*
,
WS
(
socklen_t
)
,
PCHAR
,
DWORD
,
PCHAR
,
DWORD
,
INT
);
#define GetNameInfoA WS(getnameinfo)
INT
WINAPI
GetNameInfoW
(
const
SOCKADDR
*
,
socklen_t
,
PWCHAR
,
DWORD
,
PWCHAR
,
DWORD
,
INT
);
INT
WINAPI
GetNameInfoW
(
const
SOCKADDR
*
,
WS
(
socklen_t
)
,
PWCHAR
,
DWORD
,
PWCHAR
,
DWORD
,
INT
);
#define GetNameInfo WINELIB_NAME_AW(GetNameInfo)
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment