1 /********************************************************************* 2 * 3 * Filename: ircomm_ttp.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:22 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_TTP_H 32 #define IRCOMM_TTP_H 33 34 #include <net/irda/ircomm_core.h> 35 #include <net/irda/ircomm_event.h> 36 37 int ircomm_open_tsap(struct ircomm_cb *self); 38 int ircomm_ttp_connect_request(struct ircomm_cb *self, 39 struct sk_buff *userdata, 40 struct ircomm_info *info); 41 int ircomm_ttp_connect_response(struct ircomm_cb *self, struct sk_buff *skb); 42 int ircomm_ttp_disconnect_request(struct ircomm_cb *self, 43 struct sk_buff *userdata, 44 struct ircomm_info *info); 45 int ircomm_ttp_data_request(struct ircomm_cb *self, struct sk_buff *skb, 46 int clen); 47 int ircomm_ttp_control_request(struct ircomm_cb *self, 48 struct sk_buff *userdata); 49 int ircomm_ttp_data_indication(void *instance, void *sap, 50 struct sk_buff *skb); 51 void ircomm_ttp_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); 56 void ircomm_ttp_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); 61 void ircomm_ttp_disconnect_indication(void *instance, void *sap, 62 LM_REASON reason, 63 struct sk_buff *skb); 64 void ircomm_ttp_flow_indication(void *instance, void *sap, LOCAL_FLOW cmd); 65 66 #endif 67 68 69 70 71