Method

PeasPluginInfoget_external_data

Declaration [src]

const gchar*
peas_plugin_info_get_external_data (
  const PeasPluginInfo* info,
  const gchar* key
)

Description [src]

Gets external data specified for the plugin.

External data is specified in the plugin info file prefixed with X-. For example, if a key/value pair X-Peas=1 is specified in the key file, you can use “Peas” for key to retrieve the value “1”.

Note: that you can omit the X- prefix when retrieving the value, but not when specifying the value in the file.

Available since:1.6

Parameters

key const gchar*
 

The key to lookup.

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

Return value

Returns: const gchar*
 

The external data, or NULL if the external data could not be found.

 The data is owned by the instance.
 The return value can be NULL.
 The value is a NUL terminated UTF-8 string.