Function

RBfind_plugin_data_file

Declaration [src]

char*
rb_find_plugin_data_file (
  GObject* plugin,
  const char* name
)

Description [src]

Locates a file under the plugin’s data directory.

Parameters

plugin

Type: GObject

The plugin object.

The data is owned by the caller of the function.
name

Type: const char*

Name of the file to find.

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

Return value

Type: char*

Allocated string containing the location of the file.

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