Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ircomm_event.h
Go to the documentation of this file.
1 /*********************************************************************
2  *
3  * Filename: ircomm_event.h
4  * Version:
5  * Description:
6  * Status: Experimental.
7  * Author: Dag Brattli <[email protected]>
8  * Created at: Sun Jun 6 23:51:13 1999
9  * Modified at: Thu Jun 10 08:36:25 1999
10  * Modified by: Dag Brattli <[email protected]>
11  *
12  * Copyright (c) 1999 Dag Brattli, All Rights Reserved.
13  *
14  * This program is free software; you can redistribute it and/or
15  * modify it under the terms of the GNU General Public License as
16  * published by the Free Software Foundation; either version 2 of
17  * the License, or (at your option) any later version.
18  *
19  * This program is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22  * GNU General Public License for more details.
23  *
24  * You should have received a copy of the GNU General Public License
25  * along with this program; if not, write to the Free Software
26  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
27  * MA 02111-1307 USA
28  *
29  ********************************************************************/
30 
31 #ifndef IRCOMM_EVENT_H
32 #define IRCOMM_EVENT_H
33 
34 #include <net/irda/irmod.h>
35 
36 typedef enum {
41 } IRCOMM_STATE;
42 
43 /* IrCOMM Events */
44 typedef enum {
51 
55 
61 } IRCOMM_EVENT;
62 
63 /*
64  * Used for passing information through the state-machine
65  */
66 struct ircomm_info {
67  __u32 saddr; /* Source device address */
68  __u32 daddr; /* Destination device address */
70  LM_REASON reason; /* Reason for disconnect */
73 
74  struct qos_info *qos;
75 };
76 
77 extern const char *const ircomm_state[];
78 
79 struct ircomm_cb; /* Forward decl. */
80 
82  struct sk_buff *skb, struct ircomm_info *info);
83 void ircomm_next_state(struct ircomm_cb *self, IRCOMM_STATE state);
84 
85 #endif