aboutsummaryrefslogtreecommitdiff
path: root/bpkg/manifest-utility
diff options
context:
space:
mode:
Diffstat (limited to 'bpkg/manifest-utility')
-rw-r--r--bpkg/manifest-utility26
1 files changed, 26 insertions, 0 deletions
diff --git a/bpkg/manifest-utility b/bpkg/manifest-utility
new file mode 100644
index 0000000..f9766c7
--- /dev/null
+++ b/bpkg/manifest-utility
@@ -0,0 +1,26 @@
+// file : bpkg/manifest-utility -*- C++ -*-
+// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd
+// license : MIT; see accompanying LICENSE file
+
+#ifndef BPKG_MANIFEST_UTILITY
+#define BPKG_MANIFEST_UTILITY
+
+#include <bpkg/manifest>
+
+#include <bpkg/types>
+#include <bpkg/utility>
+
+namespace bpkg
+{
+ version
+ parse_version (const char*);
+
+ // First use the passed location as is. If the result is relative,
+ // then assume this is a relative path to the repository directory
+ // and complete it based on the current working directory.
+ //
+ repository_location
+ parse_location (const char*);
+}
+
+#endif // BPKG_MANIFEST_UTILITY