miracast

package
v0.0.0-...-520a03a Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventLinkManaged uint8 = iota + 1
	EventLinkUnmanaged
	EventSinkConnected
	EventSinkConnectedFailed
	EventSinkDisconnected
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Daemon

type Daemon struct {
	*loader.ModuleBase
	// contains filtered or unexported fields
}

func NewDaemon

func NewDaemon(logger *log.Logger) *Daemon

func (*Daemon) GetDependencies

func (*Daemon) GetDependencies() []string

func (*Daemon) Start

func (d *Daemon) Start() error

func (*Daemon) Stop

func (*Daemon) Stop() error

func (*Daemon) WaitEnable

func (d *Daemon) WaitEnable()

type LinkInfo

type LinkInfo struct {
	Name         string
	FriendlyName string
	MacAddress   string
	Managed      bool
	P2PScanning  bool
	Path         dbus.ObjectPath
	// contains filtered or unexported fields
}

func (*LinkInfo) ConfigureForManaged

func (link *LinkInfo) ConfigureForManaged()

func (*LinkInfo) EnableManaged

func (link *LinkInfo) EnableManaged(enabled bool) error

func (*LinkInfo) EnableP2PScanning

func (link *LinkInfo) EnableP2PScanning(enabled bool)

func (*LinkInfo) SetName

func (link *LinkInfo) SetName(name string)

SetName Must be set before scanning

type LinkInfos

type LinkInfos []*LinkInfo

func (LinkInfos) Get

func (links LinkInfos) Get(objPath dbus.ObjectPath) *LinkInfo

func (LinkInfos) Remove

func (links LinkInfos) Remove(objPath dbus.ObjectPath) (LinkInfos, bool)

type Miracast

type Miracast struct {
	// contains filtered or unexported fields
}

func (*Miracast) Connect

func (m *Miracast) Connect(sink dbus.ObjectPath, x, y, w, h uint32) *dbus.Error

func (*Miracast) Disconnect

func (m *Miracast) Disconnect(sink dbus.ObjectPath) *dbus.Error

func (*Miracast) Enable

func (m *Miracast) Enable(link dbus.ObjectPath, enabled bool) *dbus.Error

func (*Miracast) GetExportedMethods

func (v *Miracast) GetExportedMethods() dbusutil.ExportedMethods

func (*Miracast) GetInterfaceName

func (*Miracast) GetInterfaceName() string
func (m *Miracast) ListLinks() (links LinkInfos, busErr *dbus.Error)

func (*Miracast) ListSinks

func (m *Miracast) ListSinks() (sinks SinkInfos, busErr *dbus.Error)

func (*Miracast) Scanning

func (m *Miracast) Scanning(link dbus.ObjectPath, enabled bool) *dbus.Error

func (*Miracast) SetLinkName

func (m *Miracast) SetLinkName(link dbus.ObjectPath, name string) *dbus.Error

type SinkInfo

type SinkInfo struct {
	Name      string
	P2PMac    string
	Interface string
	Connected bool
	Path      dbus.ObjectPath
	LinkPath  dbus.ObjectPath
	// contains filtered or unexported fields
}

func (*SinkInfo) StartSession

func (sink *SinkInfo) StartSession(x, y, w, h uint32) error

func (*SinkInfo) TeardownSession

func (sink *SinkInfo) TeardownSession() error

type SinkInfos

type SinkInfos []*SinkInfo

func (SinkInfos) Get

func (sinks SinkInfos) Get(objPath dbus.ObjectPath) *SinkInfo

func (SinkInfos) Remove

func (sinks SinkInfos) Remove(objPath dbus.ObjectPath) (SinkInfos, bool)

Jump to

Keyboard shortcuts

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