VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/ws2def.h@ 33252

Last change on this file since 33252 was 25949, checked in by vboxsync, 15 years ago

crOpenGL: update to wine 1.1.36 and disable unnecessary fbo state poll

File size: 2.7 KB
Line 
1/*
2 * Copyright (C) 2009 Robert Shearman
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19/*
20 * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
21 * other than GPL or LGPL is available it will apply instead, Sun elects to use only
22 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
23 * a choice of LGPL license versions is made available with the language indicating
24 * that LGPLv2 or any later version may be used, or where a choice of which version
25 * of the LGPL is applied is otherwise unspecified.
26 */
27
28#ifndef _WS2DEF_
29#define _WS2DEF_
30
31/* FIXME: #include <inaddr.h> */
32
33#ifdef USE_WS_PREFIX
34#define WS(x) WS_##x
35#else
36#define WS(x) x
37#endif
38
39#ifndef __CSADDR_DEFINED__
40#define __CSADDR_DEFINED__
41
42typedef struct _SOCKET_ADDRESS {
43 LPSOCKADDR lpSockaddr;
44 INT iSockaddrLength;
45} SOCKET_ADDRESS, *PSOCKET_ADDRESS, *LPSOCKET_ADDRESS;
46
47typedef struct _CSADDR_INFO {
48 SOCKET_ADDRESS LocalAddr;
49 SOCKET_ADDRESS RemoteAddr;
50 INT iSocketType;
51 INT iProtocol;
52} CSADDR_INFO, *PCSADDR_INFO, *LPCSADDR_INFO;
53#endif
54
55#ifdef USE_WS_PREFIX
56#define WS__SS_MAXSIZE 128
57#define WS__SS_ALIGNSIZE (sizeof(__int64))
58#define WS__SS_PAD1SIZE (WS__SS_ALIGNSIZE - sizeof(short))
59#define WS__SS_PAD2SIZE (WS__SS_MAXSIZE - 2 * WS__SS_ALIGNSIZE)
60#else
61#define _SS_MAXSIZE 128
62#define _SS_ALIGNSIZE (sizeof(__int64))
63#define _SS_PAD1SIZE (_SS_ALIGNSIZE - sizeof(short))
64#define _SS_PAD2SIZE (_SS_MAXSIZE - 2 * _SS_ALIGNSIZE)
65#endif
66
67typedef struct WS(sockaddr_storage) {
68 short ss_family;
69 char __ss_pad1[WS(_SS_PAD1SIZE)];
70 __int64 DECLSPEC_ALIGN(8) __ss_align;
71 char __ss_pad2[WS(_SS_PAD2SIZE)];
72} SOCKADDR_STORAGE, *PSOCKADDR_STORAGE, *LPSOCKADDR_STORAGE;
73
74/*socket address list */
75typedef struct _SOCKET_ADDRESS_LIST {
76 INT iAddressCount;
77 SOCKET_ADDRESS Address[1];
78} SOCKET_ADDRESS_LIST, *LPSOCKET_ADDRESS_LIST;
79
80#endif /* _WS2DEF_ */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette