fwupd-enums

fwupd-enums

Functions

Types and Values

Description

Functions

fwupd_status_to_string ()

const gchar *
fwupd_status_to_string (FwupdStatus status);

Converts a FwupdStatus to a string.

Parameters

Returns

identifier string

Since: 0.1.1


fwupd_status_from_string ()

FwupdStatus
fwupd_status_from_string (const gchar *status);

Converts a string to a FwupdStatus.

Parameters

status

A string, e.g. "decompressing"

 

Returns

enumerated value

Since: 0.1.1


fwupd_device_flag_to_string ()

const gchar *
fwupd_device_flag_to_string (FwupdDeviceFlags device_flag);

Converts a FwupdDeviceFlags to a string.

Parameters

Returns

identifier string

Since: 0.7.0


fwupd_device_flag_from_string ()

FwupdDeviceFlags
fwupd_device_flag_from_string (const gchar *device_flag);

Converts a string to a FwupdDeviceFlags.

Parameters

device_flag

A string, e.g. "require-ac"

 

Returns

enumerated value

Since: 0.7.0


fwupd_update_state_to_string ()

const gchar *
fwupd_update_state_to_string (FwupdUpdateState update_state);

Converts a FwupdUpdateState to a string.

Parameters

Returns

identifier string

Since: 0.7.0


fwupd_update_state_from_string ()

FwupdUpdateState
fwupd_update_state_from_string (const gchar *update_state);

Converts a string to a FwupdUpdateState.

Parameters

update_state

A string, e.g. "pending"

 

Returns

enumerated value

Since: 0.7.0


fwupd_trust_flag_to_string ()

const gchar *
fwupd_trust_flag_to_string (FwupdTrustFlags trust_flag);

Converts a FwupdTrustFlags to a string.

Parameters

Returns

identifier string

Since: 0.7.0


fwupd_trust_flag_from_string ()

FwupdTrustFlags
fwupd_trust_flag_from_string (const gchar *trust_flag);

Converts a string to a FwupdTrustFlags.

Parameters

trust_flag

A string, e.g. "payload"

 

Returns

enumerated value

Since: 0.7.0

Types and Values

FWUPD_DBUS_PATH

#define FWUPD_DBUS_PATH			"/"

FWUPD_DBUS_SERVICE

#define FWUPD_DBUS_SERVICE		"org.freedesktop.fwupd"

FWUPD_DBUS_INTERFACE

#define FWUPD_DBUS_INTERFACE		"org.freedesktop.fwupd"

FWUPD_DEVICE_ID_ANY

#define FWUPD_DEVICE_ID_ANY		"*"

enum FwupdStatus

The flags to show daemon status.

Members

FWUPD_STATUS_UNKNOWN

Unknown state

 

FWUPD_STATUS_IDLE

Idle

 

FWUPD_STATUS_LOADING

Loading a resource

 

FWUPD_STATUS_DECOMPRESSING

Decompressing firmware

 

FWUPD_STATUS_DEVICE_RESTART

Restarting the device

 

FWUPD_STATUS_DEVICE_WRITE

Writing to a device

 

FWUPD_STATUS_DEVICE_VERIFY

Verifying (reading) a device

 

FWUPD_STATUS_SCHEDULING

Scheduling an offline update

 

enum FwupdTrustFlags

The flags to show the level of trust.

Members

FWUPD_TRUST_FLAG_NONE

No trust

 

FWUPD_TRUST_FLAG_PAYLOAD

The firmware is trusted

 

FWUPD_TRUST_FLAG_METADATA

The metadata is trusted

 

enum FwupdDeviceFlags

FIXME: rename FU_DEVICE_ -> FWUPD_DEVICE_ when we break API

The device flags.

Members

FU_DEVICE_FLAG_NONE

No flags set

 

FU_DEVICE_FLAG_INTERNAL

Device cannot be removed easily

 

FU_DEVICE_FLAG_ALLOW_ONLINE

Permits 'live' updating

 

FU_DEVICE_FLAG_ALLOW_OFFLINE

Permits 'offline' updating

 

FU_DEVICE_FLAG_REQUIRE_AC

Requires AC power

 

FU_DEVICE_FLAG_LOCKED

Is locked and can be unlocked

 

FU_DEVICE_FLAG_SUPPORTED

Is found in current metadata

 

enum FwupdInstallFlags

Flags to set when performing the firwmare update or install.

Members

FWUPD_INSTALL_FLAG_NONE

No flags set

 

FWUPD_INSTALL_FLAG_OFFLINE

Perform this offline

 

FWUPD_INSTALL_FLAG_ALLOW_REINSTALL

Allow reinstalling the same version

 

FWUPD_INSTALL_FLAG_ALLOW_OLDER

Allow downgrading firmware

 

FWUPD_INSTALL_FLAG_FORCE

   

enum FwupdUpdateState

The update state.

Members

FWUPD_UPDATE_STATE_UNKNOWN

Unknown

 

FWUPD_UPDATE_STATE_PENDING

Update is pending

 

FWUPD_UPDATE_STATE_SUCCESS

Update was successfull

 

FWUPD_UPDATE_STATE_FAILED

Update failed