File: agent.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 (13 lines) | stat: -rw-r--r-- 371 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
package service

import "github.com/muka/go-bluetooth/bluez/profile/agent"

func (app *App) createAgent() (agent.Agent1Client, error) {
	a := agent.NewDefaultSimpleAgent()
	return a, nil
}

// Expose app agent on DBus
func (app *App) ExposeAgent(caps string, setAsDefaultAgent bool) error {
	return agent.ExposeAgent(app.DBusConn(), app.agent, caps, setAsDefaultAgent)
}