sepolicy: Add missing `(nullable)`
authorColin Walters <walters@verbum.org>
Tue, 19 Mar 2024 00:38:19 +0000 (20:38 -0400)
committerColin Walters <walters@verbum.org>
Tue, 19 Mar 2024 14:23:43 +0000 (10:23 -0400)
This can return NULL if there's no real policy.

Now obviously we need to update the Rust bindings too but...
I am having trouble doing that, we're pretty out of date with
upstream.

src/libostree/ostree-sepolicy.c

index 54be6f59ad082733172b13ea7a583e1fe0a84fa5..2e6ec00e2a98f573b034cc28462315b33c28b9ee 100644 (file)
@@ -497,7 +497,7 @@ ostree_sepolicy_get_path (OstreeSePolicy *self)
  * ostree_sepolicy_get_name:
  * @self:
  *
- * Returns: (transfer none): Type of current policy
+ * Returns: (transfer none) (nullable): Type of current policy
  */
 const char *
 ostree_sepolicy_get_name (OstreeSePolicy *self)