Alexandre Julliard | 0799c1a | 2002-03-09 23:29:33 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2001 Stefan Leichter |
| 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
Stefan Leichter | 73db900 | 2001-01-12 23:15:54 +0000 | [diff] [blame] | 17 | */ |
| 18 | |
Francois Gouget | 76f6ffa | 2001-10-08 20:36:03 +0000 | [diff] [blame] | 19 | #ifndef _WINE_WSIPX_ |
| 20 | #define _WINE_WSIPX_ |
Stefan Leichter | 73db900 | 2001-01-12 23:15:54 +0000 | [diff] [blame] | 21 | |
Francois Gouget | 2720231 | 2001-11-14 21:26:23 +0000 | [diff] [blame] | 22 | #ifdef USE_WS_PREFIX |
| 23 | # define WS(x) WS_##x |
| 24 | #else |
| 25 | # define WS(x) x |
| 26 | #endif |
Stefan Leichter | 73db900 | 2001-01-12 23:15:54 +0000 | [diff] [blame] | 27 | |
Francois Gouget | 2720231 | 2001-11-14 21:26:23 +0000 | [diff] [blame] | 28 | typedef struct WS_sockaddr_ipx |
Francois Gouget | 76f6ffa | 2001-10-08 20:36:03 +0000 | [diff] [blame] | 29 | { |
| 30 | short sa_family; |
| 31 | char sa_netnum[4]; |
| 32 | char sa_nodenum[6]; |
| 33 | unsigned short sa_socket; |
| 34 | } SOCKADDR_IPX, *PSOCKADDR_IPX, *LPSOCKADDR_IPX; |
| 35 | |
Stefan Leichter | 73db900 | 2001-01-12 23:15:54 +0000 | [diff] [blame] | 36 | /* |
| 37 | * constants |
| 38 | */ |
Francois Gouget | 2720231 | 2001-11-14 21:26:23 +0000 | [diff] [blame] | 39 | #define NSPROTO_IPX 1000 |
| 40 | #define NSPROTO_SPX 1256 |
| 41 | #define NSPROTO_SPXII 1257 |
Stefan Leichter | 73db900 | 2001-01-12 23:15:54 +0000 | [diff] [blame] | 42 | |
Francois Gouget | 2720231 | 2001-11-14 21:26:23 +0000 | [diff] [blame] | 43 | #undef WS |
Francois Gouget | 76f6ffa | 2001-10-08 20:36:03 +0000 | [diff] [blame] | 44 | #endif /* _WINE_WSIPX_ */ |