File: option_darwin.go

package info (click to toggle)
golang-github-paypal-gatt 0.0~git20151011.4ae819d-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 464 kB
  • sloc: ansic: 83; asm: 18; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 366 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package gatt

const (
	CentralManager    = 0 // Client functions (default)
	PeripheralManager = 1 // Server functions
)

// MacDeviceRole specify the XPC connection type to connect blued.
// THis option can only be used with NewDevice on OS X implementation.
func MacDeviceRole(r int) Option {
	return func(d Device) error {
		d.(*device).role = r
		return nil
	}
}