summaryrefslogtreecommitdiffstats
path: root/include/net/irda/irlan_cli.h
blob: fb677af20cd349711ff29a974aecf9c88b485dce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*********************************************************************
 *                
 * Filename:      client.h
 * Version:       0.3
 * Description:   IrDA LAN access layer
 * Status:        Experimental.
 * Author:        Dag Brattli <dagb@cs.uit.no>
 * Created at:    Sun Aug 31 20:14:37 1997
 * Modified at:   Mon Oct 19 12:37:20 1998
 * Modified by:   Dag Brattli <dagb@cs.uit.no>
 * 
 *     Copyright (c) 1998 Dag Brattli <dagb@cs.uit.no>, All Rights Reserved.
 *     
 *     This program is free software; you can redistribute it and/or 
 *     modify it under the terms of the GNU General Public License as 
 *     published by the Free Software Foundation; either version 2 of 
 *     the License, or (at your option) any later version.
 *
 *     Neither Dag Brattli nor University of Tromsø admit liability nor
 *     provide warranty for any of this software. This material is 
 *     provided "AS-IS" and at no charge.
 *
 ********************************************************************/

#ifndef IRLAN_CLIENT_H
#define IRLAN_CLIENT_H

#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/skbuff.h>
#include <linux/netdevice.h>

int  irlan_client_init(void);
void irlan_client_cleanup(void);

void irlan_discovery_indication( DISCOVERY*);
void irlan_client_disconnect_indication( void *instance, void *sap, 
					 LM_REASON reason, struct sk_buff *);

void irlan_client_data_indication( void *instance, void *sap, 
				   struct sk_buff *skb);

void irlan_client_control_data_indication( void *instance, void *sap, 
					   struct sk_buff *skb);

void irlan_client_connect_confirm( void *instance, void *sap, 
				   struct qos_info *qos, int max_sdu_size,
				   struct sk_buff *);
void irlan_client_connect_indication( void *instance, void *sap, 
				      struct sk_buff *);
void irlan_client_connect_response( void *instance, void *sap, 
				    int max_sdu_size, struct sk_buff *skb);

void irlan_client_open_tsaps( struct irlan_cb *self);

void irlan_client_extract_params( struct irlan_cb *self, 
				  struct sk_buff *skb);
void check_response_param( struct irlan_cb *self, char *param, 
			   char *value, int val_len);
void handle_request( struct irlan_cb *self);
void irlan_client_register_server(void);
void irlan_client_get_value_confirm( __u16 obj_id, struct ias_value *value, 
				     void *priv);

#endif