Variant: Add wrapper for g_variant_new_dict_entry()
This commit is contained in:
parent
58fb7aa378
commit
cef9b13d72
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue