winex11: Fix a WM_DROPFILES memory ownership ambiguity.
[wine.git] / include / af_irda.h
blob3be5b39af0240ef92fdcacfd26ca9183b20e4714
1 /*
2 * Copyright 2009 Juan Lang
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.
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.
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
18 #ifndef AF_IRDA_H
19 #define AF_IRDA_H
21 typedef struct _IRDA_DEVICE_INFO
23 UCHAR irdaDeviceID[4];
24 char irdaDeviceName[22];
25 UCHAR irdaDeviceHints1;
26 UCHAR irdaDeviceHints2;
27 UCHAR irdaCharSet;
28 } IRDA_DEVICE_INFO, *PIRDA_DEVICE_INFO;
30 typedef struct _DEVICELIST
32 ULONG numDevice;
33 IRDA_DEVICE_INFO Device[1];
34 } DEVICELIST, *PDEVICELIST;
36 typedef struct _SOCKADDR_IRDA
38 USHORT irdaAddressFamily;
39 UCHAR irdaDeviceID[4];
40 char irdaServiceName[25];
41 } SOCKADDR_IRDA, *PSOCKADDR_IRDA, *LPSOCKADDR_IRDA;
43 #ifdef USE_WS_PREFIX
45 /* Socket levels and options */
46 #define WS_SOL_IRLMP 0xff
48 #define WS_IRLMP_ENUMDEVICES ((ULONG)0x10)
49 #define WS_IRLMP_IAS_SET ((ULONG)0x11)
50 #define WS_IRLMP_IAS_QUERY ((ULONG)0x12)
51 #define WS_IRLMP_SEND_PDU_LEN ((ULONG)0x13)
52 #define WS_IRLMP_EXCLUSIVE_MODE ((ULONG)0x14)
53 #define WS_IRLMP_IRLPT_MODE ((ULONG)0x15)
54 #define WS_IRLMP_9WIRE_MODE ((ULONG)0x16)
55 #define WS_IRLMP_TINYTP_MODE ((ULONG)0x17)
56 #define WS_IRLMP_PARAMETERS ((ULONG)0x18)
57 #define WS_IRLMP_DISCOVER_MODE ((ULONG)0x19)
58 #define WS_IRLMP_SHARP_MODE ((ULONG)0x20)
60 #define WS_IAS_MAX_CLASSNAME 64
61 #define WS_IAS_MAX_ATTRIBNAME 256
63 #else
65 /* Socket levels and options */
66 #define SOL_IRLMP 0xff
68 #define IRLMP_ENUMDEVICES ((ULONG)0x10)
69 #define IRLMP_IAS_SET ((ULONG)0x11)
70 #define IRLMP_IAS_QUERY ((ULONG)0x12)
71 #define IRLMP_SEND_PDU_LEN ((ULONG)0x13)
72 #define IRLMP_EXCLUSIVE_MODE ((ULONG)0x14)
73 #define IRLMP_IRLPT_MODE ((ULONG)0x15)
74 #define IRLMP_9WIRE_MODE ((ULONG)0x16)
75 #define IRLMP_TINYTP_MODE ((ULONG)0x17)
76 #define IRLMP_PARAMETERS ((ULONG)0x18)
77 #define IRLMP_DISCOVER_MODE ((ULONG)0x19)
78 #define IRLMP_SHARP_MODE ((ULONG)0x20)
80 #define IAS_MAX_CLASSNAME 64
81 #define IAS_MAX_ATTRIBNAME 256
83 #endif
85 #define IAS_MAX_OCTET_STRING 1024
86 #define IAS_MAX_USER_STRING 256
88 #define LmCharSetASCII 0x00
89 #define LmCharSetISO_8859_1 0x01
90 #define LmCharSetISO_8859_2 0x02
91 #define LmCharSetISO_8859_3 0x03
92 #define LmCharSetISO_8859_4 0x04
93 #define LmCharSetISO_8859_5 0x05
94 #define LmCharSetISO_8859_6 0x06
95 #define LmCharSetISO_8859_7 0x07
96 #define LmCharSetISO_8859_8 0x08
97 #define LmCharSetISO_8859_9 0x09
98 #define LmCharSetUNICODE 0xff
100 #endif /* AF_IRDA_H */