args


Description:

public ArrayList<Value?> args (string signature, ...)

Pack mixed RPC arguments into a Gee.ArrayList of GLib.Value.

The first argument is a D-Bus type signature (GVariant string). Remaining arguments are Vala varargs, one value per complete type in that signature. Unknown or invalid types are fatal.

s string, b bool, y byte, n int16, q uint16, i int32, u uint32, x int64, t uint64, f float, d double, o GLib.Object, g signature, h unix fd, as string[], S same value plus Vala array length at FFI call, ay GLib.Bytes, v GLib.Variant, V GLib.Value (Helper / generator; not D-Bus).

Lease ids and Bin.Serializable encoding happen when Request is written (Bin.StreamValue ).

Example

var req = new OLLMrpc.Request() {
method = "File.read",
args = OLLMrpc.args("s", path)
};

Parameters:

signature

D-Bus type signature, concatenated complete types

Returns:

list to assign to Request.args


Namespace: OLLMrpc
Package: ollmchat