[gmime] Improve vala bindings
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gmime] Improve vala bindings
- Date: Wed, 28 Nov 2018 18:33:26 +0000 (UTC)
commit 80f77a7cdc3242779d579aefb568e1d75ad675ee
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Tue Nov 27 22:25:27 2018 +0100
Improve vala bindings
Use correct symbol prefixes which avoid loads of cname attributes.
Unhide FilterBest.charset() method which conflicts with charset field.
Fixes https://gitlab.gnome.org/GNOME/gmime/issues/2
Object.write_to_stream conflicts with function pointer with the same name
but with a different signature.
Fixes https://gitlab.gnome.org/GNOME/gmime/issues/3
gmime/GMime-3.0.metadata | 6 ++++++
gmime/Makefile.am | 4 ++--
2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/gmime/GMime-3.0.metadata b/gmime/GMime-3.0.metadata
index d4886df2..1adbbfb9 100644
--- a/gmime/GMime-3.0.metadata
+++ b/gmime/GMime-3.0.metadata
@@ -19,3 +19,9 @@ Filter
.outreal type="uint8[]"
.outbuf type="unowned uint8[]" array_length_field="outsize"
.outptr type="unowned uint8[]"
+
+// Conflicts
+Object
+ .write_to_stream#virtual_method name="write_to_stream_vfunc"
+FilterBest
+ .charset#method name="get_charset"
diff --git a/gmime/Makefile.am b/gmime/Makefile.am
index b90dc4bc..71d7e6d2 100644
--- a/gmime/Makefile.am
+++ b/gmime/Makefile.am
@@ -209,8 +209,8 @@ GMime_3_0_gir_EXPORT_PACKAGES = gmime-3.0
GMime_3_0_gir_SCANNERFLAGS = \
--c-include="gmime/gmime.h" \
--accept-unprefixed \
- --symbol-prefix "gmime_" \
- --symbol-prefix "g_mime_"
+ --symbol-prefix "g_mime" \
+ --symbol-prefix "gmime"
INTROSPECTION_GIRS += GMime-3.0.gir
girdir = $(datadir)/gir-1.0
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]