]> 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, 10 Apr 2019 14:26:19 +0000 (16:26 +0200)
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 1c3d25cd67a969eec1aec4b8e258eb2637436e9d..b763e1a9d1defa7dfa12ee17364e816165c0472f 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);
@@ -226,7 +226,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 ();
@@ -402,6 +402,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 64313818c54bfd678dede90a4860fd00f1affa39..49012cbf9f0a173ce8332f04c797b8c4fe11cf4d 100644 (file)
@@ -17,5 +17,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"