summaryrefslogtreecommitdiff
path: root/apidoc
diff options
context:
space:
mode:
authorDan Nicholson <nicholson@endlessm.com>2017-10-13 19:31:35 +0000
committerAtomic Bot <atomic-devel@projectatomic.io>2017-12-05 02:32:47 +0000
commit7d863ed9e4c15725c8439b389b5657872db1bd85 (patch)
treedc30089c6cc03878725491d0e478a7633ed0e8ef /apidoc
parent4e78ddd2da4c0a2ced9527ef20a30f8e3b8567b8 (diff)
downloadostree-7d863ed9e4c15725c8439b389b5657872db1bd85.tar.gz
lib/repo: Add locking auto cleanup handler
Define an auto cleanup handler for use with repo locking. This is based on the existing auto transaction cleanup. A wrapper for ostree_repo_lock_push() is added with it. The intended usage is like so: g_autoptr(OstreeRepoAutoLock) lock = NULL; lock = ostree_repo_auto_lock_push (repo, lock_type, cancellable, error); if (!lock) return FALSE; The functions and type are marked to be skipped by introspection since I can't see them being usable from bindings. Closes: #1343 Approved by: cgwalters
Diffstat (limited to 'apidoc')
-rw-r--r--apidoc/ostree-experimental-sections.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/apidoc/ostree-experimental-sections.txt b/apidoc/ostree-experimental-sections.txt
index 61f43f28..0d168406 100644
--- a/apidoc/ostree-experimental-sections.txt
+++ b/apidoc/ostree-experimental-sections.txt
@@ -93,6 +93,9 @@ ostree_repo_finder_override_get_type
OstreeRepoLockType
ostree_repo_lock_push
ostree_repo_lock_pop
+OstreeRepoAutoLock
+ostree_repo_auto_lock_push
+ostree_repo_auto_lock_cleanup
ostree_repo_get_collection_id
ostree_repo_set_collection_id
ostree_validate_collection_id