From: Michal Hruby Date: Mon, 28 May 2012 18:46:45 +0000 (+0200) Subject: glib-2.0: Add Bytes.new_with_owner with an owned generic argument X-Git-Tag: 0.17.1~15 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7ca0d1ea72a061fcfbcbd1f1b9a4ea6cc7650ef7;p=thirdparty%2Fvala.git glib-2.0: Add Bytes.new_with_owner with an owned generic argument --- diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index 0addc3eae..89400d755 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -4055,6 +4055,9 @@ namespace GLib { public Bytes.with_free_func ([CCode (array_length_type = "gsize")] owned uint8[] data, GLib.DestroyNotify? free_func = GLib.g_free); public Bytes.from_bytes (GLib.Bytes bytes, size_t offset, size_t length); + [CCode (cname = "g_bytes_new_with_free_func", simple_generics = true)] + public static Bytes new_with_owner ([CCode (array_length_type = "gsize")] uint8[] data, [CCode (destroy_notify_pos = 1.9)] owned T? owner = null); + [CCode (array_length_type = "gsize")] public unowned uint8[] get_data (); public size_t get_size ();