Add GLib.Signature - a string subtype for DBus signatures
It is a string type used to describe DBus type signature. If I'm getting it right, it should end up very much like existing GLib.ObjectPath
:
[CCode (cname = "char", const_cname = "const char", copy_function = "g_strdup", free_function = "g_free", cheader_filename = "stdlib.h,string.h,glib.h", type_id = "G_TYPE_STRING", marshaller_type_name = "STRING", param_spec_function = "g_param_spec_string", get_value_function = "g_value_get_string", set_value_function = "g_value_set_string", take_value_function = "g_value_take_string", type_signature = "g")]
public class Signature : string {
[CCode (cname = "g_strdup")]
public Signature (string signature);
}
A quick look at history of GLib reveals that this type always was a part of GVariant, thus no need for versioning things. It's mostly useful when dealing with DBus, which is how I came across it in the first place. Example of a method using this type in practice: