Diffstat (limited to 'gammu/emb/common/device/irda/irda_unx.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | gammu/emb/common/device/irda/irda_unx.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/gammu/emb/common/device/irda/irda_unx.h b/gammu/emb/common/device/irda/irda_unx.h new file mode 100644 index 0000000..8dbcb97 --- a/dev/null +++ b/gammu/emb/common/device/irda/irda_unx.h | |||
@@ -0,0 +1,61 @@ | |||
1 | /* part of irda.h available in Linux kernel source */ | ||
2 | |||
3 | /********************************************************************* | ||
4 | * | ||
5 | * Filename: irda.h | ||
6 | * Version: | ||
7 | * Description: | ||
8 | * Status: Experimental. | ||
9 | * Author: Dag Brattli <dagb@cs.uit.no> | ||
10 | * Created at: Mon Mar 8 14:06:12 1999 | ||
11 | * Modified at: Sat Dec 25 16:06:42 1999 | ||
12 | * Modified by: Dag Brattli <dagb@cs.uit.no> | ||
13 | * | ||
14 | * Copyright (c) 1999 Dag Brattli, All Rights Reserved. | ||
15 | * | ||
16 | * This program is free software; you can redistribute it and/or | ||
17 | * modify it under the terms of the GNU General Public License as | ||
18 | * published by the Free Software Foundation; either version 2 of | ||
19 | * the License, or (at your option) any later version. | ||
20 | * | ||
21 | * Neither Dag Brattli nor University of Tromsų admit liability nor | ||
22 | * provide warranty for any of this software. This material is | ||
23 | * provided "AS-IS" and at no charge. | ||
24 | * | ||
25 | ********************************************************************/ | ||
26 | |||
27 | #ifndef __irda_unx_h | ||
28 | #define __irda_unx_h | ||
29 | |||
30 | #include <sys/types.h> | ||
31 | #include <sys/socket.h> | ||
32 | |||
33 | #define SOL_IRLMP 266 /* Same as SOL_IRDA for now */ | ||
34 | #define IRLMP_ENUMDEVICES 1 /* Return discovery log */ | ||
35 | #define LSAP_ANY 0xff | ||
36 | |||
37 | struct sockaddr_irda { | ||
38 | sa_family_t irdaAddressFamily;/* AF_IRDA */ | ||
39 | u_int8_t sir_lsap_sel; /* LSAP selector */ | ||
40 | u_int32_t irdaDeviceID; /* Device address */ | ||
41 | char irdaServiceName[25]; /* Usually <service>:IrDA:TinyTP */ | ||
42 | }; | ||
43 | |||
44 | struct irda_device_info { | ||
45 | u_int32_t saddr; /* Address of local interface */ | ||
46 | u_int32_t irdaDeviceID; /* Address of remote device */ | ||
47 | char irdaDeviceName[22]; /* Description */ | ||
48 | u_int8_t charset; /* Charset used for description */ | ||
49 | u_int8_t hints[2]; /* Hint bits */ | ||
50 | }; | ||
51 | |||
52 | struct irda_device_list { | ||
53 | u_int32_t numDevice; | ||
54 | struct irda_device_info Device[1]; | ||
55 | }; | ||
56 | |||
57 | #endif | ||
58 | |||
59 | /* How should editor hadle tabs in this file? Add editor commands here. | ||
60 | * vim: noexpandtab sw=8 ts=8 sts=8: | ||
61 | */ | ||