mirror of
https://github.com/anotherhadi/settuings.git
synced 2026-10-05 16:18:24 +02:00
@@ -0,0 +1,31 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user