]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gio-2.0: Fix InetAddress.from_bytes bindings
authorLuca Bruno <lucabru@src.gnome.org>
Sun, 20 Mar 2011 00:04:29 +0000 (01:04 +0100)
committerLuca Bruno <lucabru@src.gnome.org>
Sun, 20 Mar 2011 00:04:59 +0000 (01:04 +0100)
Based on patch by Robert Ancell.

Fixes bug 644974.

vapi/gio-2.0.vapi
vapi/packages/gio-2.0/gio-2.0.metadata

index c355f65d14d75ba57812d132cc76bffbaa089616..875b8883e7ece8e274a45f47ebe90ea9cd11e409 100644 (file)
@@ -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 ();
index 0e85599d602020c5fd8ec7b5edd9feb784e35684..72869a129b4e56da512f33204730ba5d286610e2 100644 (file)
@@ -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"