[vala/0.40] gobject-introspection-1.0: Fix TypeInfo and TypeTag method references
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.40] gobject-introspection-1.0: Fix TypeInfo and TypeTag method references
- Date: Tue, 9 Apr 2019 13:50:37 +0000 (UTC)
commit dc4f3b6294e297ef67fcbd67d3aaabbbd6de9bf0
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Thu Mar 28 00:02:59 2019 +0100
gobject-introspection-1.0: Fix TypeInfo and TypeTag method references
Fixes https://gitlab.gnome.org/GNOME/vala/issues/778
vapi/gobject-introspection-1.0.vapi | 5 +++--
vapi/metadata/GIRepository-2.0-custom.vala | 2 +-
vapi/metadata/GIRepository-2.0.metadata | 6 ++++--
3 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/vapi/gobject-introspection-1.0.vapi b/vapi/gobject-introspection-1.0.vapi
index 1c3d25cd6..b763e1a9d 100644
--- a/vapi/gobject-introspection-1.0.vapi
+++ b/vapi/gobject-introspection-1.0.vapi
@@ -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)]
diff --git a/vapi/metadata/GIRepository-2.0-custom.vala b/vapi/metadata/GIRepository-2.0-custom.vala
index 34a8f7c14..3ebf7c868 100644
--- a/vapi/metadata/GIRepository-2.0-custom.vala
+++ b/vapi/metadata/GIRepository-2.0-custom.vala
@@ -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);
}
}
diff --git a/vapi/metadata/GIRepository-2.0.metadata b/vapi/metadata/GIRepository-2.0.metadata
index 64313818c..49012cbf9 100644
--- a/vapi/metadata/GIRepository-2.0.metadata
+++ b/vapi/metadata/GIRepository-2.0.metadata
@@ -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"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]