proxy

package
v0.0.0-...-17244d7 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RemoveAllHandlers              = -1
	RemovePropertiesChangedHandler = -2
)

Variables

This section is empty.

Functions

func DeleteConn

func DeleteConn(conn *dbus.Conn)

DeleteConn 删除连接相关的数据,可以在你关闭这个连接之后调用。

Types

type Implementer

type Implementer interface {
	GetObject_() *Object
	GetInterfaceName_() string
}

type Object

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

func (*Object) ConnectPropertiesChanged

func (o *Object) ConnectPropertiesChanged(
	cb func(interfaceName string, changedProperties map[string]dbus.Variant,
		invalidatedProperties []string)) (dbusutil.SignalHandlerId, error)

func (*Object) ConnectPropertyChanged_

func (o *Object) ConnectPropertyChanged_(interfaceName, propName string, callback PropChangedCallback) error

func (*Object) ConnectSignal_

func (o *Object) ConnectSignal_(rule string, sigRule *dbusutil.SignalRule, cb dbusutil.SignalHandlerFunc) (dbusutil.SignalHandlerId, error)

func (*Object) GetProperty_

func (o *Object) GetProperty_(flags dbus.Flags, interfaceName, propName string,
	value interface{}) error

func (*Object) Go_

func (o *Object) Go_(method string, flags dbus.Flags,
	ch chan *dbus.Call, args ...interface{}) *dbus.Call

func (*Object) InitSignalExt

func (o *Object) InitSignalExt(sigLoop *dbusutil.SignalLoop, ruleAuto bool)

func (*Object) Init_

func (o *Object) Init_(conn *dbus.Conn, serviceName string,
	path dbus.ObjectPath)

func (*Object) Path_

func (o *Object) Path_() dbus.ObjectPath

func (*Object) RemoveAllHandlers

func (o *Object) RemoveAllHandlers()

func (*Object) RemoveHandler

func (o *Object) RemoveHandler(handlerId dbusutil.SignalHandlerId)

func (*Object) ServiceName_

func (o *Object) ServiceName_() string

func (*Object) SetProperty_

func (o *Object) SetProperty_(flags dbus.Flags, interfaceName, propName string,
	value interface{}) error

type PropBool

type PropBool struct {
	Impl Implementer
	Name string
}

func (PropBool) ConnectChanged

func (p PropBool) ConnectChanged(cb func(hasValue bool, value bool)) error

func (PropBool) Get

func (p PropBool) Get(flags dbus.Flags) (value bool, err error)

func (PropBool) Set

func (p PropBool) Set(flags dbus.Flags, value bool) error

type PropBoolArray

type PropBoolArray struct {
	Impl Implementer
	Name string
}

func (PropBoolArray) ConnectChanged

func (p PropBoolArray) ConnectChanged(cb func(hasValue bool, value []bool)) error

func (PropBoolArray) Get

func (p PropBoolArray) Get(flags dbus.Flags) (value []bool, err error)

func (PropBoolArray) Set

func (p PropBoolArray) Set(flags dbus.Flags, value []bool) error

type PropByte

type PropByte struct {
	Impl Implementer
	Name string
}

func (PropByte) ConnectChanged

func (p PropByte) ConnectChanged(cb func(hasValue bool, value byte)) error

func (PropByte) Get

func (p PropByte) Get(flags dbus.Flags) (value byte, err error)

func (PropByte) Set

func (p PropByte) Set(flags dbus.Flags, value byte) error

type PropByteArray

type PropByteArray struct {
	Impl Implementer
	Name string
}

func (PropByteArray) ConnectChanged

func (p PropByteArray) ConnectChanged(cb func(hasValue bool, value []byte)) error

func (PropByteArray) Get

func (p PropByteArray) Get(flags dbus.Flags) (value []byte, err error)

func (PropByteArray) Set

func (p PropByteArray) Set(flags dbus.Flags, value []byte) error

type PropChangedCallback

type PropChangedCallback func(hasValue bool, value interface{})

type PropDouble

type PropDouble struct {
	Impl Implementer
	Name string
}

func (PropDouble) ConnectChanged

func (p PropDouble) ConnectChanged(cb func(hasValue bool, value float64)) error

func (PropDouble) Get

func (p PropDouble) Get(flags dbus.Flags) (value float64, err error)

func (PropDouble) Set

func (p PropDouble) Set(flags dbus.Flags, value float64) error

type PropDoubleArray

type PropDoubleArray struct {
	Impl Implementer
	Name string
}

func (PropDoubleArray) ConnectChanged

func (p PropDoubleArray) ConnectChanged(cb func(hasValue bool, value []float64)) error

func (PropDoubleArray) Get

func (p PropDoubleArray) Get(flags dbus.Flags) (value []float64, err error)

func (PropDoubleArray) Set

func (p PropDoubleArray) Set(flags dbus.Flags, value []float64) error

type PropInt16

type PropInt16 struct {
	Impl Implementer
	Name string
}

func (PropInt16) ConnectChanged

func (p PropInt16) ConnectChanged(cb func(hasValue bool, value int16)) error

func (PropInt16) Get

func (p PropInt16) Get(flags dbus.Flags) (value int16, err error)

func (PropInt16) Set

func (p PropInt16) Set(flags dbus.Flags, value int16) error

type PropInt16Array

type PropInt16Array struct {
	Impl Implementer
	Name string
}

func (PropInt16Array) ConnectChanged

func (p PropInt16Array) ConnectChanged(cb func(hasValue bool, value []int16)) error

func (PropInt16Array) Get

func (p PropInt16Array) Get(flags dbus.Flags) (value []int16, err error)

func (PropInt16Array) Set

func (p PropInt16Array) Set(flags dbus.Flags, value []int16) error

type PropInt32

type PropInt32 struct {
	Impl Implementer
	Name string
}

func (PropInt32) ConnectChanged

func (p PropInt32) ConnectChanged(cb func(hasValue bool, value int32)) error

func (PropInt32) Get

func (p PropInt32) Get(flags dbus.Flags) (value int32, err error)

func (PropInt32) Set

func (p PropInt32) Set(flags dbus.Flags, value int32) error

type PropInt32Array

type PropInt32Array struct {
	Impl Implementer
	Name string
}

func (PropInt32Array) ConnectChanged

func (p PropInt32Array) ConnectChanged(cb func(hasValue bool, value []int32)) error

func (PropInt32Array) Get

func (p PropInt32Array) Get(flags dbus.Flags) (value []int32, err error)

func (PropInt32Array) Set

func (p PropInt32Array) Set(flags dbus.Flags, value []int32) error

type PropInt64

type PropInt64 struct {
	Impl Implementer
	Name string
}

func (PropInt64) ConnectChanged

func (p PropInt64) ConnectChanged(cb func(hasValue bool, value int64)) error

func (PropInt64) Get

func (p PropInt64) Get(flags dbus.Flags) (value int64, err error)

func (PropInt64) Set

func (p PropInt64) Set(flags dbus.Flags, value int64) error

type PropInt64Array

type PropInt64Array struct {
	Impl Implementer
	Name string
}

func (PropInt64Array) ConnectChanged

func (p PropInt64Array) ConnectChanged(cb func(hasValue bool, value []int64)) error

func (PropInt64Array) Get

func (p PropInt64Array) Get(flags dbus.Flags) (value []int64, err error)

func (PropInt64Array) Set

func (p PropInt64Array) Set(flags dbus.Flags, value []int64) error

type PropObjectPath

type PropObjectPath struct {
	Impl Implementer
	Name string
}

func (PropObjectPath) ConnectChanged

func (p PropObjectPath) ConnectChanged(cb func(hasValue bool, value dbus.ObjectPath)) error

func (PropObjectPath) Get

func (p PropObjectPath) Get(flags dbus.Flags) (value dbus.ObjectPath, err error)

func (PropObjectPath) Set

func (p PropObjectPath) Set(flags dbus.Flags, value dbus.ObjectPath) error

type PropObjectPathArray

type PropObjectPathArray struct {
	Impl Implementer
	Name string
}

func (PropObjectPathArray) ConnectChanged

func (p PropObjectPathArray) ConnectChanged(cb func(hasValue bool, value []dbus.ObjectPath)) error

func (PropObjectPathArray) Get

func (p PropObjectPathArray) Get(flags dbus.Flags) (value []dbus.ObjectPath, err error)

func (PropObjectPathArray) Set

func (p PropObjectPathArray) Set(flags dbus.Flags, value []dbus.ObjectPath) error

type PropString

type PropString struct {
	Impl Implementer
	Name string
}

func (PropString) ConnectChanged

func (p PropString) ConnectChanged(cb func(hasValue bool, value string)) error

func (PropString) Get

func (p PropString) Get(flags dbus.Flags) (value string, err error)

func (PropString) Set

func (p PropString) Set(flags dbus.Flags, value string) error

type PropStringArray

type PropStringArray struct {
	Impl Implementer
	Name string
}

func (PropStringArray) ConnectChanged

func (p PropStringArray) ConnectChanged(cb func(hasValue bool, value []string)) error

func (PropStringArray) Get

func (p PropStringArray) Get(flags dbus.Flags) (value []string, err error)

func (PropStringArray) Set

func (p PropStringArray) Set(flags dbus.Flags, value []string) error

type PropUint16

type PropUint16 struct {
	Impl Implementer
	Name string
}

func (PropUint16) ConnectChanged

func (p PropUint16) ConnectChanged(cb func(hasValue bool, value uint16)) error

func (PropUint16) Get

func (p PropUint16) Get(flags dbus.Flags) (value uint16, err error)

func (PropUint16) Set

func (p PropUint16) Set(flags dbus.Flags, value uint16) error

type PropUint16Array

type PropUint16Array struct {
	Impl Implementer
	Name string
}

func (PropUint16Array) ConnectChanged

func (p PropUint16Array) ConnectChanged(cb func(hasValue bool, value []uint16)) error

func (PropUint16Array) Get

func (p PropUint16Array) Get(flags dbus.Flags) (value []uint16, err error)

func (PropUint16Array) Set

func (p PropUint16Array) Set(flags dbus.Flags, value []uint16) error

type PropUint32

type PropUint32 struct {
	Impl Implementer
	Name string
}

func (PropUint32) ConnectChanged

func (p PropUint32) ConnectChanged(cb func(hasValue bool, value uint32)) error

func (PropUint32) Get

func (p PropUint32) Get(flags dbus.Flags) (value uint32, err error)

func (PropUint32) Set

func (p PropUint32) Set(flags dbus.Flags, value uint32) error

type PropUint32Array

type PropUint32Array struct {
	Impl Implementer
	Name string
}

func (PropUint32Array) ConnectChanged

func (p PropUint32Array) ConnectChanged(cb func(hasValue bool, value []uint32)) error

func (PropUint32Array) Get

func (p PropUint32Array) Get(flags dbus.Flags) (value []uint32, err error)

func (PropUint32Array) Set

func (p PropUint32Array) Set(flags dbus.Flags, value []uint32) error

type PropUint64

type PropUint64 struct {
	Impl Implementer
	Name string
}

func (PropUint64) ConnectChanged

func (p PropUint64) ConnectChanged(cb func(hasValue bool, value uint64)) error

func (PropUint64) Get

func (p PropUint64) Get(flags dbus.Flags) (value uint64, err error)

func (PropUint64) Set

func (p PropUint64) Set(flags dbus.Flags, value uint64) error

type PropUint64Array

type PropUint64Array struct {
	Impl Implementer
	Name string
}

func (PropUint64Array) ConnectChanged

func (p PropUint64Array) ConnectChanged(cb func(hasValue bool, value []uint64)) error

func (PropUint64Array) Get

func (p PropUint64Array) Get(flags dbus.Flags) (value []uint64, err error)

func (PropUint64Array) Set

func (p PropUint64Array) Set(flags dbus.Flags, value []uint64) error

Jump to

Keyboard shortcuts

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