Function

FwupdPlugindisplay_state_from_string

Declaration [src]

FuDisplayState
fu_display_state_from_string (
  const gchar* val
)

Description [src]

Converts a string to an enumerated value.

Available since:1.9.6

Parameters

val const gchar*
 

A string, e.g. connected

 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

Returns: FuDisplayState
 

Enumerated value.