rfcomm.h revision aca2845d2be375190b3738672b25997516cbb48d
1/**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Bluez header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to Android. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 **************************************************************************** 11 ****************************************************************************/ 12#ifndef __RFCOMM_H 13#define __RFCOMM_H 14 15#ifdef __cplusplus 16#endif 17#include <sys/socket.h> 18#define RFCOMM_DEFAULT_MTU 127 19#define RFCOMM_PSM 3 20#define RFCOMM_CONN_TIMEOUT (HZ * 30) 21#define RFCOMM_DISC_TIMEOUT (HZ * 20) 22#define RFCOMM_CONNINFO 0x02 23#define RFCOMM_LM 0x03 24#define RFCOMM_LM_MASTER 0x0001 25#define RFCOMM_LM_AUTH 0x0002 26#define RFCOMM_LM_ENCRYPT 0x0004 27#define RFCOMM_LM_TRUSTED 0x0008 28#define RFCOMM_LM_RELIABLE 0x0010 29#define RFCOMM_LM_SECURE 0x0020 30#define RFCOMM_MAX_DEV 256 31#define RFCOMMCREATEDEV _IOW('R', 200, int) 32#define RFCOMMRELEASEDEV _IOW('R', 201, int) 33#define RFCOMMGETDEVLIST _IOR('R', 210, int) 34#define RFCOMMGETDEVINFO _IOR('R', 211, int) 35#define RFCOMM_REUSE_DLC 0 36#define RFCOMM_RELEASE_ONHUP 1 37#define RFCOMM_HANGUP_NOW 2 38#define RFCOMM_TTY_ATTACHED 3 39#ifdef __cplusplus 40#endif 41struct sockaddr_rc { 42 sa_family_t rc_family; 43 bdaddr_t rc_bdaddr; 44 uint8_t rc_channel; 45}; 46#endif 47