aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-configure.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'bpkg/pkg-configure.hxx')
-rw-r--r--bpkg/pkg-configure.hxx35
1 files changed, 35 insertions, 0 deletions
diff --git a/bpkg/pkg-configure.hxx b/bpkg/pkg-configure.hxx
new file mode 100644
index 0000000..651daba
--- /dev/null
+++ b/bpkg/pkg-configure.hxx
@@ -0,0 +1,35 @@
+// file : bpkg/pkg-configure.hxx -*- C++ -*-
+// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
+// license : MIT; see accompanying LICENSE file
+
+#ifndef BPKG_PKG_CONFIGURE_HXX
+#define BPKG_PKG_CONFIGURE_HXX
+
+#include <bpkg/types.hxx>
+#include <bpkg/forward.hxx> // transaction, selected_package
+#include <bpkg/utility.hxx>
+
+#include <bpkg/package.hxx>
+#include <bpkg/pkg-configure-options.hxx>
+
+namespace bpkg
+{
+ int
+ pkg_configure (const pkg_configure_options&, cli::scanner& args);
+
+ // Configure the package, update its state, and commit the transaction.
+ //
+ void
+ pkg_configure (const dir_path& configuration,
+ const common_options&,
+ transaction&,
+ const shared_ptr<selected_package>&,
+ const strings& config_vars);
+
+ // Configure a system package and commit the transaction.
+ //
+ shared_ptr<selected_package>
+ pkg_configure_system (const string& name, const version&, transaction&);
+}
+
+#endif // BPKG_PKG_CONFIGURE_HXX