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.
OLLMrpc.Gi.register("Meta", "16");
var compositor = OLLMrpc.GiMock.mint("Meta-Compositor");
request.connection.export(compositor);
| alias |
wire alias from Gi.register (e.g. Meta-Compositor) |
|
new lease object |
| GLib.Error |
unknown alias or registration failure |