rfcomm.h revision 40d3651f0ad7f3e25950ff7124547438bef57be7
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 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19#ifndef __RFCOMM_H 20#define __RFCOMM_H 21#ifdef __cplusplus 22#endif 23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24#include <sys/socket.h> 25#define RFCOMM_DEFAULT_MTU 127 26#define RFCOMM_PSM 3 27struct sockaddr_rc { 28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 sa_family_t rc_family; 30 bdaddr_t rc_bdaddr; 31 uint8_t rc_channel; 32}; 33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34#define RFCOMM_CONNINFO 0x02 35struct rfcomm_conninfo { 36 uint16_t hci_handle; 37 uint8_t dev_class[3]; 38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39}; 40#define RFCOMM_LM 0x03 41#define RFCOMM_LM_MASTER 0x0001 42#define RFCOMM_LM_AUTH 0x0002 43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44#define RFCOMM_LM_ENCRYPT 0x0004 45#define RFCOMM_LM_TRUSTED 0x0008 46#define RFCOMM_LM_RELIABLE 0x0010 47#define RFCOMM_LM_SECURE 0x0020 48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49#define RFCOMM_MAX_DEV 256 50#define RFCOMMCREATEDEV _IOW('R', 200, int) 51#define RFCOMMRELEASEDEV _IOW('R', 201, int) 52#define RFCOMMGETDEVLIST _IOR('R', 210, int) 53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54#define RFCOMMGETDEVINFO _IOR('R', 211, int) 55struct rfcomm_dev_req { 56 int16_t dev_id; 57 uint32_t flags; 58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 bdaddr_t src; 60 bdaddr_t dst; 61 uint8_t channel; 62}; 63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64#define RFCOMM_REUSE_DLC 0 65#define RFCOMM_RELEASE_ONHUP 1 66#define RFCOMM_HANGUP_NOW 2 67#define RFCOMM_TTY_ATTACHED 3 68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69struct rfcomm_dev_info { 70 int16_t id; 71 uint32_t flags; 72 uint16_t state; 73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74 bdaddr_t src; 75 bdaddr_t dst; 76 uint8_t channel; 77}; 78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79struct rfcomm_dev_list_req { 80 uint16_t dev_num; 81 struct rfcomm_dev_info dev_info[0]; 82}; 83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84#ifdef __cplusplus 85#endif 86#endif 87 88