Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
d4664c13
Commit
d4664c13
authored
Nov 04, 2015
by
Bruno Jesus
Committed by
Alexandre Julliard
Nov 05, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add definitions related to WSAPoll().
Signed-off-by:
Bruno Jesus
<
00cpxxx@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4269423e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
winsock2.h
include/winsock2.h
+36
-0
No files found.
include/winsock2.h
View file @
d4664c13
...
...
@@ -112,6 +112,33 @@ extern "C" {
#define SD_SEND 0x01
#define SD_BOTH 0x02
/* Constants for WSAPoll() */
#ifndef __WINE_WINE_PORT_H
#ifndef USE_WS_PREFIX
#define POLLERR 0x0001
#define POLLHUP 0x0002
#define POLLNVAL 0x0004
#define POLLWRNORM 0x0010
#define POLLWRBAND 0x0020
#define POLLRDNORM 0x0100
#define POLLRDBAND 0x0200
#define POLLPRI 0x0400
#define POLLIN (POLLRDNORM|POLLRDBAND)
#define POLLOUT (POLLWRNORM)
#else
#define WS_POLLERR 0x0001
#define WS_POLLHUP 0x0002
#define WS_POLLNVAL 0x0004
#define WS_POLLWRNORM 0x0010
#define WS_POLLWRBAND 0x0020
#define WS_POLLRDNORM 0x0100
#define WS_POLLRDBAND 0x0200
#define WS_POLLPRI 0x0400
#define WS_POLLIN (WS_POLLRDNORM|WS_POLLRDBAND)
#define WS_POLLOUT (WS_POLLWRNORM)
#endif
#endif
/* Constants for WSAIoctl() */
#ifdef USE_WS_PREFIX
#define WS_IOC_UNIX 0x00000000
...
...
@@ -286,6 +313,13 @@ typedef struct _WSAPROTOCOLCHAIN
#define SECURITY_PROTOCOL_NONE 0x0000
typedef
struct
/*WS(pollfd)*/
{
SOCKET
fd
;
SHORT
events
;
SHORT
revents
;
}
WSAPOLLFD
;
#define WSAPROTOCOL_LEN 255
typedef
struct
_WSAPROTOCOL_INFOA
{
...
...
@@ -689,6 +723,7 @@ INT WINAPI WSALookupServiceNextW(HANDLE,DWORD,LPDWORD,LPWSAQUERYSETW);
int
WINAPI
WSANSPIoctl
(
HANDLE
,
DWORD
,
LPVOID
,
DWORD
,
LPVOID
,
DWORD
,
LPDWORD
,
LPWSACOMPLETION
);
int
WINAPI
WSANtohl
(
SOCKET
,
ULONG
,
ULONG
*
);
int
WINAPI
WSANtohs
(
SOCKET
,
WS
(
u_short
),
WS
(
u_short
)
*
);
int
WINAPI
WSAPoll
(
WSAPOLLFD
*
,
ULONG
,
int
);
INT
WINAPI
WSAProviderConfigChange
(
LPHANDLE
,
LPWSAOVERLAPPED
,
LPWSAOVERLAPPED_COMPLETION_ROUTINE
);
int
WINAPI
WSARecv
(
SOCKET
,
LPWSABUF
,
DWORD
,
LPDWORD
,
LPDWORD
,
LPWSAOVERLAPPED
,
LPWSAOVERLAPPED_COMPLETION_ROUTINE
);
int
WINAPI
WSARecvDisconnect
(
SOCKET
,
LPWSABUF
);
...
...
@@ -763,6 +798,7 @@ typedef int (WINAPI *LPFN_WSANSPIOCTL)(HANDLE,DWORD,LPVOID,DWORD,LPVOID,DWORD,LP
typedef
int
(
WINAPI
*
LPFN_WSANTOHL
)(
SOCKET
,
ULONG
,
ULONG
*
);
typedef
int
(
WINAPI
*
LPFN_WSANTOHS
)(
SOCKET
,
WS
(
u_short
),
WS
(
u_short
)
*
);
typedef
INT
(
WINAPI
*
LPFN_WSAPROVIDERCONFIGCHANGE
)(
LPHANDLE
,
LPWSAOVERLAPPED
,
LPWSAOVERLAPPED_COMPLETION_ROUTINE
);
typedef
int
(
WINAPI
*
LPFN_WSAPOLL
)(
WSAPOLLFD
*
,
ULONG
,
int
);
typedef
int
(
WINAPI
*
LPFN_WSARECV
)(
SOCKET
,
LPWSABUF
,
DWORD
,
LPDWORD
,
LPDWORD
,
LPWSAOVERLAPPED
,
LPWSAOVERLAPPED_COMPLETION_ROUTINE
);
typedef
int
(
WINAPI
*
LPFN_WSARECVDISCONNECT
)(
SOCKET
,
LPWSABUF
);
typedef
int
(
WINAPI
*
LPFN_WSARECVFROM
)(
SOCKET
,
LPWSABUF
,
DWORD
,
LPDWORD
,
LPDWORD
,
struct
WS
(
sockaddr
)
*
,
LPINT
,
LPWSAOVERLAPPED
,
LPWSAOVERLAPPED_COMPLETION_ROUTINE
);
...
...
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