dbusproxy

package
v0.0.0-...-9514eed Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2016 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorProxyNilConnection     = errors.New("nil dbus connection")
	ErrorProxyEmptyDestination  = errors.New("empty destination")
	ErrorProxyEmptyObjectPath   = errors.New("empty object path")
	ErrorProxyInvalidObjectPath = errors.New("invalid object path")
	ErrorProxyEmptyInterface    = errors.New("empty interface")
)

ProxyError

Functions

func SignalName

func SignalName(iface, name string) string

Types

type DBusProxy

type DBusProxy struct {
	// contains filtered or unexported fields
}

DBusProxy is a proxy for a dbus interface.

func NewDBusProxy

func NewDBusProxy(conn *dbus.Conn, dest string, objPath string, iface string, flags dbus.Flags) (*DBusProxy, error)

NewDBusProxy creates a new dbus proxy.

func (*DBusProxy) Call

func (proxy *DBusProxy) Call(name string, args ...interface{}) *dbus.Call

Call calls a method of a interface.

func (*DBusProxy) Introspect

func (proxy *DBusProxy) Introspect() (string, error)

Introspect is a function calls the Introspect method of a object path.

func (*DBusProxy) Subscribe

func (proxy *DBusProxy) Subscribe(sigName string, f interface{}) func()

func (*DBusProxy) Unsubscribe

func (proxy *DBusProxy) Unsubscribe(sigName string)

type Signal

type Signal struct {
	Chan <-chan *dbus.Signal
	Name string
}

Jump to

Keyboard shortcuts

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