Method

ClapperHarvestfill_with_text

since: 0.8

Declaration [src]

gboolean
clapper_harvest_fill_with_text (
  ClapperHarvest* harvest,
  const gchar* media_type,
  gchar* text
)

Description [src]

A convenience method to fill harvest using a NULL terminated string.

For more info, see clapper_harvest_fill() documentation.

Available since: 0.8

Parameters

media_type

Type: const gchar*

Media mime type.

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

Type: gchar*

Data to fill harvest as NULL terminated string.

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

Return value

Type: gboolean

TRUE when filled successfully, FALSE if taken data was empty.