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_release_flag_to_string () |
FwupdReleaseFlags | fwupd_release_flag_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 () |
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_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_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
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 |
#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 */
#define FWUPD_DEVICE_FLAG_NEEDS_ACTIVATION (1u << 20) /* Since: 1.2.6 */
#define FWUPD_DEVICE_FLAG_ENSURE_SEMVER (1u << 21) /* Since: 1.2.9 */
#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 */
Flags to set when performing the firwmare update or install.
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 |
||
Dell-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 |