Documentation ¶
Index ¶
- Variables
- func DBusDevPathToHwAddr(devPath dbus.ObjectPath) (res net.HardwareAddr, err error)
- type BusType
- type Client
- func (c Client) Call(methodName string, methodArgs ...interface{}) (res *dbus.Call, err error)
- func (c *Client) Connect() (err error)
- func (c *Client) Disconnect()
- func (c *Client) GetAllProperties() (res map[string]dbus.Variant, err error)
- func (c *Client) GetPath() (path dbus.ObjectPath)
- func (c *Client) GetProperty(name string) (res dbus.Variant, err error)
- func (c Client) IsConnected() bool
- func (c *Client) SetProperty(name string, value interface{}) (err error)
- type DBusObjects
- type ObjectManager
- func (om *ObjectManager) Close()
- func (om *ObjectManager) GetAllObjectsOfInterface(interfaceString string) (resultObjs DBusObjects, err error)
- func (om *ObjectManager) GetAllObjectsPathOfInterface(interfaceString string) (results []dbus.ObjectPath, err error)
- func (om *ObjectManager) GetManagedObjects() (o DBusObjects)
- func (om *ObjectManager) GetObject(objectPath dbus.ObjectPath) (bluezObj map[string]map[string]dbus.Variant, exists bool, err error)
- func (om *ObjectManager) UpdateManagedObjects() (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrConvertDevAddr = errors.New("Can't convert given device ObjectPath to HardwareAddr")
)
Functions ¶
func DBusDevPathToHwAddr ¶
func DBusDevPathToHwAddr(devPath dbus.ObjectPath) (res net.HardwareAddr, err error)
Types ¶
type Client ¶
func (*Client) Disconnect ¶
func (c *Client) Disconnect()
func (*Client) GetAllProperties ¶
func (*Client) GetPath ¶
func (c *Client) GetPath() (path dbus.ObjectPath)
func (*Client) GetProperty ¶
func (Client) IsConnected ¶
func (*Client) SetProperty ¶
type DBusObjects ¶
type ObjectManager ¶
type ObjectManager struct {
// contains filtered or unexported fields
}
func NewObjectManager ¶
func NewObjectManager() (om *ObjectManager, err error)
func (*ObjectManager) Close ¶
func (om *ObjectManager) Close()
func (*ObjectManager) GetAllObjectsOfInterface ¶
func (om *ObjectManager) GetAllObjectsOfInterface(interfaceString string) (resultObjs DBusObjects, err error)
func (*ObjectManager) GetAllObjectsPathOfInterface ¶
func (om *ObjectManager) GetAllObjectsPathOfInterface(interfaceString string) (results []dbus.ObjectPath, err error)
func (*ObjectManager) GetManagedObjects ¶
func (om *ObjectManager) GetManagedObjects() (o DBusObjects)
func (*ObjectManager) GetObject ¶
func (om *ObjectManager) GetObject(objectPath dbus.ObjectPath) (bluezObj map[string]map[string]dbus.Variant, exists bool, err error)
func (*ObjectManager) UpdateManagedObjects ¶
func (om *ObjectManager) UpdateManagedObjects() (err error)
Click to show internal directories.
Click to hide internal directories.