mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-06-02 04:30:18 +00:00
Variant: Add wrapper for g_variant_new_dict_entry()
This commit is contained in:
parent
58fb7aa378
commit
cef9b13d72
|
@ -162,6 +162,14 @@ namespace GLib {
|
||||||
native, new UIntPtr ((ulong) children.Length)));
|
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)]
|
[DllImport (Global.GLibNativeDll, CallingConvention = CallingConvention.Cdecl)]
|
||||||
static extern bool g_variant_get_boolean (IntPtr handle);
|
static extern bool g_variant_get_boolean (IntPtr handle);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue