register


Description:

public static void register (string ns, string version) throws Error

Require ns / version and register each object or interface GType.

Alias is ns-Name (hyphen, same style as RPC-Live-Remote). Skips infos that are not objects or interfaces, or have no GType. A second register of the same alias is a no-op. Also records ns in namespaces so bare Clutter.fn / Meta.fn dispatch to typelib namespace functions.

Parameters:

ns

typelib namespace (Gio, Meta)

version

typelib version (2.0, 16)

Exceptions:

GLib.Error

when GI.Repository.require fails