aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-drop.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-05-01 13:50:13 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-05-01 15:02:14 +0300
commit2319d01e262b705716e19474865f555f3ca81a7d (patch)
tree15ffb5b3f998a2cc0def729d2f1f76f578d8d139 /bpkg/pkg-drop.hxx
parent5fb0df6f63e02c141e8a0e5ad4543dea525df3fc (diff)
Add hxx extension for headers and lib prefix for library dirs
Diffstat (limited to 'bpkg/pkg-drop.hxx')
-rw-r--r--bpkg/pkg-drop.hxx33
1 files changed, 33 insertions, 0 deletions
diff --git a/bpkg/pkg-drop.hxx b/bpkg/pkg-drop.hxx
new file mode 100644
index 0000000..b7e0be1
--- /dev/null
+++ b/bpkg/pkg-drop.hxx
@@ -0,0 +1,33 @@
+// file : bpkg/pkg-drop.hxx -*- C++ -*-
+// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
+// license : MIT; see accompanying LICENSE file
+
+#ifndef BPKG_PKG_DROP_HXX
+#define BPKG_PKG_DROP_HXX
+
+#include <set>
+
+#include <bpkg/types.hxx>
+#include <bpkg/forward.hxx> // database, selected_package
+#include <bpkg/utility.hxx>
+
+#include <bpkg/pkg-drop-options.hxx>
+
+namespace bpkg
+{
+ int
+ pkg_drop (const pkg_drop_options&, cli::scanner& args);
+
+ // Examine the list of prerequisite packages and drop those that don't
+ // have any dependents. Return the set of packages that were actually
+ // dropped. Note that it should be called in session.
+ //
+ std::set<shared_ptr<selected_package>>
+ pkg_drop (const dir_path& configuration,
+ const common_options&,
+ database&,
+ const std::set<shared_ptr<selected_package>>&,
+ bool prompt);
+}
+
+#endif // BPKG_PKG_DROP_HXX