FwupdPlugin.tpm_alg_from_string
Description: Reference for FwupdPlugin.tpm_alg_from_string

### Function

# FwupdPlugintpm_alg_from_string

#### Declaration [src]

    FuTpmAlg
    fu_tpm_alg_from_string (
      const gchar* val
    )

#### Description [src]

Converts a string to an enumerated value.

#### Parameters

`val`

  Type: `const gchar*`

  A string, e.g. `sha1`.

  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: `FuTpmAlg`

Enumerated value.