gudev

package
v0.0.0-...-17244d7 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientGetType

func ClientGetType() gobject.Type

func DeviceGetType

func DeviceGetType() gobject.Type

func EnumeratorGetType

func EnumeratorGetType() gobject.Type

Types

type Client

type Client struct {
	gobject.Object
}

func NewClient

func NewClient(subsystems0 []string) *Client

func ToClient

func ToClient(objlike gobject.ObjectLike) *Client

func (*Client) GetStaticType

func (this0 *Client) GetStaticType() gobject.Type

func (*Client) InheritedFromGUdevClient

func (this0 *Client) InheritedFromGUdevClient() *C.GUdevClient

func (*Client) QueryByDeviceFile

func (this0 *Client) QueryByDeviceFile(device_file0 string) *Device

func (*Client) QueryByDeviceNumber

func (this0 *Client) QueryByDeviceNumber(type0 DeviceType, number0 uint64) *Device

func (*Client) QueryBySubsystem

func (this0 *Client) QueryBySubsystem(subsystem0 string) []*Device

func (*Client) QueryBySubsystemAndName

func (this0 *Client) QueryBySubsystemAndName(subsystem0 string, name0 string) *Device

func (*Client) QueryBySysfsPath

func (this0 *Client) QueryBySysfsPath(sysfs_path0 string) *Device

type ClientLike

type ClientLike interface {
	gobject.ObjectLike
	InheritedFromGUdevClient() *C.GUdevClient
}

type Device

type Device struct {
	gobject.Object
}

func ToDevice

func ToDevice(objlike gobject.ObjectLike) *Device

func (*Device) GetAction

func (this0 *Device) GetAction() string

func (*Device) GetDeviceFile

func (this0 *Device) GetDeviceFile() string
func (this0 *Device) GetDeviceFileSymlinks() []string

func (*Device) GetDeviceNumber

func (this0 *Device) GetDeviceNumber() uint64

func (*Device) GetDeviceType

func (this0 *Device) GetDeviceType() DeviceType

func (*Device) GetDevtype

func (this0 *Device) GetDevtype() string

func (*Device) GetDriver

func (this0 *Device) GetDriver() string

func (*Device) GetIsInitialized

func (this0 *Device) GetIsInitialized() bool

func (*Device) GetName

func (this0 *Device) GetName() string

func (*Device) GetNumber

func (this0 *Device) GetNumber() string

func (*Device) GetParent

func (this0 *Device) GetParent() *Device

func (*Device) GetParentWithSubsystem

func (this0 *Device) GetParentWithSubsystem(subsystem0 string, devtype0 string) *Device

func (*Device) GetProperty

func (this0 *Device) GetProperty(key0 string) string

func (*Device) GetPropertyAsBoolean

func (this0 *Device) GetPropertyAsBoolean(key0 string) bool

func (*Device) GetPropertyAsDouble

func (this0 *Device) GetPropertyAsDouble(key0 string) float64

func (*Device) GetPropertyAsInt

func (this0 *Device) GetPropertyAsInt(key0 string) int32

func (*Device) GetPropertyAsStrv

func (this0 *Device) GetPropertyAsStrv(key0 string) []string

func (*Device) GetPropertyAsUint64

func (this0 *Device) GetPropertyAsUint64(key0 string) uint64

func (*Device) GetPropertyKeys

func (this0 *Device) GetPropertyKeys() []string

func (*Device) GetSeqnum

func (this0 *Device) GetSeqnum() uint64

func (*Device) GetStaticType

func (this0 *Device) GetStaticType() gobject.Type

func (*Device) GetSubsystem

func (this0 *Device) GetSubsystem() string

func (*Device) GetSysfsAttr

func (this0 *Device) GetSysfsAttr(name0 string) string

func (*Device) GetSysfsAttrAsBoolean

func (this0 *Device) GetSysfsAttrAsBoolean(name0 string) bool

func (*Device) GetSysfsAttrAsDouble

func (this0 *Device) GetSysfsAttrAsDouble(name0 string) float64

func (*Device) GetSysfsAttrAsInt

func (this0 *Device) GetSysfsAttrAsInt(name0 string) int32

func (*Device) GetSysfsAttrAsStrv

func (this0 *Device) GetSysfsAttrAsStrv(name0 string) []string

func (*Device) GetSysfsAttrAsUint64

func (this0 *Device) GetSysfsAttrAsUint64(name0 string) uint64

func (*Device) GetSysfsAttrKeys

func (this0 *Device) GetSysfsAttrKeys() []string

func (*Device) GetSysfsPath

func (this0 *Device) GetSysfsPath() string

func (*Device) GetTags

func (this0 *Device) GetTags() []string

func (*Device) GetUsecSinceInitialized

func (this0 *Device) GetUsecSinceInitialized() uint64

func (*Device) HasProperty

func (this0 *Device) HasProperty(key0 string) bool

func (*Device) HasSysfsAttr

func (this0 *Device) HasSysfsAttr(key0 string) bool

func (*Device) InheritedFromGUdevDevice

func (this0 *Device) InheritedFromGUdevDevice() *C.GUdevDevice

type DeviceLike

type DeviceLike interface {
	gobject.ObjectLike
	InheritedFromGUdevDevice() *C.GUdevDevice
}

type DeviceType

type DeviceType C.uint32_t
const (
	DeviceTypeNone  DeviceType = 0
	DeviceTypeBlock DeviceType = 98
	DeviceTypeChar  DeviceType = 99
)

type Enumerator

type Enumerator struct {
	gobject.Object
}

func NewEnumerator

func NewEnumerator(client0 ClientLike) *Enumerator

func ToEnumerator

func ToEnumerator(objlike gobject.ObjectLike) *Enumerator

func (*Enumerator) AddMatchIsInitialized

func (this0 *Enumerator) AddMatchIsInitialized() *Enumerator

func (*Enumerator) AddMatchName

func (this0 *Enumerator) AddMatchName(name0 string) *Enumerator

func (*Enumerator) AddMatchProperty

func (this0 *Enumerator) AddMatchProperty(name0 string, value0 string) *Enumerator

func (*Enumerator) AddMatchSubsystem

func (this0 *Enumerator) AddMatchSubsystem(subsystem0 string) *Enumerator

func (*Enumerator) AddMatchSysfsAttr

func (this0 *Enumerator) AddMatchSysfsAttr(name0 string, value0 string) *Enumerator

func (*Enumerator) AddMatchTag

func (this0 *Enumerator) AddMatchTag(tag0 string) *Enumerator

func (*Enumerator) AddNomatchSubsystem

func (this0 *Enumerator) AddNomatchSubsystem(subsystem0 string) *Enumerator

func (*Enumerator) AddNomatchSysfsAttr

func (this0 *Enumerator) AddNomatchSysfsAttr(name0 string, value0 string) *Enumerator

func (*Enumerator) AddSysfsPath

func (this0 *Enumerator) AddSysfsPath(sysfs_path0 string) *Enumerator

func (*Enumerator) Execute

func (this0 *Enumerator) Execute() []*Device

func (*Enumerator) GetStaticType

func (this0 *Enumerator) GetStaticType() gobject.Type

func (*Enumerator) InheritedFromGUdevEnumerator

func (this0 *Enumerator) InheritedFromGUdevEnumerator() *C.GUdevEnumerator

type EnumeratorLike

type EnumeratorLike interface {
	gobject.ObjectLike
	InheritedFromGUdevEnumerator() *C.GUdevEnumerator
}

type GError

type GError struct {
	Domain  uint32
	Code    int32
	Message string
}

func (GError) Error

func (e GError) Error() string

Jump to

Keyboard shortcuts

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