aboutsummaryrefslogtreecommitdiff
path: root/bpkg/satisfaction.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'bpkg/satisfaction.hxx')
-rw-r--r--bpkg/satisfaction.hxx24
1 files changed, 15 insertions, 9 deletions
diff --git a/bpkg/satisfaction.hxx b/bpkg/satisfaction.hxx
index 5ab32a1..174e375 100644
--- a/bpkg/satisfaction.hxx
+++ b/bpkg/satisfaction.hxx
@@ -1,5 +1,4 @@
// file : bpkg/satisfaction.hxx -*- C++ -*-
-// copyright : Copyright (c) 2014-2019 Code Synthesis Ltd
// license : MIT; see accompanying LICENSE file
#ifndef BPKG_SATISFACTION_HXX
@@ -13,8 +12,13 @@
namespace bpkg
{
- // Note: all of the following functions expect the package version
- // constraints to be complete.
+ // Notes:
+ //
+ // - All of the following functions expect the package version constraints
+ // to be complete.
+ //
+ // - The version iterations are ignored on version comparisons.
+ //
// Return true if version satisfies the constraint.
//
@@ -43,13 +47,15 @@ namespace bpkg
// Special build-time dependencies.
//
- void
- satisfy_build2 (const common_options&,
- const package_name&,
- const dependency&);
+ extern version build2_version; // Set on the first satisfy_build2() call.
- void
- satisfy_bpkg (const common_options&, const package_name&, const dependency&);
+ bool
+ satisfy_build2 (const common_options&, const dependency&);
+
+ extern version bpkg_version; // Set on the first satisfy_bpkg() call.
+
+ bool
+ satisfy_bpkg (const common_options&, const dependency&);
}
#endif // BPKG_SATISFACTION_HXX