neard

package
v0.0.0-...-36646aa Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RegisterHandoverAgent   = "org.neard.AgentManager.RegisterHandoverAgent"
	UnregisterHandoverAgent = "org.neard.AgentManager.UnregisterHandoverAgent"
	RegisterNDEFAgent       = "org.neard.AgentManager.RegisterNDEFAgent"
	UnregisterNDEFAgent     = "org.neard.AgentManager.UnregisterNDEFAgent"
)
View Source
const (
	UnknownMessage = iota

	Activate
	Adapter
	State
	Error
	WlanHandover
	ConfigData
	StartApplication
)
View Source
const (
	TLV_INVALID          = int(0)
	TLV_AUTH_TYPE        = 0x1003
	TLV_CREDENTIAL       = 0x100e
	TLV_ENC_TYPE         = 0x100f
	TLV_PASS_ID          = 0x1012
	TLV_MAC_ADDR         = 0x1020
	TLV_NETWORK_IDX      = 0x1026
	TLV_KEY              = 0x1027
	TLV_SSID             = 0x1045
	TLV_VENDOR_EXTENSION = 0x1049
	TLV_VERSION          = 0x104a
	TLV_X509_CERT        = 0x104c
)
View Source
const (
	NeardOriginated = "Neard"
)

Variables

This section is empty.

Functions

func DictStore

func DictStore(dict map[string]dbus.Variant, store reflect.Value) bool

func Initialize

func Initialize() bool

Types

type AdapterEvent

type AdapterEvent struct {
	Event   string
	Name    string
	Path    string
	Enabled bool
	Active  bool
}

type Credentials

type Credentials struct {
	Network  int
	SSID     string
	AuthType string
	Key      string
	EncType  string
	X509Cert string
}

func WSCParser

func WSCParser(data []byte) (*Credentials, bool)

type Message

type Message struct {
	Id int
	// contains filtered or unexported fields
}

func (*Message) AdapterEvent

func (me *Message) AdapterEvent() (ev AdapterEvent)

func (*Message) Bool

func (me *Message) Bool() (boolean bool)

func (*Message) Credentials

func (me *Message) Credentials() (cred Credentials)

func (*Message) Error

func (me *Message) Error() (err error)

func (*Message) Int

func (me *Message) Int() (integer int)

func (*Message) String

func (me *Message) String() (str string)

type ObjectInterface

type ObjectInterface interface {
	// contains filtered or unexported methods
}

type Server

type Server struct {
	Evchan <-chan Message
	// contains filtered or unexported fields
}

func NewServer

func NewServer(events []string) *Server

func (*Server) Activate

func (me *Server) Activate(pattern string)

Jump to

Keyboard shortcuts

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