Blame lib/cmtp.h

Packit 34410b
/*
Packit 34410b
 *
Packit 34410b
 *  BlueZ - Bluetooth protocol stack for Linux
Packit 34410b
 *
Packit 34410b
 *  Copyright (C) 2002-2010  Marcel Holtmann <marcel@holtmann.org>
Packit 34410b
 *
Packit 34410b
 *
Packit 34410b
 *  This program is free software; you can redistribute it and/or modify
Packit 34410b
 *  it under the terms of the GNU General Public License as published by
Packit 34410b
 *  the Free Software Foundation; either version 2 of the License, or
Packit 34410b
 *  (at your option) any later version.
Packit 34410b
 *
Packit 34410b
 *  This program is distributed in the hope that it will be useful,
Packit 34410b
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 34410b
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 34410b
 *  GNU General Public License for more details.
Packit 34410b
 *
Packit 34410b
 *  You should have received a copy of the GNU General Public License
Packit 34410b
 *  along with this program; if not, write to the Free Software
Packit 34410b
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
Packit 34410b
 *
Packit 34410b
 */
Packit 34410b
Packit 34410b
#ifndef __CMTP_H
Packit 34410b
#define __CMTP_H
Packit 34410b
Packit 34410b
#ifdef __cplusplus
Packit 34410b
extern "C" {
Packit 34410b
#endif
Packit 34410b
Packit 34410b
/* CMTP defaults */
Packit 34410b
#define CMTP_MINIMUM_MTU 152
Packit 34410b
#define CMTP_DEFAULT_MTU 672
Packit 34410b
Packit 34410b
/* CMTP ioctl defines */
Packit 34410b
#define CMTPCONNADD	_IOW('C', 200, int)
Packit 34410b
#define CMTPCONNDEL	_IOW('C', 201, int)
Packit 34410b
#define CMTPGETCONNLIST	_IOR('C', 210, int)
Packit 34410b
#define CMTPGETCONNINFO	_IOR('C', 211, int)
Packit 34410b
Packit 34410b
#define CMTP_LOOPBACK	0
Packit 34410b
Packit 34410b
struct cmtp_connadd_req {
Packit 34410b
	int sock;	/* Connected socket */
Packit 34410b
	uint32_t flags;
Packit 34410b
};
Packit 34410b
Packit 34410b
struct cmtp_conndel_req {
Packit 34410b
	bdaddr_t bdaddr;
Packit 34410b
	uint32_t flags;
Packit 34410b
};
Packit 34410b
Packit 34410b
struct cmtp_conninfo {
Packit 34410b
	bdaddr_t bdaddr;
Packit 34410b
	uint32_t flags;
Packit 34410b
	uint16_t state;
Packit 34410b
	int      num;
Packit 34410b
};
Packit 34410b
Packit 34410b
struct cmtp_connlist_req {
Packit 34410b
	uint32_t cnum;
Packit 34410b
	struct cmtp_conninfo *ci;
Packit 34410b
};
Packit 34410b
Packit 34410b
#ifdef __cplusplus
Packit 34410b
}
Packit 34410b
#endif
Packit 34410b
Packit 34410b
#endif /* __CMTP_H */