diff options
author | Colin Walters <walters@verbum.org> | 2021-04-14 20:43:53 -0400 |
---|---|---|
committer | Dan Nicholson <dbn@endlessos.org> | 2021-06-05 09:00:21 -0600 |
commit | 0f36d8c2219decbb5794ff19b5259d15d3d8d791 (patch) | |
tree | abc76349274ce0ca70a26964427bcbd56fa3e57f /src/libostree/ostree-repo-private.h | |
parent | a7b590f7aec9fa8e07c92bfcc306cf695544c94e (diff) | |
download | ostree-0f36d8c2219decbb5794ff19b5259d15d3d8d791.tar.gz |
repo: Make locking APIs public
Doing anything even somewhat sophisticated requires this;
turns out our own `ostree prune` CLI wants this, e.g.
https://github.com/ostreedev/ostree/issues/2337
Closes: https://github.com/ostreedev/ostree/issues/2286
Diffstat (limited to 'src/libostree/ostree-repo-private.h')
-rw-r--r-- | src/libostree/ostree-repo-private.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/libostree/ostree-repo-private.h b/src/libostree/ostree-repo-private.h index 14b29c0b..20af1b38 100644 --- a/src/libostree/ostree-repo-private.h +++ b/src/libostree/ostree-repo-private.h @@ -506,30 +506,6 @@ _ostree_repo_maybe_regenerate_summary (OstreeRepo *self, GCancellable *cancellable, GError **error); -/* Locking APIs are currently private. - * See https://github.com/ostreedev/ostree/pull/1555 - */ -typedef enum { - OSTREE_REPO_LOCK_SHARED, - OSTREE_REPO_LOCK_EXCLUSIVE -} OstreeRepoLockType; - -gboolean _ostree_repo_lock_push (OstreeRepo *self, - OstreeRepoLockType lock_type, - GCancellable *cancellable, - GError **error); -gboolean _ostree_repo_lock_pop (OstreeRepo *self, - GCancellable *cancellable, - GError **error); - -typedef OstreeRepo OstreeRepoAutoLock; - -OstreeRepoAutoLock * _ostree_repo_auto_lock_push (OstreeRepo *self, - OstreeRepoLockType lock_type, - GCancellable *cancellable, - GError **error); -void _ostree_repo_auto_lock_cleanup (OstreeRepoAutoLock *lock); -G_DEFINE_AUTOPTR_CLEANUP_FUNC (OstreeRepoAutoLock, _ostree_repo_auto_lock_cleanup) gboolean _ostree_repo_parse_fsverity_config (OstreeRepo *self, GError **error); |