summaryrefslogtreecommitdiffstats
path: root/include/rfcomm.h
diff options
context:
space:
mode:
authorMax Krasnyansky <maxk@qualcomm.com>2002-10-01 23:26:55 +0000
committerMax Krasnyansky <maxk@qualcomm.com>2002-10-01 23:26:55 +0000
commit2b6704ff38275b2bb881b349248513f0ae3c1e60 (patch)
tree9993b36be502d5e33a49429b711f355414e65c6e /include/rfcomm.h
parentd16c23005aaece1792be1f6377655758fe6fc661 (diff)
TTY ioct API changes
Diffstat (limited to 'include/rfcomm.h')
-rw-r--r--include/rfcomm.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/include/rfcomm.h b/include/rfcomm.h
index 2f26b8b8..cfad4feb 100644
--- a/include/rfcomm.h
+++ b/include/rfcomm.h
@@ -49,22 +49,21 @@ struct sockaddr_rc {
/* RFCOMM TTY support */
#define RFCOMM_MAX_DEV 256
-#define RFCOMMSETMODE _IOW('R', 200, int)
-#define RFCOMMCREATEDEV _IOW('R', 201, int)
-#define RFCOMMRELEASEDEV _IOW('R', 202, int)
+#define RFCOMMCREATEDEV _IOW('R', 200, int)
+#define RFCOMMRELEASEDEV _IOW('R', 201, int)
#define RFCOMMGETDEVLIST _IOR('R', 210, int)
#define RFCOMMGETDEVINFO _IOR('R', 211, int)
-struct rfcomm_dev_create_req {
+struct rfcomm_dev_req {
int16_t dev_id;
+ uint32_t flags;
bdaddr_t src;
bdaddr_t dst;
uint8_t channel;
};
-
-struct rfcomm_dev_release_req {
- int16_t dev_id;
-};
+#define RFCOMM_REUSE_DLC 0
+#define RFCOMM_RELEASE_ONHUP 1
+#define RFCOMM_HANGUP_NOW 2
struct rfcomm_dev_info {
int16_t id;