Documentation
¶
Overview ¶
Package linux provides an implementation of a Linux-specific Bluetooth session. It uses Bluez's DBus service to provide the advertised functionality.
Index ¶
- type BluezSession
- func (b *BluezSession) Adapter(adapterAddress bluetooth.MacAddress) bluetooth.Adapter
- func (b *BluezSession) Adapters() []bluetooth.AdapterData
- func (b *BluezSession) Device(deviceAddress bluetooth.MacAddress) bluetooth.Device
- func (b *BluezSession) MediaPlayer(deviceAddress bluetooth.MacAddress) bluetooth.MediaPlayer
- func (b *BluezSession) Network(deviceAddress bluetooth.MacAddress) bluetooth.Network
- func (b *BluezSession) Obex(deviceAddress bluetooth.MacAddress) bluetooth.Obex
- func (b *BluezSession) Start(authHandler bluetooth.SessionAuthorizer, cfg config.Configuration) (ac.FeatureSet, platforminfo.PlatformInfo, error)
- func (b *BluezSession) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BluezSession ¶
type BluezSession struct {
// contains filtered or unexported fields
}
BluezSession describes a Linux Bluez DBus session.
func (*BluezSession) Adapter ¶
func (b *BluezSession) Adapter(adapterAddress bluetooth.MacAddress) bluetooth.Adapter
Adapter returns a function call interface to invoke adapter related functions.
func (*BluezSession) Adapters ¶
func (b *BluezSession) Adapters() []bluetooth.AdapterData
Adapters returns a list of known adapters.
func (*BluezSession) Device ¶
func (b *BluezSession) Device(deviceAddress bluetooth.MacAddress) bluetooth.Device
Device returns a function call interface to invoke device related functions.
func (*BluezSession) MediaPlayer ¶
func (b *BluezSession) MediaPlayer(deviceAddress bluetooth.MacAddress) bluetooth.MediaPlayer
MediaPlayer returns a function call interface to invoke mediaplayer related functions.
func (*BluezSession) Network ¶
func (b *BluezSession) Network(deviceAddress bluetooth.MacAddress) bluetooth.Network
Network returns a function call interface to invoke network related functions.
func (*BluezSession) Obex ¶
func (b *BluezSession) Obex(deviceAddress bluetooth.MacAddress) bluetooth.Obex
Obex returns a function call interface to invoke obex related functions.
func (*BluezSession) Start ¶
func (b *BluezSession) Start( authHandler bluetooth.SessionAuthorizer, cfg config.Configuration, ) (ac.FeatureSet, platforminfo.PlatformInfo, error)
Start attempts to initialize and start interfacing with the Bluez daemon via DBus.
func (*BluezSession) Stop ¶
func (b *BluezSession) Stop() error
Stop attempts to stop interfacing with the Bluez daemon.
Directories
¶
Path | Synopsis |
---|---|
internal
|
|
dbushelper
Package dbushelper provides DBus specific helpers to: - Translate DBus paths to Bluetooth addresses.
|
Package dbushelper provides DBus specific helpers to: - Translate DBus paths to Bluetooth addresses. |
Package networkmanager provides functionality to tether the host adapter to a device's internet connection via the NetworkManager application.
|
Package networkmanager provides functionality to tether the host adapter to a device's internet connection via the NetworkManager application. |
Package obex provides functionality to interact with the Bluetooth OBEX profile of a device, by interfacing with the Bluez Obex DBus session bus (org.bluez.obex).
|
Package obex provides functionality to interact with the Bluetooth OBEX profile of a device, by interfacing with the Bluez Obex DBus session bus (org.bluez.obex). |