Gammu internals  1.38.0
irda_unx.h
Go to the documentation of this file.
1 /* part of irda.h available in Linux kernel source (www.kernel.org) */
2 
3 /*********************************************************************
4  *
5  * Filename: irda.h
6  * Version:
7  * Description:
8  * Status: Experimental.
9  * Author: Dag Brattli <[email protected]>
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 <[email protected]>
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 
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 
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  */
u_int8_t charset
Definition: irda_unx.h:48
u_int8_t sir_lsap_sel
Definition: irda_unx.h:39
sa_family_t irdaAddressFamily
Definition: irda_unx.h:38
u_int32_t irdaDeviceID
Definition: irda_unx.h:46
u_int32_t saddr
Definition: irda_unx.h:45
u_int32_t numDevice
Definition: irda_unx.h:53
char irdaServiceName[25]
Definition: irda_unx.h:41
u_int32_t irdaDeviceID
Definition: irda_unx.h:40