Top | ![]() |
![]() |
![]() |
![]() |
const gchar * | fwupd_status_to_string () |
FwupdStatus | fwupd_status_from_string () |
const gchar * | fwupd_device_flag_to_string () |
FwupdDeviceFlags | fwupd_device_flag_from_string () |
const gchar * | fwupd_plugin_flag_to_string () |
FwupdPluginFlags | fwupd_plugin_flag_from_string () |
const gchar * | fwupd_release_flag_to_string () |
FwupdReleaseFlags | fwupd_release_flag_from_string () |
const gchar * | fwupd_release_urgency_to_string () |
FwupdReleaseUrgency | fwupd_release_urgency_from_string () |
const gchar * | fwupd_update_state_to_string () |
FwupdUpdateState | fwupd_update_state_from_string () |
const gchar * | fwupd_trust_flag_to_string () |
FwupdTrustFlags | fwupd_trust_flag_from_string () |
const gchar * | fwupd_feature_flag_to_string () |
FwupdFeatureFlags | fwupd_feature_flag_from_string () |
FwupdKeyringKind | fwupd_keyring_kind_from_string () |
const gchar * | fwupd_keyring_kind_to_string () |
FwupdVersionFormat | fwupd_version_format_from_string () |
const gchar * | fwupd_version_format_to_string () |
This file also provides helper functions to map enums to strings and back again.
See also: fwupd-error
const gchar *
fwupd_status_to_string (FwupdStatus status
);
Converts a FwupdStatus to a string.
Since: 0.1.1
FwupdStatus
fwupd_status_from_string (const gchar *status
);
Converts a string to a FwupdStatus.
Since: 0.1.1
const gchar *
fwupd_device_flag_to_string (FwupdDeviceFlags device_flag
);
Converts a FwupdDeviceFlags to a string.
Since: 0.7.0
FwupdDeviceFlags
fwupd_device_flag_from_string (const gchar *device_flag
);
Converts a string to a FwupdDeviceFlags.
Since: 0.7.0
const gchar *
fwupd_plugin_flag_to_string (FwupdPluginFlags plugin_flag
);
Converts a FwupdDeviceFlags to a string.
Since: 1.5.0
FwupdPluginFlags
fwupd_plugin_flag_from_string (const gchar *plugin_flag
);
Converts a string to a FwupdPluginFlags.
Since: 1.5.0
const gchar *
fwupd_release_flag_to_string (FwupdReleaseFlags release_flag
);
Converts a FwupdReleaseFlags to a string.
Since: 1.2.6
FwupdReleaseFlags
fwupd_release_flag_from_string (const gchar *release_flag
);
Converts a string to a FwupdReleaseFlags.
Since: 1.2.6
const gchar *
fwupd_release_urgency_to_string (FwupdReleaseUrgency release_urgency
);
Converts an enumerated value to a string.
Since: 1.4.0
FwupdReleaseUrgency
fwupd_release_urgency_from_string (const gchar *release_urgency
);
Converts a string to an enumerated value.
Since: 1.4.0
const gchar *
fwupd_update_state_to_string (FwupdUpdateState update_state
);
Converts a FwupdUpdateState to a string.
Since: 0.7.0
FwupdUpdateState
fwupd_update_state_from_string (const gchar *update_state
);
Converts a string to a FwupdUpdateState.
Since: 0.7.0
const gchar *
fwupd_trust_flag_to_string (FwupdTrustFlags trust_flag
);
Converts a FwupdTrustFlags to a string.
Since: 0.7.0
FwupdTrustFlags
fwupd_trust_flag_from_string (const gchar *trust_flag
);
Converts a string to a FwupdTrustFlags.
Since: 0.7.0
const gchar *
fwupd_feature_flag_to_string (FwupdFeatureFlags feature_flag
);
Converts a FwupdFeatureFlags to a string.
Since: 1.4.5
FwupdFeatureFlags
fwupd_feature_flag_from_string (const gchar *feature_flag
);
Converts a string to a FwupdFeatureFlags.
Since: 1.4.5
FwupdKeyringKind
fwupd_keyring_kind_from_string (const gchar *keyring_kind
);
Converts an printable string to an enumerated type.
Since: 0.9.7
const gchar *
fwupd_keyring_kind_to_string (FwupdKeyringKind keyring_kind
);
Converts an enumerated type to a printable string.
Since: 0.9.7
FwupdVersionFormat
fwupd_version_format_from_string (const gchar *str
);
Converts text to a display version type.
Since: 1.2.9
const gchar *
fwupd_version_format_to_string (FwupdVersionFormat kind
);
Converts a display version type to text.
Since: 1.2.9
The flags to show daemon status.
Unknown state |
||
Idle |
||
Loading a resource |
||
Decompressing firmware |
||
Restarting the device |
||
Writing to a device |
||
Verifying (reading) a device |
||
Scheduling an offline update |
||
A file is downloading |
||
Reading from a device |
||
Erasing a device |
||
Waiting for authentication |
||
The device is busy |
||
The daemon is shutting down |
The flags to the feature capabilities of the front-end client.
#define FWUPD_DEVICE_FLAG_USE_RUNTIME_VERSION (1u << 11) /* Since: 1.0.6 */
#define FWUPD_DEVICE_FLAG_INSTALL_PARENT_FIRST (1u << 12) /* Since: 1.0.8 */
#define FWUPD_DEVICE_FLAG_WAIT_FOR_REPLUG (1u << 14) /* Since: 1.1.2 */
#define FWUPD_DEVICE_FLAG_IGNORE_VALIDATION (1u << 15) /* Since: 1.1.2 */
#define FWUPD_DEVICE_FLAG_NEEDS_SHUTDOWN (1u << 17) /* Since: 1.2.4 */
#define FWUPD_DEVICE_FLAG_ANOTHER_WRITE_REQUIRED (1u << 18) /* Since: 1.2.5 */
#define FWUPD_DEVICE_FLAG_NO_AUTO_INSTANCE_IDS (1u << 19) /* Since: 1.2.5; Deprecated: 1.5.5 */
#define FWUPD_DEVICE_FLAG_NEEDS_ACTIVATION (1u << 20) /* Since: 1.2.6 */
#define FWUPD_DEVICE_FLAG_ENSURE_SEMVER (1u << 21) /* Since: 1.2.9; Deprecated: 1.5.5 */
#define FWUPD_DEVICE_FLAG_ONLY_SUPPORTED (1u << 23) /* Since: 1.3.3; Deprecated: 1.5.5 */
#define FWUPD_DEVICE_FLAG_WILL_DISAPPEAR (1u << 24) /* Since: 1.3.3 */
#define FWUPD_DEVICE_FLAG_CAN_VERIFY_IMAGE (1u << 26) /* Since: 1.3.3 */
#define FWUPD_DEVICE_FLAG_SELF_RECOVERY (1u << 28) /* Since: 1.3.3 */
#define FWUPD_DEVICE_FLAG_USABLE_DURING_UPDATE (1u << 29) /* Since: 1.3.3 */
#define FWUPD_DEVICE_FLAG_VERSION_CHECK_REQUIRED (1u << 30) /* Since: 1.3.7 */
#define FWUPD_DEVICE_FLAG_INSTALL_ALL_RELEASES (1u << 31) /* Since: 1.3.7 */
#define FWUPD_DEVICE_FLAG_MD_SET_NAME (1llu << 32) /* Since: 1.4.0; Deprecated: 1.5.5 */
#define FWUPD_DEVICE_FLAG_MD_SET_NAME_CATEGORY (1llu << 33) /* Since: 1.4.0; Deprecated: 1.5.5 */
#define FWUPD_DEVICE_FLAG_MD_SET_VERFMT (1llu << 34) /* Since: 1.4.0; Deprecated: 1.5.5 */
#define FWUPD_DEVICE_FLAG_ADD_COUNTERPART_GUIDS (1llu << 35) /* Since: 1.4.0 */
#define FWUPD_DEVICE_FLAG_NO_GUID_MATCHING (1llu << 36) /* Since: 1.4.1; Deprecated: 1.5.8 */
#define FWUPD_DEVICE_FLAG_UPDATABLE_HIDDEN (1llu << 37) /* Since: 1.4.1 */
#define FWUPD_DEVICE_FLAG_SKIPS_RESTART (1llu << 38) /* Since: 1.5.0 */
#define FWUPD_DEVICE_FLAG_HAS_MULTIPLE_BRANCHES (1llu << 39) /* Since: 1.5.0 */
#define FWUPD_DEVICE_FLAG_BACKUP_BEFORE_INSTALL (1llu << 40) /* Since: 1.5.0 */
#define FWUPD_DEVICE_FLAG_MD_SET_ICON (1llu << 41) /* Since: 1.5.2; Deprecated: 1.5.5 */
#define FWUPD_RELEASE_FLAG_TRUSTED_PAYLOAD (1u << 0) /* Since: 1.2.6 */
#define FWUPD_RELEASE_FLAG_TRUSTED_METADATA (1u << 1) /* Since: 1.2.6 */
#define FWUPD_RELEASE_FLAG_BLOCKED_VERSION (1u << 4) /* Since: 1.2.6 */
#define FWUPD_RELEASE_FLAG_BLOCKED_APPROVAL (1u << 5) /* Since: 1.2.6 */
#define FWUPD_PLUGIN_FLAG_CLEAR_UPDATABLE (1u << 2) /* Since: 1.5.0 */
#define FWUPD_PLUGIN_FLAG_CAPSULES_UNSUPPORTED (1u << 4) /* Since: 1.5.0 */
#define FWUPD_PLUGIN_FLAG_UNLOCK_REQUIRED (1u << 5) /* Since: 1.5.0 */
#define FWUPD_PLUGIN_FLAG_EFIVAR_NOT_MOUNTED (1u << 6) /* Since: 1.5.0 */
#define FWUPD_PLUGIN_FLAG_ESP_NOT_FOUND (1u << 7) /* Since: 1.5.0 */
Flags to set when performing the firmware update or install.
No flags set |
||
Schedule this for next boot |
||
Allow reinstalling the same version |
||
Allow downgrading firmware |
||
Force the update even if not a good idea |
||
Do not write to the history database |
||
Allow firmware branch switching |
||
Ignore firmware CRCs and checksums |
||
Ignore firmware vendor and project checks |
||
Ignore requirement of external power source |
||
Do not use heuristics when parsing the image |
The update state.
The flags used when parsing version numbers.
If no verification is required then FWUPD_VERSION_FORMAT_PLAIN
should
be used to signify an unparsable text string.
Unknown version format |
||
An unidentified format text string |
||
A single integer version number |
||
Two AABB.CCDD version numbers |
||
Microsoft-style AA.BB.CCDD version numbers |
||
UEFI-style AA.BB.CC.DD version numbers |
||
Binary coded decimal notation |
||
Intel ME-style bitshifted notation |
||
Intel ME-style A.B.CC.DDDD notation notation |
||
Legacy Microsoft Surface 10b.12b.10b |
||
Microsoft Surface 8b.16b.8b |
||
Dell BIOS BB.CC.DD style |
||
Hexadecimal 0xAABCCDD style |