Package: gio

Function g-resource-load

Lambda List

g-resource-load (filename)

Arguments

filename -- a string with the path of a filename to load, in the GLib filenname encoding

Return Value

A new g-resource instance.

Details

Loads a binary resource bundle and creates a g-resource instance representation of it, allowing you to query it for data.

If you want to use this resource in the global resource namespace you need to register it with the g-resources-register function.

The function signals an error if the resource file does not exist.
 

See also

2022-1-21