Function

FwupdPluginlid_state_to_string

Declaration [src]

const gchar*
fu_lid_state_to_string (
  FuLidState lid_state
)

Description [src]

Converts an enumerated type to a string.

Available since:1.7.4

Parameters

lid_state FuLidState
 

A battery state, e.g. FU_LID_STATE_CLOSED.

Return value

Returns: const gchar*
 

A string, or NULL for invalid.

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