]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gio-2.0: make ContentType.guess_for_tree return an array
authorEvan Nemerson <evan@coeus-group.com>
Fri, 22 Jul 2011 22:45:38 +0000 (15:45 -0700)
committerEvan Nemerson <evan@coeus-group.com>
Fri, 22 Jul 2011 22:45:38 +0000 (15:45 -0700)
vapi/gio-2.0.vapi
vapi/packages/gio-2.0/gio-2.0.metadata

index 292a3ecd27ebd8dac4c89b754dfb0e9727eb6ad0..989873ccc93da38f298d4134d72a1022d10c9ec8 100644 (file)
@@ -41,8 +41,8 @@ namespace GLib {
                public static string get_mime_type (string type);
                [CCode (cheader_filename = "gio/gio.h")]
                public static string guess (string? filename, uchar[]? data, out bool result_uncertain);
-               [CCode (cheader_filename = "gio/gio.h")]
-               public static string guess_for_tree (GLib.File root);
+               [CCode (cheader_filename = "gio/gio.h", array_length = false, array_null_terminated = true)]
+               public static string[] guess_for_tree (GLib.File root);
                [CCode (cheader_filename = "gio/gio.h")]
                public static bool is_a (string type, string supertype);
                [CCode (cheader_filename = "gio/gio.h")]
index ecdf9b3ac63193271d0a32a8edb8177ba788ea75..7f6a7cab21ae519fdf23c5fa0d7330006fa1d99d 100644 (file)
@@ -29,6 +29,7 @@ g_content_type_guess.filename nullable="1"
 g_content_type_guess.data nullable="1"
 g_content_type_guess.data_size hidden="1"
 g_content_type_guess.result_uncertain is_out="1"
+g_content_type_guess_for_tree parent="ContentType" transfer_ownership="1" is_array="1" no_array_length="1" array_null_terminated="1" transfer_ownership="1"
 g_content_type_is_* parent="ContentType"
 g_content_types_get_registered type_arguments="string" transfer_ownership="1"
 g_converter_convert.inbuf type_name="uint8" is_array="1" array_length_type="gsize"