summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-ref.c
diff options
context:
space:
mode:
authorCorentin Noël <corentin.noel@collabora.com>2023-02-09 16:28:53 +0100
committerCorentin Noël <tintou@noel.tf>2023-02-09 16:28:53 +0100
commitfa750fba8032dd271b33ef1553b46f9a0a985e50 (patch)
treeb213c822b747a7286f8577ad58a673d84c9bbca8 /src/libostree/ostree-ref.c
parent51f3d03d9bc1e39b5e47c629ae5eb9f483da56b8 (diff)
downloadostree-fa750fba8032dd271b33ef1553b46f9a0a985e50.tar.gz
libostree: Enhance the annotation coverage
Increase the coverage of the GObject Introspection annotation and most notably replace the use of "allow-none" with "out" parameters to "nullable" or "optional" as the previous annotation is deprecated and ambiguous.
Diffstat (limited to 'src/libostree/ostree-ref.c')
-rw-r--r--src/libostree/ostree-ref.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libostree/ostree-ref.c b/src/libostree/ostree-ref.c
index eb77d97c..5a2f44e3 100644
--- a/src/libostree/ostree-ref.c
+++ b/src/libostree/ostree-ref.c
@@ -45,7 +45,7 @@ G_DEFINE_BOXED_TYPE (OstreeCollectionRef, ostree_collection_ref,
* refspec; no remote name is included), which can be used for non-P2P
* operations.
*
- * Returns: (transfer full) (nullable): a new #OstreeCollectionRef
+ * Returns: (transfer full): a new #OstreeCollectionRef
* Since: 2018.6
*/
OstreeCollectionRef *
@@ -102,7 +102,7 @@ ostree_collection_ref_free (OstreeCollectionRef *ref)
/**
* ostree_collection_ref_hash:
- * @ref: (not nullable): an #OstreeCollectionRef
+ * @ref: (not nullable) (type OstreeCollectionRef): an #OstreeCollectionRef
*
* Hash the given @ref. This function is suitable for use with #GHashTable.
* @ref must be non-%NULL.
@@ -123,8 +123,8 @@ ostree_collection_ref_hash (gconstpointer ref)
/**
* ostree_collection_ref_equal:
- * @ref1: (not nullable): an #OstreeCollectionRef
- * @ref2 : (not nullable): another #OstreeCollectionRef
+ * @ref1: (not nullable) (type OstreeCollectionRef): an #OstreeCollectionRef
+ * @ref2 : (not nullable) (type OstreeCollectionRef): another #OstreeCollectionRef
*
* Compare @ref1 and @ref2 and return %TRUE if they have the same collection ID and
* ref name, and %FALSE otherwise. Both @ref1 and @ref2 must be non-%NULL.