[evolution-data-server] vala: Properly annotate CamelServiceAuthType
- From: Corentin Noël <corentinnoel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] vala: Properly annotate CamelServiceAuthType
- Date: Sun, 25 Jul 2021 15:02:56 +0000 (UTC)
commit 1f3a6460324e76348add9ae8d888cf55e7cf9ed5
Author: Corentin Noël <corentin noel collabora com>
Date: Sun Jul 25 17:02:17 2021 +0200
vala: Properly annotate CamelServiceAuthType
Allows to use it to create a CamelSasl subclass.
src/camel/camel-sasl.c | 2 +-
src/vala/Camel-1.2.metadata | 4 +---
src/vala/camel-1.2-custom.vala | 2 +-
3 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/camel/camel-sasl.c b/src/camel/camel-sasl.c
index 0a09c5559..b3da1df3b 100644
--- a/src/camel/camel-sasl.c
+++ b/src/camel/camel-sasl.c
@@ -931,7 +931,7 @@ camel_sasl_authtype_list (gboolean include_plain)
* camel_sasl_authtype:
* @mechanism: the SASL mechanism to get an authtype for
*
- * Returns: a #CamelServiceAuthType for the given mechanism, if
+ * Returns: (transfer none) (nullable): a #CamelServiceAuthType for the given mechanism, if
* it is supported.
**/
CamelServiceAuthType *
diff --git a/src/vala/Camel-1.2.metadata b/src/vala/Camel-1.2.metadata
index 8c94ca7f2..365bc1295 100644
--- a/src/vala/Camel-1.2.metadata
+++ b/src/vala/Camel-1.2.metadata
@@ -145,9 +145,7 @@ VeeStore.get_unmatched_folder type="unowned Camel.VeeFolder"
WeakRefGroup.get type="GLib.Object"
WeakRefGroup.set.object type="owned GLib.Object"
-ServiceAuthType.authproto unowned=false
-ServiceAuthType.description unowned=false
-ServiceAuthType.name unowned=false
+ServiceAuthType struct
// Abstract classes can't have creation methods
Sasl.new symbol_type="function" name="for_service"
diff --git a/src/vala/camel-1.2-custom.vala b/src/vala/camel-1.2-custom.vala
index 76bbf0641..1a3d5b02c 100644
--- a/src/vala/camel-1.2-custom.vala
+++ b/src/vala/camel-1.2-custom.vala
@@ -5,6 +5,6 @@ namespace Camel {
}
public abstract class Sasl : GLib.Object {
- public class Camel.ServiceAuthType auth_type;
+ public class weak Camel.ServiceAuthType? auth_type;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]