Libosinfo.Firmware

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

Subclasses:

None

Methods

Inherited:

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

Structs:

GObject.ObjectClass (5)

class

new (id, architecture, type)

get_architecture ()

get_firmware_type ()

is_supported ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

Libosinfo.Entity (1)

Name

Type

Flags

Short Description

architecture

str

r/w

CPU Architecture

type

str

r/w

The firmware type

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

Libosinfo.Entity

r

Class Details

class Libosinfo.Firmware(**kwargs)
Bases:

Libosinfo.Entity

Abstract:

No

Structure:

Libosinfo.FirmwareClass

classmethod new(id, architecture, type)
Parameters:
  • id (str) –

  • architecture (str) –

  • type (str) –

Return type:

Libosinfo.Firmware

get_architecture()
Returns:

the hardware architecture, or None

Return type:

str

Retrieves the target hardware architecture of the OS self provides.

New in version 1.7.0.

get_firmware_type()
Returns:

the type, or None

Return type:

str

The type of the self

New in version 1.7.0.

is_supported()
Returns:

True if supported, False otherwise.

Return type:

bool

Whether the self is supported or not

New in version 1.8.0.

Property Details

Libosinfo.Firmware.props.architecture
Name:

architecture

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

The target hardware architecture of this firmware.

Libosinfo.Firmware.props.type
Name:

type

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

The firmware type