summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/bluetooth/include/ng_btsocket.h
diff options
context:
space:
mode:
authoremax <emax@FreeBSD.org>2006-05-17 00:13:07 +0000
committeremax <emax@FreeBSD.org>2006-05-17 00:13:07 +0000
commit2ec6a6b5e755fa5b53be0ec197fff455eee327cf (patch)
treefeb81cd71cbd32f06ad348a7bcec5909ebfca884 /sys/netgraph/bluetooth/include/ng_btsocket.h
parent955080c0beaa4bed30160ca8788bef53fceed9a4 (diff)
downloadFreeBSD-src-2ec6a6b5e755fa5b53be0ec197fff455eee327cf.zip
FreeBSD-src-2ec6a6b5e755fa5b53be0ec197fff455eee327cf.tar.gz
Add new SIOC_HCI_RAW_NODE_LIST_NAMES ioctl. User-space applications can
use this ioctl to obtain the list of HCI nodes. User-space application is expected to preallocate 'ng_btsocket_hci_raw_node_list_names' structure and set limit in 'num_nodes' field. The 'nodes' field should be allocated as well and it should have space for at least 'num_nodes' elements. The SIOC_HCI_RAW_NODE_LIST_NAMES should be issued on bound raw HCI socket. It does not really really matter what HCI name the socket is bound to, as long as it is not empty. MFC after: 1 week
Diffstat (limited to 'sys/netgraph/bluetooth/include/ng_btsocket.h')
-rw-r--r--sys/netgraph/bluetooth/include/ng_btsocket.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/netgraph/bluetooth/include/ng_btsocket.h b/sys/netgraph/bluetooth/include/ng_btsocket.h
index 01822e3..7dc309a 100644
--- a/sys/netgraph/bluetooth/include/ng_btsocket.h
+++ b/sys/netgraph/bluetooth/include/ng_btsocket.h
@@ -189,6 +189,15 @@ struct ng_btsocket_hci_raw_node_role_switch {
_IOWR('b', NGM_HCI_NODE_SET_ROLE_SWITCH, \
struct ng_btsocket_hci_raw_node_role_switch)
+/* Get list of HCI node names */
+struct ng_btsocket_hci_raw_node_list_names {
+ u_int32_t num_names;
+ struct nodeinfo *names;
+};
+#define SIOC_HCI_RAW_NODE_LIST_NAMES \
+ _IOWR('b', NGM_HCI_NODE_LIST_NAMES, \
+ struct ng_btsocket_hci_raw_node_list_names)
+
/*
* XXX FIXME: probably does not belong here
* Bluetooth version of struct sockaddr for L2CAP sockets (RAW and SEQPACKET)
OpenPOWER on IntegriCloud