Libosinfo.Platform

g GObject.Object GObject.Object Libosinfo.Entity Libosinfo.Entity GObject.Object->Libosinfo.Entity Libosinfo.Product Libosinfo.Product Libosinfo.Entity->Libosinfo.Product Libosinfo.Platform Libosinfo.Platform Libosinfo.Product->Libosinfo.Platform

Subclasses:

None

Methods

Inherited:

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

Structs:

GObject.ObjectClass (5)

class

new (id)

add_device (dev)

get_all_devices (filter)

get_device_links (filter)

get_devices (filter)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

Libosinfo.Product (6), Libosinfo.Entity (1)

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

Libosinfo.Product

r

Class Details

class Libosinfo.Platform(**kwargs)
Bases:

Libosinfo.Product

Abstract:

No

Structure:

Libosinfo.PlatformClass

classmethod new(id)
Parameters:

id (str) – a unique identifier

Returns:

A platform entity

Return type:

Libosinfo.Platform

Create a new platform entity

add_device(dev)
Parameters:

dev (Libosinfo.Device) – the device to associate

Returns:

the device association

Return type:

Libosinfo.DeviceLink

Associate a device with a platform. The returned Libosinfo.DeviceLink can be used to record extra metadata against the link

get_all_devices(filter)
Parameters:

filter (Libosinfo.Filter or None) – an optional device property filter

Returns:

A list of devices

Return type:

Libosinfo.DeviceList

Get all platforms matching a given filter but unlike Libosinfo.Platform.get_devices this function also retrieves devices from all derived and upgraded platforms.

New in version 0.2.7.

Parameters:

filter (Libosinfo.Filter or None) – an optional filter

Returns:

a list of Libosinfo.Device entities

Return type:

Libosinfo.DeviceLinkList

Retrieve all the associated devices matching the filter. The filter matches against the link, not the device.

get_devices(filter)
Parameters:

filter (Libosinfo.Filter or None) – an optional filter

Returns:

a list of Libosinfo.Device entities

Return type:

Libosinfo.DeviceList

Retrieve all the associated devices matching the filter. The filter matches against the device, not the link.