add_class


Description:

public static void add_class (string name, Type type, ...)

List FFI instance methods for a wire prefix.

Pair method suffix with a D-Bus signature (same letters as args). "" is (self, Request) only; the method may still read Request.args. S is one string[] value and two C args (pointer + Vala length). The live singleton is still register.

Example

OLLMrpc.Request.add_class(
"RPC-Daemon", typeof(Daemon), "hello", "is"
);
OLLMrpc.Request.register("RPC-Daemon", this.daemon);

Parameters:

name

wire object prefix (e.g. Folder)

type

handler GType (C prefix)

...

method, signature pairs