]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gobject-introspection-1.0: Fix TypeInfo and TypeTag method references
authorRico Tzschichholz <ricotz@ubuntu.com>
Wed, 27 Mar 2019 23:02:59 +0000 (00:02 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 27 Mar 2019 23:02:59 +0000 (00:02 +0100)
Fixes https://gitlab.gnome.org/GNOME/vala/issues/778

vapi/gobject-introspection-1.0.vapi
vapi/metadata/GIRepository-2.0-custom.vala
vapi/metadata/GIRepository-2.0.metadata

index a363a8e2d43233e0cae64fc0f0ec2d6a810b7723..2c65065dca34562527d5f0323b4c2dc493fceaf7 100644 (file)
@@ -22,7 +22,7 @@ namespace GI {
        [CCode (cheader_filename = "girepository.h", lower_case_cprefix = "g_base_info_", lower_case_csuffix = "base_info_gtype", ref_function = "g_base_info_ref", type_id = "g_base_info_gtype_get_type ()", unref_function = "g_base_info_unref")]
        [Compact]
        public class BaseInfo {
-               [CCode (cname = "g_info_new")]
+               [CCode (cname = "g_info_new", has_construct_function = false)]
                public BaseInfo (GI.InfoType type, GI.BaseInfo container, GI.Typelib typelib, uint32 offset);
                public bool equal (GI.BaseInfo info2);
                public unowned string get_attribute (string name);
@@ -228,7 +228,7 @@ namespace GI {
                public bool is_foreign ();
                public bool is_gtype_struct ();
        }
-       [CCode (cheader_filename = "girepository.h", type_id = "g_base_info_gtype_get_type ()")]
+       [CCode (cheader_filename = "girepository.h", lower_case_csuffix = "type_info", type_id = "g_base_info_gtype_get_type ()")]
        [Compact]
        public class TypeInfo : GI.BaseInfo {
                public int get_array_fixed_size ();
@@ -404,6 +404,7 @@ namespace GI {
                GHASH,
                ERROR,
                UNICHAR;
+               [CCode (cname = "g_type_tag_to_string")]
                public unowned string to_string ();
        }
        [CCode (cheader_filename = "girepository.h", cprefix = "GI_VFUNC_", has_type_id = false)]
index 34a8f7c14bc9e23fec222cc586d0d5f93de0d279..3ebf7c86817b541c1a1451c83448bbdac6b091a1 100644 (file)
@@ -2,7 +2,7 @@ namespace GI {
        [CCode (cheader_filename = "girepository.h", ref_function = "g_base_info_ref", unref_function = "g_base_info_unref", lower_case_cprefix = "g_base_info_", type_id = "g_base_info_gtype_get_type ()")]
        [Compact]
        public class BaseInfo {
-               [CCode (cname = "g_info_new")]
+               [CCode (cname = "g_info_new", has_construct_function = false)]
                public BaseInfo (GI.InfoType type, GI.BaseInfo container, GI.Typelib typelib, uint32 offset);
        }
 }
index 2f1f9aef193617687aeb5812aac7f19a2e7e73bb..9d40c588942994ee34f8807c5193dbdf01394f93 100644 (file)
@@ -18,5 +18,7 @@ Repository
 Typelib
   .symbol.symbol out
 
-*_info_* symbol_type="method" instance_idx=0
-*_info_invoke throws="GI.InvokeError"
+*_info_invoke symbol_type="method" instance_idx=0 throws="GI.InvokeError"
+TypeInfo lower_case_csuffix="type_info"
+type_info_* symbol_type="method" parent="GI.TypeInfo" instance_idx=0 name="type_info_(.+)"
+type_tag_to_string parent="GI.TypeTag" symbol_type="method" instance_idx=0 name="to_string"