Function

FwupdDeviceflag_from_string

Declaration [src]

FwupdDeviceFlags
fwupd_device_flag_from_string (
  const gchar* device_flag
)

Description [src]

Converts a string to a enumerated device flag.

Available since:0.7.0

Parameters

device_flag const gchar*
 

A string, e.g. require-ac

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.

Return value

Returns: FwupdDeviceFlags
 

Enumerated value.