aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-disfigure
diff options
context:
space:
mode:
Diffstat (limited to 'bpkg/pkg-disfigure')
-rw-r--r--bpkg/pkg-disfigure26
1 files changed, 26 insertions, 0 deletions
diff --git a/bpkg/pkg-disfigure b/bpkg/pkg-disfigure
new file mode 100644
index 0000000..0e16a40
--- /dev/null
+++ b/bpkg/pkg-disfigure
@@ -0,0 +1,26 @@
+// file : bpkg/pkg-disfigure -*- C++ -*-
+// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd
+// license : MIT; see accompanying LICENSE file
+
+#ifndef BPKG_PKG_DISFIGURE
+#define BPKG_PKG_DISFIGURE
+
+#include <bpkg/types>
+#include <bpkg/forward> // transaction, package
+#include <bpkg/pkg-disfigure-options>
+
+namespace bpkg
+{
+ void
+ pkg_disfigure (const pkg_disfigure_options&, cli::scanner& args);
+
+ // Disfigure the package, update its state, and commit the
+ // transaction.
+ //
+ void
+ pkg_disfigure (const dir_path& configuration,
+ transaction&,
+ const shared_ptr<package>&);
+}
+
+#endif // BPKG_PKG_DISFIGURE