1 | /*
|
---|
2 | * Copyright 2009 Juan Lang
|
---|
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 | * Oracle 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, Oracle 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 AF_IRDA_H
|
---|
29 | #define AF_IRDA_H
|
---|
30 |
|
---|
31 | typedef struct _IRDA_DEVICE_INFO
|
---|
32 | {
|
---|
33 | UCHAR irdaDeviceID[4];
|
---|
34 | char irdaDeviceName[22];
|
---|
35 | UCHAR irdaDeviceHints1;
|
---|
36 | UCHAR irdaDeviceHints2;
|
---|
37 | UCHAR irdaCharSet;
|
---|
38 | } IRDA_DEVICE_INFO, *PIRDA_DEVICE_INFO;
|
---|
39 |
|
---|
40 | typedef struct _DEVICELIST
|
---|
41 | {
|
---|
42 | ULONG numDevice;
|
---|
43 | IRDA_DEVICE_INFO Device[1];
|
---|
44 | } DEVICELIST, *PDEVICELIST;
|
---|
45 |
|
---|
46 | typedef struct _SOCKADDR_IRDA
|
---|
47 | {
|
---|
48 | USHORT irdaAddressFamily;
|
---|
49 | UCHAR irdaDeviceID[4];
|
---|
50 | char irdaServiceName[25];
|
---|
51 | } SOCKADDR_IRDA, *PSOCKADDR_IRDA, *LPSOCKADDR_IRDA;
|
---|
52 |
|
---|
53 | #ifdef USE_WS_PREFIX
|
---|
54 |
|
---|
55 | /* Socket levels and options */
|
---|
56 | #define WS_SOL_IRLMP 0xff
|
---|
57 |
|
---|
58 | #define WS_IRLMP_ENUMDEVICES ((ULONG)0x10)
|
---|
59 | #define WS_IRLMP_IAS_SET ((ULONG)0x11)
|
---|
60 | #define WS_IRLMP_IAS_QUERY ((ULONG)0x12)
|
---|
61 | #define WS_IRLMP_SEND_PDU_LEN ((ULONG)0x13)
|
---|
62 | #define WS_IRLMP_EXCLUSIVE_MODE ((ULONG)0x14)
|
---|
63 | #define WS_IRLMP_IRLPT_MODE ((ULONG)0x15)
|
---|
64 | #define WS_IRLMP_9WIRE_MODE ((ULONG)0x16)
|
---|
65 | #define WS_IRLMP_TINYTP_MODE ((ULONG)0x17)
|
---|
66 | #define WS_IRLMP_PARAMETERS ((ULONG)0x18)
|
---|
67 | #define WS_IRLMP_DISCOVER_MODE ((ULONG)0x19)
|
---|
68 | #define WS_IRLMP_SHARP_MODE ((ULONG)0x20)
|
---|
69 |
|
---|
70 | #define WS_IAS_MAX_CLASSNAME 64
|
---|
71 | #define WS_IAS_MAX_ATTRIBNAME 256
|
---|
72 |
|
---|
73 | #else
|
---|
74 |
|
---|
75 | /* Socket levels and options */
|
---|
76 | #define SOL_IRLMP 0xff
|
---|
77 |
|
---|
78 | #define IRLMP_ENUMDEVICES ((ULONG)0x10)
|
---|
79 | #define IRLMP_IAS_SET ((ULONG)0x11)
|
---|
80 | #define IRLMP_IAS_QUERY ((ULONG)0x12)
|
---|
81 | #define IRLMP_SEND_PDU_LEN ((ULONG)0x13)
|
---|
82 | #define IRLMP_EXCLUSIVE_MODE ((ULONG)0x14)
|
---|
83 | #define IRLMP_IRLPT_MODE ((ULONG)0x15)
|
---|
84 | #define IRLMP_9WIRE_MODE ((ULONG)0x16)
|
---|
85 | #define IRLMP_TINYTP_MODE ((ULONG)0x17)
|
---|
86 | #define IRLMP_PARAMETERS ((ULONG)0x18)
|
---|
87 | #define IRLMP_DISCOVER_MODE ((ULONG)0x19)
|
---|
88 | #define IRLMP_SHARP_MODE ((ULONG)0x20)
|
---|
89 |
|
---|
90 | #define IAS_MAX_CLASSNAME 64
|
---|
91 | #define IAS_MAX_ATTRIBNAME 256
|
---|
92 |
|
---|
93 | #endif
|
---|
94 |
|
---|
95 | #define IAS_MAX_OCTET_STRING 1024
|
---|
96 | #define IAS_MAX_USER_STRING 256
|
---|
97 |
|
---|
98 | #define LmCharSetASCII 0x00
|
---|
99 | #define LmCharSetISO_8859_1 0x01
|
---|
100 | #define LmCharSetISO_8859_2 0x02
|
---|
101 | #define LmCharSetISO_8859_3 0x03
|
---|
102 | #define LmCharSetISO_8859_4 0x04
|
---|
103 | #define LmCharSetISO_8859_5 0x05
|
---|
104 | #define LmCharSetISO_8859_6 0x06
|
---|
105 | #define LmCharSetISO_8859_7 0x07
|
---|
106 | #define LmCharSetISO_8859_8 0x08
|
---|
107 | #define LmCharSetISO_8859_9 0x09
|
---|
108 | #define LmCharSetUNICODE 0xff
|
---|
109 |
|
---|
110 | #endif /* AF_IRDA_H */
|
---|