From 81b48dc3a7480c3df87d4293722b5a3d5f0de2c2 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 1 Feb 2011 10:53:31 +0200 Subject: Pass profile paths to plugin; handle profile options --- odb/profile.hxx | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 odb/profile.hxx (limited to 'odb/profile.hxx') 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 +// 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 +#include +#include + +#include + +struct profile_data +{ + typedef cutl::fs::path path; + typedef std::vector paths; + + profile_data (paths const& p, char const* n): search_paths (p), name (n) {} + + paths const& search_paths; + std::set loaded; + char const* name; +}; + +struct profile_failure {}; + +std::string +profile_search (char const* profile, void* arg); + +#endif // ODB_PROFILE_HXX -- cgit v1.1