Variant: Add wrapper for g_variant_new_dict_entry()

This commit is contained in:
Xavier Claessens 2014-05-21 14:29:01 -04:00
parent 58fb7aa378
commit cef9b13d72

View file

@ -162,6 +162,14 @@ namespace GLib {
native, new UIntPtr ((ulong) children.Length)));
}
[DllImport (Global.GLibNativeDll, CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr g_variant_new_dict_entry (IntPtr k, IntPtr v);
public static Variant NewDictEntry (Variant k, Variant v)
{
return new Variant (g_variant_new_dict_entry (k.Handle, v.Handle));
}
[DllImport (Global.GLibNativeDll, CallingConvention = CallingConvention.Cdecl)]
static extern bool g_variant_get_boolean (IntPtr handle);