diff options
author | Maksim Yevmenkin <emax@FreeBSD.org> | 2006-05-17 00:13:07 +0000 |
---|---|---|
committer | Maksim Yevmenkin <emax@FreeBSD.org> | 2006-05-17 00:13:07 +0000 |
commit | c4e3f62cc11dc26d94407be2e369de58373af8f3 (patch) | |
tree | feb81cd71cbd32f06ad348a7bcec5909ebfca884 /sys/netgraph/bluetooth/include/ng_hci.h | |
parent | 3c0ebd45a5811d4ca42e9818b9a83e03e44019d5 (diff) | |
download | src-c4e3f62cc11dc26d94407be2e369de58373af8f3.tar.gz src-c4e3f62cc11dc26d94407be2e369de58373af8f3.zip |
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
Notes
Notes:
svn path=/head/; revision=158672
Diffstat (limited to 'sys/netgraph/bluetooth/include/ng_hci.h')
-rw-r--r-- | sys/netgraph/bluetooth/include/ng_hci.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netgraph/bluetooth/include/ng_hci.h b/sys/netgraph/bluetooth/include/ng_hci.h index b2d6da6084fe..5cdfd5cea53a 100644 --- a/sys/netgraph/bluetooth/include/ng_hci.h +++ b/sys/netgraph/bluetooth/include/ng_hci.h @@ -604,6 +604,8 @@ typedef u_int16_t ng_hci_node_packet_mask_ep; #define NGM_HCI_NODE_SET_ROLE_SWITCH 119 /* User -> HCI */ typedef u_int16_t ng_hci_node_role_switch_ep; +#define NGM_HCI_NODE_LIST_NAMES 200 /* HCI -> User */ + /************************************************************************** ************************************************************************** ** Link control commands and return parameters |