From 2319d01e262b705716e19474865f555f3ca81a7d Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 1 May 2017 13:50:13 +0300 Subject: Add hxx extension for headers and lib prefix for library dirs --- bpkg/pkg-verify.hxx | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 bpkg/pkg-verify.hxx (limited to 'bpkg/pkg-verify.hxx') diff --git a/bpkg/pkg-verify.hxx b/bpkg/pkg-verify.hxx new file mode 100644 index 0000000..a96442c --- /dev/null +++ b/bpkg/pkg-verify.hxx @@ -0,0 +1,39 @@ +// file : bpkg/pkg-verify.hxx -*- C++ -*- +// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +#ifndef BPKG_PKG_VERIFY_HXX +#define BPKG_PKG_VERIFY_HXX + +#include + +#include +#include + +#include + +namespace bpkg +{ + int + pkg_verify (const pkg_verify_options&, cli::scanner& args); + + // Verify archive is a valid package and return its manifest. Throw + // failed if invalid or if something goes wrong. If diag is false, + // then don't issue diagnostics about the reason why the package is + // invalid. + // + package_manifest + pkg_verify (const common_options&, + const path& archive, + bool ignore_unknown, + bool diag = true); + + // Similar to the above but verifies that a source directory is a valid + // package. Note that it doesn't enforce the - form for the + // directory itself. + // + package_manifest + pkg_verify (const dir_path& source, bool ignore_unknown, bool diag = true); +} + +#endif // BPKG_PKG_VERIFY_HXX -- cgit v1.1