]> git.tdb.fi Git - builder.git/blobdiff - source/builder.h
Store problems at their source rather than globally
[builder.git] / source / builder.h
index 4c78a3dffd579d1054fa02846c771c3eae62fd3c..3004ed245ecedb860da199e28f8f4bdaecf2eb60 100644 (file)
@@ -12,7 +12,6 @@
 #include "config.h"
 #include "logger.h"
 #include "packagemanager.h"
-#include "problem.h"
 #include "target.h"
 #include "toolchain.h"
 #include "virtualfilesystem.h"
@@ -46,9 +45,6 @@ private:
                void package(const std::string &);
        };
 
-public:
-       typedef std::list<Problem> ProblemList;
-
 private:
        typedef std::map<std::string, BuildType> BuildTypeMap;
 
@@ -64,7 +60,6 @@ private:
        Logger default_logger;
        const Logger *logger;
 
-       ProblemList problems;
        Msp::FS::Path prefix;
        Msp::FS::Path tempdir;
 
@@ -93,8 +88,7 @@ public:
        void set_logger(const Logger *);
        const Logger &get_logger() const { return *logger; }
 
-       void problem(const std::string &, const std::string &);
-       const ProblemList &get_problems() const { return problems; }
+       std::list<std::string> collect_problems() const;
 
        /** Loads a build file.  If opts is not null, it is used to configure any
        packages loaded from this file.  If all is true, external packages are also