[vala] glib-2.0: Add Bytes.new_with_owner with an owned generic argument
- From: Michal Hruby <mhruby src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] glib-2.0: Add Bytes.new_with_owner with an owned generic argument
- Date: Mon, 28 May 2012 18:47:47 +0000 (UTC)
commit 7ca0d1ea72a061fcfbcbd1f1b9a4ea6cc7650ef7
Author: Michal Hruby <michal mhr gmail com>
Date: Mon May 28 20:46:45 2012 +0200
glib-2.0: Add Bytes.new_with_owner with an owned generic argument
vapi/glib-2.0.vapi | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 0addc3e..89400d7 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<T> ([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 ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]