[gcr/wip/nielsdg/fix-meson-gir] gcr-certificate: Add (virtual) annotation
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcr/wip/nielsdg/fix-meson-gir] gcr-certificate: Add (virtual) annotation
- Date: Sun, 5 Jan 2020 16:14:43 +0000 (UTC)
commit 69aa3b59c38ebd6234820ecf6f73d8b5235d52c3
Author: Niels De Graef <nielsdegraef gmail com>
Date: Sun Jan 5 17:07:56 2020 +0100
gcr-certificate: Add (virtual) annotation
By adding `(virtual)` to a method, you tell the GObject Introspection
scanner that it is the public API of a certain vfunc. Since you can't
annotate a vfunc, GIR has a workaround where it will take over the
annotations of the invoker.
In other words, to make sure the annotations of the return value of
`GcrCertificate.get_der_data()` are understoor correctly, we just need
to add the necessary tags to `gcr_certificate_get_der_data()` and mark
it as `(virtual get_der_data)`.
Fixes https://gitlab.gnome.org/GNOME/gcr/issues/37
gcr/gcr-certificate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gcr/gcr-certificate.c b/gcr/gcr-certificate.c
index e873db3..01e1b35 100644
--- a/gcr/gcr-certificate.c
+++ b/gcr/gcr-certificate.c
@@ -401,7 +401,7 @@ gcr_certificate_compare (GcrComparable *first, GcrComparable *other)
/**
- * gcr_certificate_get_der_data:
+ * gcr_certificate_get_der_data: (virtual get_der_data)
* @self: a #GcrCertificate
* @n_data: a pointer to a location to store the size of the resulting DER data.
*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]