mirror of
https://github.com/anotherhadi/settuings.git
synced 2026-10-05 08:18:23 +02:00
32 lines
640 B
Go
32 lines
640 B
Go
package bluetooth
|
|
|
|
import "github.com/anotherhadi/settuings/internal/bluetooth"
|
|
|
|
// checkMsg carries the result of bluetooth.CheckAvailable.
|
|
type checkMsg struct{ err error }
|
|
|
|
// tickMsg triggers a periodic refresh of the controller + device list while
|
|
// this page is active.
|
|
type tickMsg struct{}
|
|
|
|
type controllerMsg struct {
|
|
info bluetooth.ControllerInfo
|
|
err error
|
|
}
|
|
|
|
type deviceListMsg struct {
|
|
devices []bluetooth.Device
|
|
err error
|
|
}
|
|
|
|
type deviceActionMsg struct{ err error }
|
|
|
|
type powerActionMsg struct{ err error }
|
|
|
|
type scanDoneMsg struct{ err error }
|
|
|
|
type detailMsg struct {
|
|
detail bluetooth.DeviceDetail
|
|
err error
|
|
}
|