linux

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2025 License: MIT Imports: 21 Imported by: 0

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

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

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).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL