mirror of
https://codeberg.org/scip/swayipc.git
synced 2026-08-24 14:54:19 +02:00
rename non-camel-case vars, refactor, satisfy linter
This commit is contained in:
6
seat.go
6
seat.go
@@ -5,7 +5,7 @@ import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// Information about a seat containing input devices
|
||||
// Seat stores information about a seat containing input devices
|
||||
type Seat struct {
|
||||
Name string `json:"name"`
|
||||
Capabilities int `json:"capabilities"`
|
||||
@@ -13,9 +13,9 @@ type Seat struct {
|
||||
Devices []*Input `json:"devices"`
|
||||
}
|
||||
|
||||
// Get input seats
|
||||
// GetSeats returns input seats
|
||||
func (ipc *SwayIPC) GetSeats() ([]*Seat, error) {
|
||||
payload, err := ipc.get(GET_SEATS)
|
||||
payload, err := ipc.get(MsgGetSeats)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user