• Libosinfo 1.0 »
  • Classes »
  • Libosinfo.DeviceLink
  • Libosinfo.DeviceLink
    • Methods
    • Virtual Methods
    • Properties
    • Signals
    • Fields
    • Class Details
      • Libosinfo.DeviceLink
        • Libosinfo.DeviceLink.new()
        • Libosinfo.DeviceLink.get_driver()
        • Libosinfo.DeviceLink.get_target()
    • Property Details
      • Libosinfo.DeviceLink.props.target
  • Libosinfo 1.0 »
  • Classes »
  • Libosinfo.DeviceLink
  • Libosinfo.DeviceLink
    • Methods
    • Virtual Methods
    • Properties
    • Signals
    • Fields
    • Class Details
      • Libosinfo.DeviceLink
        • Libosinfo.DeviceLink.new()
        • Libosinfo.DeviceLink.get_driver()
        • Libosinfo.DeviceLink.get_target()
    • Property Details
      • Libosinfo.DeviceLink.props.target

Libosinfo.DeviceLink¶

g GObject.Object GObject.Object Libosinfo.Entity Libosinfo.Entity GObject.Object->Libosinfo.Entity Libosinfo.DeviceLink Libosinfo.DeviceLink Libosinfo.Entity->Libosinfo.DeviceLink

Subclasses:

None

Methods¶

Inherited:

Libosinfo.Entity (15), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (target)

get_driver ()

get_target ()

Virtual Methods¶

Inherited:

GObject.Object (7)

Properties¶

Inherited:

Libosinfo.Entity (1)

Name

Type

Flags

Short Description

target

Libosinfo.Device

r/w/co

Target device

Signals¶

Inherited:

GObject.Object (1)

Fields¶

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

Libosinfo.Entity

r

Class Details¶

class Libosinfo.DeviceLink(**kwargs)¶
Bases:

Libosinfo.Entity

Abstract:

No

Structure:

Libosinfo.DeviceLinkClass

classmethod new(target)¶
Parameters:

target (Libosinfo.Device) – the target device

Returns:

the new device link

Return type:

Libosinfo.DeviceLink

Construct a new link for an Libosinfo.Device. The unique ID of the link is set to match the ID of the target device.

get_driver()¶
Return type:

str

get_target()¶
Returns:

the target of the device link

Return type:

Libosinfo.Device

Retrieve the Libosinfo.Device that the link points to.

Property Details¶

Libosinfo.DeviceLink.props.target¶
Name:

target

Type:

Libosinfo.Device

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The target of the device link.