Function

FwupdPlugininput_stream_from_path

Declaration [src]

GInputStream*
fu_input_stream_from_path (
  const gchar* path,
  GError** error
)

Description [src]

Opens the file as n input stream.

Available since:2.0.0

Parameters

path const gchar*
 

A filename.

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

Return value

Returns: GInputStream
 

A GInputStream, or NULL on error.

 The caller of the function takes ownership of the data, and is responsible for freeing it.