Method

AppStreamComposeUnitread_data

Declaration [src]

GBytes*
asc_unit_read_data (
  AscUnit* unit,
  const gchar* filename,
  GError** error
)

Description [src]

Read the contents of the selected file into memory and return them.

Parameters

filename const gchar*
 

The file to read data for.

 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: GBytes
  No description available.
 The caller of the method takes ownership of the data, and is responsible for freeing it.