diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-11-27 22:25:27 +0100 |
---|---|---|
committer | Jeffrey Stedfast <jestedfa@microsoft.com> | 2018-11-28 09:52:54 -0500 |
commit | 80f77a7cdc3242779d579aefb568e1d75ad675ee (patch) | |
tree | b8e9a0b766af4ff3fa238d0528d23cc5bc6e05d6 | |
parent | d3cab44cf0d0d31356f237e64c39cd7f1578afde (diff) | |
download | gmime-80f77a7cdc3242779d579aefb568e1d75ad675ee.tar.gz |
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
-rw-r--r-- | gmime/GMime-3.0.metadata | 6 | ||||
-rw-r--r-- | 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 |