Method

PeasPluginInfoget_resource

Declaration [src]

GResource*
peas_plugin_info_get_resource (
  const PeasPluginInfo* info,
  const char* filename,
  GError** error
)

Description [src]

Creates a new GResource for the given filename located in the module directory. If filename is NULL then “${module_name}.gresource” will be loaded.

Parameters

filename const char*
 

The filename of the resource, or NULL.

 The argument can be NULL.
 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: GResource*
 

A new GResource, or NULL.

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