Home | History | Annotate | Download | only in bluetooth
      1 /*
      2  *
      3  *  BlueZ - Bluetooth protocol stack for Linux
      4  *
      5  *  Copyright (C) 2002-2010  Marcel Holtmann <marcel (at) holtmann.org>
      6  *
      7  *
      8  *  This program is free software; you can redistribute it and/or modify
      9  *  it under the terms of the GNU General Public License as published by
     10  *  the Free Software Foundation; either version 2 of the License, or
     11  *  (at your option) any later version.
     12  *
     13  *  This program is distributed in the hope that it will be useful,
     14  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
     15  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     16  *  GNU General Public License for more details.
     17  *
     18  *  You should have received a copy of the GNU General Public License
     19  *  along with this program; if not, write to the Free Software
     20  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
     21  *
     22  */
     23 
     24 #ifndef __CMTP_H
     25 #define __CMTP_H
     26 
     27 #ifdef __cplusplus
     28 extern "C" {
     29 #endif
     30 
     31 /* CMTP defaults */
     32 #define CMTP_MINIMUM_MTU 152
     33 #define CMTP_DEFAULT_MTU 672
     34 
     35 /* CMTP ioctl defines */
     36 #define CMTPCONNADD	_IOW('C', 200, int)
     37 #define CMTPCONNDEL	_IOW('C', 201, int)
     38 #define CMTPGETCONNLIST	_IOR('C', 210, int)
     39 #define CMTPGETCONNINFO	_IOR('C', 211, int)
     40 
     41 #define CMTP_LOOPBACK	0
     42 
     43 struct cmtp_connadd_req {
     44 	int sock;	/* Connected socket */
     45 	uint32_t flags;
     46 };
     47 
     48 struct cmtp_conndel_req {
     49 	bdaddr_t bdaddr;
     50 	uint32_t flags;
     51 };
     52 
     53 struct cmtp_conninfo {
     54 	bdaddr_t bdaddr;
     55 	uint32_t flags;
     56 	uint16_t state;
     57 	int      num;
     58 };
     59 
     60 struct cmtp_connlist_req {
     61 	uint32_t cnum;
     62 	struct cmtp_conninfo *ci;
     63 };
     64 
     65 #ifdef __cplusplus
     66 }
     67 #endif
     68 
     69 #endif /* __CMTP_H */
     70