repo: Factor out _ostree_repo_auto_transaction_new()
This will allow the direct allocation in ostree_repo_prepare_transaction() to be replaced with a call to this function, avoiding breaking encapsulation. Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
1 parent
9cdd981250
commit
540e60c3e3
2 files changed
+31
-5
No files matched your search
@@ -554,4 +554,8 @@ GType _ostree_repo_auto_transaction_get_type (void);
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (OstreeRepoAutoTransaction, _ostree_repo_auto_transaction_unref);
|
||||
|
||||
/* Internal function to break a circular dependency:
|
||||
* should not be made into public API, even if the rest is */
|
||||
OstreeRepoAutoTransaction *_ostree_repo_auto_transaction_new (OstreeRepo *repo);
|
||||
|
||||
G_END_DECLS
|
||||
Reference in new issue
Block a user