ircomm_ttp.h
上传用户:lgb322
上传日期:2013-02-24
资源大小:30529k
文件大小:3k
源码类别:

嵌入式Linux

开发平台:

Unix_Linux

  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. #ifndef IRCOMM_TTP_H
  31. #define IRCOMM_TTP_H
  32. #include <net/irda/ircomm_core.h>
  33. #include <net/irda/ircomm_event.h>
  34. int  ircomm_open_tsap(struct ircomm_cb *self);
  35. int  ircomm_ttp_connect_request(struct ircomm_cb *self, 
  36. struct sk_buff *userdata, 
  37. struct ircomm_info *info);
  38. int  ircomm_ttp_connect_response(struct ircomm_cb *self, struct sk_buff *skb);
  39. int  ircomm_ttp_disconnect_request(struct ircomm_cb *self, 
  40.    struct sk_buff *userdata, 
  41.    struct ircomm_info *info);
  42. int  ircomm_ttp_data_request(struct ircomm_cb *self, struct sk_buff *skb, 
  43.      int clen);
  44. int  ircomm_ttp_control_request(struct ircomm_cb *self, 
  45.        struct sk_buff *userdata);
  46. int  ircomm_ttp_data_indication(void *instance, void *sap,
  47. struct sk_buff *skb);
  48. void ircomm_ttp_connect_confirm(void *instance, void *sap,
  49. struct qos_info *qos, 
  50. __u32 max_sdu_size, 
  51. __u8 max_header_size,
  52. struct sk_buff *skb);
  53. void ircomm_ttp_connect_indication(void *instance, void *sap,
  54.    struct qos_info *qos,
  55.    __u32 max_sdu_size,
  56.    __u8 max_header_size,
  57.    struct sk_buff *skb);
  58. void ircomm_ttp_disconnect_indication(void *instance, void *sap, 
  59.       LM_REASON reason,
  60.       struct sk_buff *skb);
  61. void ircomm_ttp_flow_indication(void *instance, void *sap, LOCAL_FLOW cmd);
  62. #endif