override

package
v0.0.0-...-7f43d4a Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 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": {
		"ServiceData":      "map[string]interface{}",
		"ManufacturerData": "map[uint16]interface{}",
	},
	"org.bluez.GattCharacteristic1": {
		"Value":          "[]byte `dbus:\"emit\"`",
		"Descriptors":    "[]dbus.ObjectPath",
		"WriteAcquired":  "bool `dbus:\"ignore\"`",
		"NotifyAcquired": "bool `dbus:\"ignore\"`",
	},
	"org.bluez.GattDescriptor1": {
		"Value":          "[]byte `dbus:\"emit\"`",
		"Characteristic": "dbus.ObjectPath",
	},
	"org.bluez.GattService1": {
		"Characteristics": "[]dbus.ObjectPath `dbus:\"emit\"`",
		"Includes":        "[]dbus.ObjectPath `dbus:\"omitEmpty\"`",
		"Device":          "dbus.ObjectPath `dbus:\"ignore=IsService\"`",
		"IsService":       "bool `dbus:\"ignore\"`",
	},
	"org.bluez.LEAdvertisement1": {

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

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

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

		"SecondaryChannel": "string `dbus:\"omitEmpty\"`",
	},
	"org.bluez.AdvertisementMonitor1": {

		"Patterns": "[]Pattern",
	},
	"org.bluez.MediaPlayer1": {
		"Track": "Track",
	},
}

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)

func MapType

func MapType(rawtype string) (string, bool)

MapType map a raw type literal otherwise difficult to parse

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