Imported gammu 0.90.7
[gammu.git] / common / device / irda / irda_unx.h
blobf389115357518888d1a6615c92ad7b553dab51be
2 /* Taken from irda.h available in Linux kernel source */
4 #ifndef IRDA_H
5 #define IRDA_H
7 #include <sys/types.h>
8 #include <sys/socket.h>
10 /* Same as SOL_IRDA for now */
11 #define SOL_IRLMP 266
12 /* Return discovery log */
13 #define IRLMP_ENUMDEVICES 1
14 #define LSAP_ANY 0xff
16 struct sockaddr_irda {
17 /* AF_IRDA */
18 sa_family_t irdaAddressFamily;
19 /* LSAP selector */
20 u_int8_t sir_lsap_sel;
21 /* Device address */
22 u_int32_t irdaDeviceID;
23 /* Usually <service>:IrDA:TinyTP */
24 char irdaServiceName[25];
27 struct irda_device_info {
28 /* Address of local interface */
29 u_int32_t saddr;
30 /* Address of remote device */
31 u_int32_t irdaDeviceID;
32 /* Description */
33 char irdaDeviceName[22];
34 /* Charset used for description */
35 u_int8_t charset;
36 /* Hint bits */
37 u_int8_t hints[2];
40 struct irda_device_list {
41 u_int32_t numDevice;
42 struct irda_device_info Device[1];
45 #endif
47 /* How should editor hadle tabs in this file? Add editor commands here.
48 * vim: noexpandtab sw=8 ts=8 sts=8: