From: Rico Tzschichholz Date: Sun, 7 Mar 2021 12:42:16 +0000 (+0100) Subject: glib-2.0: Add some missing type-arguments X-Git-Tag: 0.51.91~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc066f1b7b49bd9b9b43fb8c751faead23428dc6;p=thirdparty%2Fvala.git glib-2.0: Add some missing type-arguments --- diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index 3789fde30..65ba798cc 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -2207,7 +2207,7 @@ namespace GLib { public static void yield (); public static void exit (T retval); [Version (deprecated_since = "2.32", since = "2.10")] - public static void @foreach (Func thread_func); + public static void @foreach (Func> thread_func); [CCode (cname = "g_usleep")] public static void usleep (ulong microseconds); @@ -2395,10 +2395,10 @@ namespace GLib { [CCode (cname = "g_thread_pool_free")] void _free (bool immediate, bool wait); [CCode (cname = "vala__g_thread_pool_free_wrapper")] - public static void free (owned ThreadPool? pool, bool immediate, bool wait) { - ThreadPool* ptr = (owned) pool; + public static void free (owned ThreadPool? pool, bool immediate, bool wait) { + ThreadPool* ptr = (owned) pool; if (ptr != null) { - ((ThreadPool)ptr)._free (immediate, wait); + ((ThreadPool)ptr)._free (immediate, wait); } } public static void set_max_unused_threads (int max_threads); @@ -5026,7 +5026,7 @@ namespace GLib { [CCode (cname = "vala_g_list_is_empty")] public inline bool is_empty () { - return (List?) this == null; + return (List?) this == null; } public G data; @@ -5091,7 +5091,7 @@ namespace GLib { [CCode (cname = "vala_g_slist_is_empty")] public inline bool is_empty () { - return (SList?) this == null; + return (SList?) this == null; } public G data; @@ -5132,7 +5132,7 @@ namespace GLib { public uint get_length (); [Version (since = "2.4")] public void reverse (); - public Queue copy (); + public Queue copy (); [Version (since = "2.4")] public unowned List find (G data); [Version (since = "2.4")] @@ -5656,8 +5656,8 @@ namespace GLib { /* N-ary Trees */ - public delegate bool NodeTraverseFunc (Node node); - public delegate void NodeForeachFunc (Node node); + public delegate bool NodeTraverseFunc (Node node); + public delegate void NodeForeachFunc (Node node); [CCode (cprefix = "G_TRAVERSE_")] public enum TraverseFlags { @@ -5685,8 +5685,8 @@ namespace GLib { public unowned Node append_data (owned G data); public unowned Node prepend_data (owned G data); public void reverse_children (); - public void traverse (TraverseType order, TraverseFlags flags, int max_depth, NodeTraverseFunc func); - public void children_foreach (TraverseFlags flags, NodeForeachFunc func); + public void traverse (TraverseType order, TraverseFlags flags, int max_depth, NodeTraverseFunc func); + public void children_foreach (TraverseFlags flags, NodeForeachFunc func); public unowned Node get_root (); public unowned Node find (TraverseType order, TraverseFlags flags, G data); public unowned Node find_child (TraverseFlags flags, G data); @@ -5722,10 +5722,10 @@ namespace GLib { } public G data; - public Node next; - public Node prev; - public Node parent; - public Node children; + public Node next; + public Node prev; + public Node parent; + public Node children; } /* Quarks */ @@ -5832,7 +5832,7 @@ namespace GLib { /* GTree */ - public delegate bool TraverseNodeFunc (TreeNode node); + public delegate bool TraverseNodeFunc (TreeNode node); [Compact] [Version (since = "2.68")]