summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2004-12-25 17:35:34 +0000
committerMarcel Holtmann <marcel@holtmann.org>2004-12-25 17:35:34 +0000
commit8661484ddc5d79689c6a3d1dd41102ca9e89a8cf (patch)
treee0a88507500e44a0ecfe1f574c746dd598753dc5 /include
parent43e9e65bd31bb549babf77b33587243b1824b6c5 (diff)
Update connection information definitions
Diffstat (limited to 'include')
-rw-r--r--include/l2cap.h12
-rw-r--r--include/rfcomm.h6
-rw-r--r--include/sco.h5
3 files changed, 15 insertions, 8 deletions
diff --git a/include/l2cap.h b/include/l2cap.h
index 6fa155f1..7029c32c 100644
--- a/include/l2cap.h
+++ b/include/l2cap.h
@@ -51,16 +51,16 @@ struct sockaddr_l2 {
/* L2CAP socket options */
#define L2CAP_OPTIONS 0x01
struct l2cap_options {
- uint16_t omtu;
- uint16_t imtu;
- uint16_t flush_to;
- uint8_t mode;
+ uint16_t omtu;
+ uint16_t imtu;
+ uint16_t flush_to;
+ uint8_t mode;
};
#define L2CAP_CONNINFO 0x02
struct l2cap_conninfo {
- uint16_t hci_handle;
- uint8_t dev_class[3];
+ uint16_t hci_handle;
+ uint8_t dev_class[3];
};
#define L2CAP_LM 0x03
diff --git a/include/rfcomm.h b/include/rfcomm.h
index 02775d50..d4cfc056 100644
--- a/include/rfcomm.h
+++ b/include/rfcomm.h
@@ -50,6 +50,12 @@ struct sockaddr_rc {
};
/* RFCOMM socket options */
+#define RFCOMM_CONNINFO 0x02
+struct rfcomm_conninfo {
+ uint16_t hci_handle;
+ uint8_t dev_class[3];
+};
+
#define RFCOMM_LM 0x03
#define RFCOMM_LM_MASTER 0x0001
#define RFCOMM_LM_AUTH 0x0002
diff --git a/include/sco.h b/include/sco.h
index 0d0ac123..09ab395e 100644
--- a/include/sco.h
+++ b/include/sco.h
@@ -51,12 +51,13 @@ struct sockaddr_sco {
/* set/get sockopt defines */
#define SCO_OPTIONS 0x01
struct sco_options {
- uint16_t mtu;
+ uint16_t mtu;
};
#define SCO_CONNINFO 0x02
struct sco_conninfo {
- uint16_t hci_handle;
+ uint16_t hci_handle;
+ uint8_t dev_class[3];
};
#ifdef __cplusplus