From: Dan Nicholson Date: Fri, 3 Nov 2017 16:10:23 +0000 (+0000) Subject: lib/pull: Skip ostree_repo_resolve_keyring_for_collection for bindings X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~29^2~41 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=519b30b7e1979fea827ea4fe9b0e9ac4db99d631;p=ostree.git lib/pull: Skip ostree_repo_resolve_keyring_for_collection for bindings Since ostree_remote_get_type is not made available to g-ir-scanner, it treats OstreeRemote as a bare struct. That's not kosher for bindings and it issues the following warning: src/libostree/ostree-repo-pull.c:5560: Warning: OSTree: ostree_repo_resolve_keyring_for_collection: return value: Invalid non-constant return of bare structure or union; register as boxed type or (skip) For now, just skip this API for bindings. Closes: #1322 Approved by: pwithnall --- diff --git a/src/libostree/ostree-repo-pull.c b/src/libostree/ostree-repo-pull.c index 44fae35e..20fa8277 100644 --- a/src/libostree/ostree-repo-pull.c +++ b/src/libostree/ostree-repo-pull.c @@ -5539,8 +5539,11 @@ check_remote_matches_collection_id (OstreeRepo *repo, return g_str_equal (remote_collection_id, collection_id); } +/* FIXME: Export this to bindings once OstreeRemote is properly registered as + * a boxed type. + */ /** - * ostree_repo_resolve_keyring_for_collection: + * ostree_repo_resolve_keyring_for_collection: (skip) * @self: an #OstreeRepo * @collection_id: the collection ID to look up a keyring for * @cancellable: (nullable): a #GCancellable, or %NULL