Variant: Add wrapper for g_variant_new_variant()
This commit is contained in:
parent
b357aaef84
commit
b5062a8c7d
1 changed files with 7 additions and 0 deletions
|
@ -59,6 +59,13 @@ namespace GLib {
|
|||
this.handle = g_variant_ref_sink (handle);
|
||||
}
|
||||
|
||||
[DllImport (Global.GLibNativeDll, CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_variant_new_variant (IntPtr val);
|
||||
|
||||
public static Variant NewVariant (Variant val) {
|
||||
return new Variant (g_variant_new_variant (val.Handle));
|
||||
}
|
||||
|
||||
[DllImport (Global.GLibNativeDll, CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr g_variant_new_boolean (bool val);
|
||||
|
||||
|
|
Loading…
Reference in a new issue