Function

FwupdDeviceproblem_from_string

since: 1.8.1

Declaration [src]

FwupdDeviceProblem
fwupd_device_problem_from_string (
  const gchar* val
)

Description [src]

Converts a string to an enumerated value.

Available since: 1.8.1

Parameters

val

Type: const gchar*

A string, e.g. system-power-too-low.

The argument can be NULL.
The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.

Return value

Type: FwupdDeviceProblem

Enumerated value.