Blame lib/sco.h

Packit 34410b
/*
Packit 34410b
 *
Packit 34410b
 *  BlueZ - Bluetooth protocol stack for Linux
Packit 34410b
 *
Packit 34410b
 *  Copyright (C) 2002-2003  Maxim Krasnyansky <maxk@qualcomm.com>
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 __SCO_H
Packit 34410b
#define __SCO_H
Packit 34410b
Packit 34410b
#ifdef __cplusplus
Packit 34410b
extern "C" {
Packit 34410b
#endif
Packit 34410b
Packit 34410b
/* SCO defaults */
Packit 34410b
#define SCO_DEFAULT_MTU		500
Packit 34410b
#define SCO_DEFAULT_FLUSH_TO	0xFFFF
Packit 34410b
Packit 34410b
#define SCO_CONN_TIMEOUT	(HZ * 40)
Packit 34410b
#define SCO_DISCONN_TIMEOUT	(HZ * 2)
Packit 34410b
#define SCO_CONN_IDLE_TIMEOUT	(HZ * 60)
Packit 34410b
Packit 34410b
/* SCO socket address */
Packit 34410b
struct sockaddr_sco {
Packit 34410b
	sa_family_t	sco_family;
Packit 34410b
	bdaddr_t	sco_bdaddr;
Packit 34410b
};
Packit 34410b
Packit 34410b
/* set/get sockopt defines */
Packit 34410b
#define SCO_OPTIONS	0x01
Packit 34410b
struct sco_options {
Packit 34410b
	uint16_t	mtu;
Packit 34410b
};
Packit 34410b
Packit 34410b
#define SCO_CONNINFO	0x02
Packit 34410b
struct sco_conninfo {
Packit 34410b
	uint16_t	hci_handle;
Packit 34410b
	uint8_t		dev_class[3];
Packit 34410b
};
Packit 34410b
Packit 34410b
#ifdef __cplusplus
Packit 34410b
}
Packit 34410b
#endif
Packit 34410b
Packit 34410b
#endif /* __SCO_H */