1/*********************************************************************
2 *
3 * Filename:      ircomm_lmp.h
4 * Version:
5 * Description:
6 * Status:        Experimental.
7 * Author:        Dag Brattli <dagb@cs.uit.no>
8 * Created at:    Wed Jun  9 10:06:07 1999
9 * Modified at:   Fri Aug 13 07:32:32 1999
10 * Modified by:   Dag Brattli <dagb@cs.uit.no>
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_LMP_H
32#define IRCOMM_LMP_H
33
34#include <net/irda/ircomm_core.h>
35#include <net/irda/ircomm_event.h>
36
37int ircomm_open_lsap(struct ircomm_cb *self);
38int  ircomm_lmp_connect_request(struct ircomm_cb *self,
39				struct sk_buff *userdata,
40				struct ircomm_info *info);
41int  ircomm_lmp_connect_response(struct ircomm_cb *self, struct sk_buff *skb);
42int  ircomm_lmp_disconnect_request(struct ircomm_cb *self,
43				   struct sk_buff *userdata,
44				   struct ircomm_info *info);
45int  ircomm_lmp_data_request(struct ircomm_cb *self, struct sk_buff *skb,
46			     int clen);
47int  ircomm_lmp_control_request(struct ircomm_cb *self,
48			       struct sk_buff *userdata);
49int  ircomm_lmp_data_indication(void *instance, void *sap,
50				struct sk_buff *skb);
51void ircomm_lmp_connect_confirm(void *instance, void *sap,
52				struct qos_info *qos,
53				__u32 max_sdu_size,
54				__u8 max_header_size,
55				struct sk_buff *skb);
56void ircomm_lmp_connect_indication(void *instance, void *sap,
57				   struct qos_info *qos,
58				   __u32 max_sdu_size,
59				   __u8 max_header_size,
60				   struct sk_buff *skb);
61void ircomm_lmp_disconnect_indication(void *instance, void *sap,
62				      LM_REASON reason,
63				      struct sk_buff *skb);
64
65#endif
66