Function

FwupdPluginPluginguess_name_from_fn

Declaration [src]

gchar*
fu_plugin_guess_name_from_fn (
  const gchar* filename
)

Description [src]

Tries to guess the name of the plugin from a filename.

Available since:1.0.8

Parameters

filename const gchar*
 

Filename to guess.

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

Return value

Returns: utf8
 

The guessed name of the plugin.

 The caller of the function takes ownership of the data, and is responsible for freeing it.
 The string is a NUL terminated UTF-8 string.