aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bpkg/bpkg.cxx1
-rw-r--r--bpkg/diagnostics2
-rw-r--r--bpkg/types32
3 files changed, 35 insertions, 0 deletions
diff --git a/bpkg/bpkg.cxx b/bpkg/bpkg.cxx
index 3492705..d95d005 100644
--- a/bpkg/bpkg.cxx
+++ b/bpkg/bpkg.cxx
@@ -5,6 +5,7 @@
#include <iostream>
#include <exception>
+#include <bpkg/types>
#include <bpkg/diagnostics>
using namespace std;
diff --git a/bpkg/diagnostics b/bpkg/diagnostics
index 94cb0ba..ef7b24c 100644
--- a/bpkg/diagnostics
+++ b/bpkg/diagnostics
@@ -13,6 +13,8 @@
#include <ostream>
#include <exception>
+#include <bpkg/types>
+
namespace bpkg
{
// Throw this exception to terminate the process. The handler should
diff --git a/bpkg/types b/bpkg/types
new file mode 100644
index 0000000..d66f9fb
--- /dev/null
+++ b/bpkg/types
@@ -0,0 +1,32 @@
+// file : bpkg/types -*- C++ -*-
+// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd
+// license : MIT; see accompanying LICENSE file
+
+#ifndef BPKG_TYPES
+#define BPKG_TYPES
+
+#include <vector>
+#include <string>
+
+#include <butl/path>
+#include <butl/path-io>
+
+namespace bpkg
+{
+ // Commonly-used types.
+ //
+ using strings = std::vector<std::string>;
+ using cstrings = std::vector<const char*>;
+
+ // <butl/path>
+ //
+ using butl::path;
+ using butl::dir_path;
+ using butl::basic_path;
+ using butl::invalid_path;
+
+ using paths = std::vector<path>;
+ using dir_paths = std::vector<dir_path>;
+}
+
+#endif // BPKG_TYPES