summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Lebon <jonathan@jlebon.com>2022-02-09 14:29:50 -0500
committerJonathan Lebon <jonathan@jlebon.com>2022-02-09 14:35:31 -0500
commitc5ecef0aa453a1ba2e9fb9a2319bf4a9999a5180 (patch)
tree871ca5bf762975a523f0644a52941170d95760ef
parent0eaad8762b73c23a3c13b5fdaa40f47677527a0b (diff)
downloadostree-c5ecef0aa453a1ba2e9fb9a2319bf4a9999a5180.tar.gz
lib/gpg-verify-result: Add missing floating annotation
I think I'm hitting issues due to this while using the Rust bindings: https://github.com/coreos/rpm-ostree/pull/3406#issuecomment-1033084956 The bindings for those APIs use `from_glib_full` which says: > Because ownership can only be transferred if something is already > referenced, this is unsuitable for floating references.
-rw-r--r--src/libostree/ostree-gpg-verify-result-dummy.c4
-rw-r--r--src/libostree/ostree-gpg-verify-result.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/libostree/ostree-gpg-verify-result-dummy.c b/src/libostree/ostree-gpg-verify-result-dummy.c
index e0116518..382b7b92 100644
--- a/src/libostree/ostree-gpg-verify-result-dummy.c
+++ b/src/libostree/ostree-gpg-verify-result-dummy.c
@@ -143,7 +143,7 @@ ostree_gpg_verify_result_lookup (OstreeGpgVerifyResult *result,
* an invalid @signature_index. Use ostree_gpg_verify_result_count_all() to
* find the number of signatures in @result.
*
- * Returns: a new, floating, #GVariant tuple
+ * Returns: (transfer floating): a new, floating, #GVariant tuple
**/
GVariant *
ostree_gpg_verify_result_get (OstreeGpgVerifyResult *result,
@@ -184,7 +184,7 @@ ostree_gpg_verify_result_get (OstreeGpgVerifyResult *result,
* ostree_gpg_verify_result_count_all() to find the number of signatures in
* @result.
*
- * Returns: a new, floating, #GVariant tuple
+ * Returns: (transfer floating): a new, floating, #GVariant tuple
**/
GVariant *
ostree_gpg_verify_result_get_all (OstreeGpgVerifyResult *result,
diff --git a/src/libostree/ostree-gpg-verify-result.c b/src/libostree/ostree-gpg-verify-result.c
index 7bf45aac..3b6a7da4 100644
--- a/src/libostree/ostree-gpg-verify-result.c
+++ b/src/libostree/ostree-gpg-verify-result.c
@@ -298,7 +298,7 @@ ostree_gpg_verify_result_lookup (OstreeGpgVerifyResult *result,
* an invalid @signature_index. Use ostree_gpg_verify_result_count_all() to
* find the number of signatures in @result.
*
- * Returns: a new, floating, #GVariant tuple
+ * Returns: (transfer floating): a new, floating, #GVariant tuple
**/
GVariant *
ostree_gpg_verify_result_get (OstreeGpgVerifyResult *result,
@@ -490,7 +490,7 @@ ostree_gpg_verify_result_get (OstreeGpgVerifyResult *result,
* ostree_gpg_verify_result_count_all() to find the number of signatures in
* @result.
*
- * Returns: a new, floating, #GVariant tuple
+ * Returns: (transfer floating): a new, floating, #GVariant tuple
**/
GVariant *
ostree_gpg_verify_result_get_all (OstreeGpgVerifyResult *result,