aboutsummaryrefslogtreecommitdiff
path: root/bpkg/database.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-09-04 15:41:41 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-09-06 11:53:45 +0300
commit03c40ed68ce10b26a5f9f509e914b1b54f060215 (patch)
tree42e79327baa90f4cfdee1ba04dba98250293fcfd /bpkg/database.hxx
parent22165c649ca2c5ef216ae3f99fbfb2dc0fff99ab (diff)
Add --backlink, --dangling, and --recursive options to cfg-info
Diffstat (limited to 'bpkg/database.hxx')
-rw-r--r--bpkg/database.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/bpkg/database.hxx b/bpkg/database.hxx
index 40474d3..889f8a0 100644
--- a/bpkg/database.hxx
+++ b/bpkg/database.hxx
@@ -376,6 +376,13 @@ namespace bpkg
void
verify_link (const configuration&, database&);
+ // Assuming that the passed configuration is explicitly linked to the
+ // current one, return the corresponding backlink. Issue diagnostics and
+ // fail if the backlink is not found.
+ //
+ shared_ptr<configuration>
+ backlink (database&);
+
// Set the specified tracer for the whole linked databases cluster.
//
using tracer_type = odb::tracer;