Path: blob/next/external/cache/sources/hcitools/lib/bluetooth/cmtp.h
18125 views
/*1*2* BlueZ - Bluetooth protocol stack for Linux3*4* Copyright (C) 2002-2010 Marcel Holtmann <[email protected]>5*6*7* This program is free software; you can redistribute it and/or modify8* it under the terms of the GNU General Public License as published by9* the Free Software Foundation; either version 2 of the License, or10* (at your option) any later version.11*12* This program is distributed in the hope that it will be useful,13* but WITHOUT ANY WARRANTY; without even the implied warranty of14* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the15* GNU General Public License for more details.16*17* You should have received a copy of the GNU General Public License18* along with this program; if not, write to the Free Software19* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA20*21*/2223#ifndef __CMTP_H24#define __CMTP_H2526#ifdef __cplusplus27extern "C" {28#endif2930/* CMTP defaults */31#define CMTP_MINIMUM_MTU 15232#define CMTP_DEFAULT_MTU 6723334/* CMTP ioctl defines */35#define CMTPCONNADD _IOW('C', 200, int)36#define CMTPCONNDEL _IOW('C', 201, int)37#define CMTPGETCONNLIST _IOR('C', 210, int)38#define CMTPGETCONNINFO _IOR('C', 211, int)3940#define CMTP_LOOPBACK 04142struct cmtp_connadd_req {43int sock; /* Connected socket */44uint32_t flags;45};4647struct cmtp_conndel_req {48bdaddr_t bdaddr;49uint32_t flags;50};5152struct cmtp_conninfo {53bdaddr_t bdaddr;54uint32_t flags;55uint16_t state;56int num;57};5859struct cmtp_connlist_req {60uint32_t cnum;61struct cmtp_conninfo *ci;62};6364#ifdef __cplusplus65}66#endif6768#endif /* __CMTP_H */697071