[vala] gio-2.0: Fix InetAddress.from_bytes bindings



commit 53a582c1a1de5c45056629ad6b4e93f14cc44e80
Author: Luca Bruno <lucabru src gnome org>
Date:   Sun Mar 20 01:04:29 2011 +0100

    gio-2.0: Fix InetAddress.from_bytes bindings
    
    Based on patch by Robert Ancell.
    
    Fixes bug 644974.

 vapi/gio-2.0.vapi                      |    2 +-
 vapi/packages/gio-2.0/gio-2.0.metadata |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index c355f65..875b888 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -875,7 +875,7 @@ namespace GLib {
 		[CCode (has_construct_function = false)]
 		public InetAddress.any (GLib.SocketFamily family);
 		[CCode (has_construct_function = false)]
-		public InetAddress.from_bytes (uchar bytes, GLib.SocketFamily family);
+		public InetAddress.from_bytes ([CCode (array_length = false)] uint8[] bytes, GLib.SocketFamily family);
 		[CCode (has_construct_function = false)]
 		public InetAddress.from_string (string str);
 		public GLib.SocketFamily get_family ();
diff --git a/vapi/packages/gio-2.0/gio-2.0.metadata b/vapi/packages/gio-2.0/gio-2.0.metadata
index 0e85599..72869a1 100644
--- a/vapi/packages/gio-2.0/gio-2.0.metadata
+++ b/vapi/packages/gio-2.0/gio-2.0.metadata
@@ -177,6 +177,7 @@ g_file_unmount_mountable async="1"
 g_file_unmount_mountable_with_operation async="1"
 g_icon_new_for_string transfer_ownership="1" nullable="1"
 g_icon_to_string transfer_ownership="1"
+g_inet_address_new_from_bytes.bytes type_name="uint8" is_array="1" no_array_length="1"
 g_inet_address_to_string transfer_ownership="1"
 g_inet_address_to_bytes type_name="uint8" is_array="1" no_array_length="1"
 g_initable_new.cancellable nullable="1"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]