aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-update.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'bpkg/pkg-update.hxx')
-rw-r--r--bpkg/pkg-update.hxx33
1 files changed, 33 insertions, 0 deletions
diff --git a/bpkg/pkg-update.hxx b/bpkg/pkg-update.hxx
new file mode 100644
index 0000000..5f62bd9
--- /dev/null
+++ b/bpkg/pkg-update.hxx
@@ -0,0 +1,33 @@
+// file : bpkg/pkg-update.hxx -*- C++ -*-
+// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
+// license : MIT; see accompanying LICENSE file
+
+#ifndef BPKG_PKG_UPDATE_HXX
+#define BPKG_PKG_UPDATE_HXX
+
+#include <bpkg/types.hxx>
+#include <bpkg/forward.hxx> // selected_package
+#include <bpkg/utility.hxx>
+
+#include <bpkg/pkg-command.hxx>
+#include <bpkg/pkg-update-options.hxx>
+
+namespace bpkg
+{
+ inline int
+ pkg_update (const pkg_update_options& o, cli::scanner& args)
+ {
+ return pkg_command ("update", o, args);
+ }
+
+ inline void
+ pkg_update (const dir_path& configuration,
+ const common_options& o,
+ const strings& common_vars,
+ const vector<pkg_command_vars>& pkgs)
+ {
+ pkg_command ("update", configuration, o, common_vars, pkgs);
+ }
+}
+
+#endif // BPKG_PKG_UPDATE_HXX