aboutsummaryrefslogtreecommitdiff
path: root/paludis/output_manager_factory.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-02-12 00:21:58 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-02-12 00:21:58 +0000
commitb85660f6da793d06a304bf6d511c6b00344f20e2 (patch)
tree05aa85a383cec695a9771ae6b275a939083ab203 /paludis/output_manager_factory.cc
parentc465194c342edfd626a27d0ec1f460dba361dcf3 (diff)
downloadpaludis-b85660f6da793d06a304bf6d511c6b00344f20e2.tar.gz
paludis-b85660f6da793d06a304bf6d511c6b00344f20e2.tar.xz
Configurable output managers for PaludisEnvironment
Diffstat (limited to 'paludis/output_manager_factory.cc')
-rw-r--r--paludis/output_manager_factory.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/paludis/output_manager_factory.cc b/paludis/output_manager_factory.cc
index 44228207b..b332cf159 100644
--- a/paludis/output_manager_factory.cc
+++ b/paludis/output_manager_factory.cc
@@ -33,8 +33,8 @@
#include <paludis/about.hh>
#include <tr1/unordered_map>
#include <list>
-#include <dlfcn.h>
-#include <stdint.h>
+
+#include <paludis/standard_output_manager.hh>
using namespace paludis;
@@ -58,7 +58,7 @@ namespace
const Funcs & fetch(const Keys & keys, const std::string & key)
{
if (key.empty())
- throw ConfigurationError("Key 'manager' not specified when creating an output manager");
+ throw ConfigurationError("Key 'handler' not specified when creating an output manager");
Keys::const_iterator i(keys.find(key));
if (i == keys.end())
@@ -82,6 +82,8 @@ namespace paludis
OutputManagerFactory::OutputManagerFactory() :
PrivateImplementationPattern<OutputManagerFactory>(new Implementation<OutputManagerFactory>)
{
+ /* we might want to make this plugin loadable at some point */
+ add_manager(StandardOutputManager::factory_managers(), StandardOutputManager::factory_create);
}
OutputManagerFactory::~OutputManagerFactory()
@@ -94,7 +96,7 @@ OutputManagerFactory::create(
) const
{
Context context("When creating output manager:");
- return fetch(_imp->keys, key_function("manager")).create_function()(key_function);
+ return fetch(_imp->keys, key_function("handler")).create_function()(key_function);
}
OutputManagerFactory::ConstIterator