File: expose_props.go

package info (click to toggle)
golang-github-muka-go-bluetooth 5.60-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,688 kB
  • sloc: makefile: 92; sh: 2
file content (16 lines) | stat: -rw-r--r-- 408 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package override

var ExposePropertiesInterface = map[string]bool{
	"org.bluez.AgentManager1":   false,
	"org.bluez.Agent1":          false,
	"org.bluez.ProfileManager1": false,
	"org.bluez.Profile1":        false,
}

// ExposeProperties expose Properties interface to the struct
func ExposeProperties(iface string) bool {
	if val, ok := ExposePropertiesInterface[iface]; ok {
		return val
	}
	return true
}