mint


Description:

public static Object mint (string alias) throws Error

Mint a fake GObject lease for a wire alias.

Mock servers must never GLib.Object.new real Meta/Clutter/St GTypes — there is no live compositor. Registers a GLib.Object-parented fake GType (cached under OLLMrpcGiMock_*), maps it to alias via Bin.register_alias, and returns a new instance that skips stock C init while encoding as alias on the wire.

Example

OLLMrpc.Gi.register("Meta", "16");
var compositor = OLLMrpc.GiMock.mint("Meta-Compositor");
request.connection.export(compositor);

Parameters:

alias

wire alias from Gi.register (e.g. Meta-Compositor)

Returns:

new lease object

Exceptions:

GLib.Error

unknown alias or registration failure