Function

FwupdPlugincommon_realpath

Declaration [src]

gchar*
fu_common_realpath (
  const gchar* filename,
  GError** error
)

Description [src]

Finds the canonicalized absolute filename for a path.

Available since:1.2.6

Parameters

filename const gchar*
 

A filename.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gchar*
 

A filename, or NULL if invalid or not found.

 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.