override

package
v0.0.0-...-ac156b6 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExposePropertiesInterface = map[string]bool{
	"org.bluez.AgentManager1":   false,
	"org.bluez.Agent1":          false,
	"org.bluez.ProfileManager1": false,
	"org.bluez.Profile1":        false,
}
View Source
var PropertyTypes = map[string]map[string]string{
	"org.bluez.Device1": map[string]string{
		"ServiceData":      "map[string]interface{}",
		"ManufacturerData": "map[uint16]interface{}",
	},
	"org.bluez.GattCharacteristic1": map[string]string{
		"Value":       "[]byte `dbus:\"emit\"`",
		"Descriptors": "[]dbus.ObjectPath",
	},
	"org.bluez.GattDescriptor1": map[string]string{
		"Value":          "[]byte `dbus:\"emit\"`",
		"Characteristic": "dbus.ObjectPath",
	},
	"org.bluez.GattService1": map[string]string{
		"Characteristics": "[]dbus.ObjectPath `dbus:\"emit\"`",
		"Includes":        "[]dbus.ObjectPath `dbus:\"omitEmpty\"`",
		"Device":          "[]dbus.ObjectPath `dbus:\"ignore=IsService\"`",
		"IsService":       "bool `dbus:\"ignore\"`",
	},
	"org.bluez.LEAdvertisement1": map[string]string{

		"Data": "map[byte]interface{}",

		"ManufacturerData": "map[uint16]interface{}",

		"ServiceData": "map[string]interface{}",
	},
}

Functions

func ExposeProperties

func ExposeProperties(iface string) bool

ExposeProperties expose Properties interface to the struct

func GetPropertiesOverride

func GetPropertiesOverride(iface string) (map[string]string, bool)

Types

type ConstructorOverride

type ConstructorOverride struct {
	AdapterAsArgument bool
}

func GetConstructorsOverrides

func GetConstructorsOverrides(iface string) ([]ConstructorOverride, bool)

Jump to

Keyboard shortcuts

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