]> bbs.cooldavid.org Git - net-next-2.6.git/blame - include/net/irda/irlan_event.h
net/irda: Use static const char * const where possible
[net-next-2.6.git] / include / net / irda / irlan_event.h
CommitLineData
1da177e4
LT
1/*********************************************************************
2 *
3 * Filename: irlan_event.h
4 * Version:
5 * Description: LAN access
6 * Status: Experimental.
7 * Author: Dag Brattli <dagb@cs.uit.no>
8 * Created at: Sun Aug 31 20:14:37 1997
9 * Modified at: Tue Feb 2 09:45:17 1999
10 * Modified by: Dag Brattli <dagb@cs.uit.no>
11 *
12 * Copyright (c) 1997 Dag Brattli <dagb@cs.uit.no>, 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 *
121e70b6 19 * Neither Dag Brattli nor University of Tromsø admit liability nor
1da177e4
LT
20 * provide warranty for any of this software. This material is
21 * provided "AS-IS" and at no charge.
22 *
23 ********************************************************************/
24
25#ifndef IRLAN_EVENT_H
26#define IRLAN_EVENT_H
27
28#include <linux/kernel.h>
29#include <linux/skbuff.h>
30
31#include <net/irda/irlan_common.h>
32
33typedef enum {
34 IRLAN_IDLE,
35 IRLAN_QUERY,
36 IRLAN_CONN,
37 IRLAN_INFO,
38 IRLAN_MEDIA,
39 IRLAN_OPEN,
40 IRLAN_WAIT,
41 IRLAN_ARB,
42 IRLAN_DATA,
43 IRLAN_CLOSE,
44 IRLAN_SYNC
45} IRLAN_STATE;
46
47typedef enum {
48 IRLAN_DISCOVERY_INDICATION,
49 IRLAN_IAS_PROVIDER_AVAIL,
50 IRLAN_IAS_PROVIDER_NOT_AVAIL,
51 IRLAN_LAP_DISCONNECT,
52 IRLAN_LMP_DISCONNECT,
53 IRLAN_CONNECT_COMPLETE,
54 IRLAN_DATA_INDICATION,
55 IRLAN_DATA_CONNECT_INDICATION,
56 IRLAN_RETRY_CONNECT,
57
58 IRLAN_CONNECT_INDICATION,
59 IRLAN_GET_INFO_CMD,
60 IRLAN_GET_MEDIA_CMD,
61 IRLAN_OPEN_DATA_CMD,
62 IRLAN_FILTER_CONFIG_CMD,
63
64 IRLAN_CHECK_CON_ARB,
65 IRLAN_PROVIDER_SIGNAL,
66
67 IRLAN_WATCHDOG_TIMEOUT,
68} IRLAN_EVENT;
69
55b1804c 70extern const char * const irlan_state[];
1da177e4
LT
71
72void irlan_do_client_event(struct irlan_cb *self, IRLAN_EVENT event,
73 struct sk_buff *skb);
74
75void irlan_do_provider_event(struct irlan_cb *self, IRLAN_EVENT event,
76 struct sk_buff *skb);
77
78void irlan_next_client_state(struct irlan_cb *self, IRLAN_STATE state);
79void irlan_next_provider_state(struct irlan_cb *self, IRLAN_STATE state);
80
81#endif