Libosinfo.Platform¶
- Subclasses:
None
Methods¶
- Inherited:
Libosinfo.Product (13), Libosinfo.Entity (15), GObject.Object (37)
- Structs:
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Libosinfo.Platform(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(id)¶
- Parameters:
id (
str
) – a unique identifier- Returns:
A platform entity
- Return type:
Create a new platform entity
- add_device(dev)¶
- Parameters:
dev (
Libosinfo.Device
) – the device to associate- Returns:
the device association
- Return type:
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
orNone
) – an optional device property filter- Returns:
A list of devices
- Return type:
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.
- get_device_links(filter)¶
- Parameters:
filter (
Libosinfo.Filter
orNone
) – an optional filter- Returns:
a list of
Libosinfo.Device
entities- Return type:
Retrieve all the associated devices matching the filter. The filter matches against the link, not the device.
- get_devices(filter)¶
- Parameters:
filter (
Libosinfo.Filter
orNone
) – an optional filter- Returns:
a list of
Libosinfo.Device
entities- Return type:
Retrieve all the associated devices matching the filter. The filter matches against the device, not the link.