X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpackagemanager.h;h=9da4af33e3a557851c7dc7f9d23c54e235412edf;hb=302977793935e100a5bf37822836531cafb03bf3;hp=b168d723e174739c3c652f376f7f1cefe407cda2;hpb=d6d1d6ef8f589747b996f223c6c65dd293fedd93;p=builder.git diff --git a/source/packagemanager.h b/source/packagemanager.h index b168d72..9da4af3 100644 --- a/source/packagemanager.h +++ b/source/packagemanager.h @@ -15,19 +15,14 @@ packages by name. */ class PackageManager { -public: - typedef std::map PackageMap; - private: - typedef std::list SearchPath; - Builder &builder; - SearchPath pkg_path; - SearchPath pkg_dirs; - SearchPath binpkg_path; - SearchPath binpkg_files; + std::list pkg_path; + std::list pkg_dirs; + std::list binpkg_path; + std::list binpkg_files; bool no_externals; - PackageMap packages; + std::map packages; Package *main_pkg; std::set not_found; bool env_set; @@ -55,7 +50,7 @@ public: the primary build target. */ Package &get_main_package() const; - const PackageMap &get_packages() const { return packages; } + const std::map &get_packages() const { return packages; } /** Locates a package and loads it if necessary. */ Package *find_package(const std::string &);