aboutsummaryrefslogtreecommitdiff
path: root/odb/profile.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-02-01 10:53:31 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-02-01 10:53:31 +0200
commit81b48dc3a7480c3df87d4293722b5a3d5f0de2c2 (patch)
tree3918cba796c8793df16c2cac74639d5f99e97104 /odb/profile.hxx
parentf0cfd3c7942d27e312d27f5a1d94532516f393aa (diff)
Pass profile paths to plugin; handle profile options
Diffstat (limited to 'odb/profile.hxx')
-rw-r--r--odb/profile.hxx32
1 files changed, 32 insertions, 0 deletions
diff --git a/odb/profile.hxx b/odb/profile.hxx
new file mode 100644
index 0000000..e3c5035
--- /dev/null
+++ b/odb/profile.hxx
@@ -0,0 +1,32 @@
+// file : odb/profile.hxx
+// author : Boris Kolpackov <boris@codesynthesis.com>
+// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC
+// license : GNU GPL v3; see accompanying LICENSE file
+
+#ifndef ODB_PROFILE_HXX
+#define ODB_PROFILE_HXX
+
+#include <set>
+#include <vector>
+#include <string>
+
+#include <cutl/fs/path.hxx>
+
+struct profile_data
+{
+ typedef cutl::fs::path path;
+ typedef std::vector<path> paths;
+
+ profile_data (paths const& p, char const* n): search_paths (p), name (n) {}
+
+ paths const& search_paths;
+ std::set<path> loaded;
+ char const* name;
+};
+
+struct profile_failure {};
+
+std::string
+profile_search (char const* profile, void* arg);
+
+#endif // ODB_PROFILE_HXX