upower

package
v0.0.0-...-5b74cc3 Latest Latest
Warning

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

Go to latest
Published: May 24, 2019 License: GPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DESTINATION         string          = "org.freedesktop.UPower"
	OBJECT_PATH         dbus.ObjectPath = "/org/freedesktop/UPower/KbdBacklight"
	CALL_GET_BRIGHTNESS string          = "org.freedesktop.UPower.KbdBacklight.GetBrightness"
	CALL_SET_BRIGHTNESS string          = "org.freedesktop.UPower.KbdBacklight.SetBrightness"
	SIGNAL_INTERFACE    string          = "org.freedesktop.UPower.KbdBacklight"
	SIGNAL              string          = "BrightnessChangedWithSource"
)

Variables

This section is empty.

Functions

func GetBrightness

func GetBrightness(o DbusObject) (int32, error)

func GetObject

func GetObject(conn DbusConnection) dbus.BusObject

func SetBrightness

func SetBrightness(o DbusObject, value int32) error

func SignalListen

func SignalListen(conn DbusConnection, o DbusObject, ch chan<- *dbus.Signal)

Types

type DbusCall

type DbusCall interface {
	Store(...interface{}) error
}

type DbusConnection

type DbusConnection interface {
	Object(string, dbus.ObjectPath) dbus.BusObject
	Signal(chan<- *dbus.Signal)
}

type DbusObject

type DbusObject interface {
	Call(string, dbus.Flags, ...interface{}) *dbus.Call
	AddMatchSignal(string, string, ...dbus.MatchOption) *dbus.Call
}

Jump to

Keyboard shortcuts

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