summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/bluetooth/include
diff options
context:
space:
mode:
authoremax <emax@FreeBSD.org>2004-08-10 00:38:50 +0000
committeremax <emax@FreeBSD.org>2004-08-10 00:38:50 +0000
commit726a7fca00cb86d9a23466b7bc446be882f51b06 (patch)
treeb3b996a19c1c82854f6b5567deebe9aa4f110815 /sys/netgraph/bluetooth/include
parentab3ce7c4d961e57c6a55b9c6834cbc253259ea84 (diff)
downloadFreeBSD-src-726a7fca00cb86d9a23466b7bc446be882f51b06.zip
FreeBSD-src-726a7fca00cb86d9a23466b7bc446be882f51b06.tar.gz
Introduce ng_hci_inquiry_response structure and use it in the hccontrol(8)
Diffstat (limited to 'sys/netgraph/bluetooth/include')
-rw-r--r--sys/netgraph/bluetooth/include/ng_hci.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/sys/netgraph/bluetooth/include/ng_hci.h b/sys/netgraph/bluetooth/include/ng_hci.h
index ba7796f..a304d04 100644
--- a/sys/netgraph/bluetooth/include/ng_hci.h
+++ b/sys/netgraph/bluetooth/include/ng_hci.h
@@ -1436,15 +1436,18 @@ typedef struct {
#define NG_HCI_EVENT_INQUIRY_RESULT 0x02
typedef struct {
u_int8_t num_responses; /* number of responses */
-/* these are repeated "num_responses" times
- bdaddr_t bdaddr; --- unit address(es)
- u_int8_t page_scan_rep_mode; --- page scan rep. mode(s)
- u_int8_t page_scan_period_mode; --- page scan period mode(s)
- u_int8_t page_scan_mode; --- page scan mode(s)
- u_int8_t uclass[NG_HCI_CLASS_SIZE]; --- unit class(es)
- u_int16_t clock_offset; --- clock offset(s) */
+/* ng_hci_inquiry_response[num_responses] -- see below */
} __attribute__ ((packed)) ng_hci_inquiry_result_ep;
+typedef struct {
+ bdaddr_t bdaddr; /* unit address */
+ u_int8_t page_scan_rep_mode; /* page scan rep. mode */
+ u_int8_t page_scan_period_mode; /* page scan period mode */
+ u_int8_t page_scan_mode; /* page scan mode */
+ u_int8_t class[NG_HCI_CLASS_SIZE]; /* unit class */
+ u_int16_t clock_offset; /* clock offset */
+} __attribute__ ((packed)) ng_hci_inquiry_response;
+
#define NG_HCI_EVENT_CON_COMPL 0x03
typedef struct {
u_int8_t status; /* 0x00 - success */
OpenPOWER on IntegriCloud