[evolution-data-server/wip/tintou/internet-address-transfer-none] M!46 - camel-internet-address: Annotate methods to fetch strings as transfer none




commit b909f5ac30b4bc0c4a0818667e3c57222299c336
Author: Corentin Noël <corentin noel collabora com>
Date:   Wed Oct 14 20:09:04 2020 +0200

    M!46 - camel-internet-address: Annotate methods to fetch strings as transfer none
    
    The (out) annotation defaults to (transfer full), here the string lifetime are
    linked to the InternetAddress object.
    
    Closes https://gitlab.gnome.org/GNOME/evolution-data-server/-/merge_requests/46

 src/camel/camel-internet-address.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/camel/camel-internet-address.c b/src/camel/camel-internet-address.c
index e91f8b306..790730738 100644
--- a/src/camel/camel-internet-address.c
+++ b/src/camel/camel-internet-address.c
@@ -323,8 +323,8 @@ camel_internet_address_add (CamelInternetAddress *addr,
  * camel_internet_address_get:
  * @addr: a #CamelInternetAddress object
  * @index: address's array index
- * @namep: (out) (nullable): holder for the returned name, or %NULL, if not required.
- * @addressp: (out) (nullable): holder for the returned address, or %NULL, if not required.
+ * @namep: (out) (optional) (nullable) (transfer none): holder for the returned name, or %NULL, if not 
required.
+ * @addressp: (out) (optional) (nullable) (transfer none): holder for the returned address, or %NULL, if not 
required.
  *
  * Get the address at @index.
  *
@@ -355,7 +355,7 @@ camel_internet_address_get (CamelInternetAddress *addr,
  * camel_internet_address_find_name:
  * @addr: a #CamelInternetAddress object
  * @name: name to lookup
- * @addressp: (out) (nullable): holder for address part, or %NULL, if not required.
+ * @addressp: (out) (optional) (nullable) (transfer none): holder for address part, or %NULL, if not 
required.
  *
  * Find address by real name.
  *
@@ -470,7 +470,7 @@ camel_internet_address_ensure_ascii_domains (CamelInternetAddress *addr)
  * camel_internet_address_find_address:
  * @addr: a #CamelInternetAddress object
  * @address: address to lookup
- * @namep: (out) (nullable): holder for the matching name, or %NULL, if not required.
+ * @namep: (out) (optional) (nullable) (transfer none): holder for the matching name, or %NULL, if not 
required.
  *
  * Find an address by address.
  *


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]