lib/deltas: Annotate from checksum as nullable
authorDan Nicholson <dbn@endlessos.org>
Mon, 2 Nov 2020 23:42:30 +0000 (16:42 -0700)
committerDan Nicholson <dbn@endlessos.org>
Mon, 2 Nov 2020 23:42:30 +0000 (16:42 -0700)
Without this you can't create a scratch delta from GI. While here,
switch the deprecated allow-none annotations to nullable.

src/libostree/ostree-repo-static-delta-compilation.c

index 753f8aee0066bf968ae07ba91813195ea58ad89d..893ce2fa42317a6c20c355ca7866b467df5b782e 100644 (file)
@@ -1313,10 +1313,10 @@ get_fallback_headers (OstreeRepo               *self,
  * ostree_repo_static_delta_generate:
  * @self: Repo
  * @opt: High level optimization choice
- * @from: ASCII SHA256 checksum of origin, or %NULL
+ * @from: (nullable): ASCII SHA256 checksum of origin, or %NULL
  * @to: ASCII SHA256 checksum of target
- * @metadata: (allow-none): Optional metadata
- * @params: (allow-none): Parameters, see below
+ * @metadata: (nullable): Optional metadata
+ * @params: (nullable): Parameters, see below
  * @cancellable: Cancellable
  * @error: Error
  *