X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Ffactory_static.cpp;h=2b95aa95ed33b2789e210d177e5b07f0efab28c3;hb=df8db6d8a539fa6d793aeb541f7c64d625c91d42;hp=ff7098393232a9c56ebd8cb15414d909d5b1d2e3;hpb=63ea8aedbfd7dc56ab28dbc82c38b4458dcecb68;p=metaproxy-moved-to-github.git diff --git a/src/factory_static.cpp b/src/factory_static.cpp index ff70983..2b95aa9 100644 --- a/src/factory_static.cpp +++ b/src/factory_static.cpp @@ -1,4 +1,4 @@ -/* $Id: factory_static.cpp,v 1.1 2006-01-04 11:19:04 adam Exp $ +/* $Id: factory_static.cpp,v 1.5 2006-01-12 10:04:34 adam Exp $ Copyright (c) 2005, Index Data. %LICENSE% @@ -14,8 +14,9 @@ #include "filter.hpp" #include "package.hpp" -#include "filter_factory.hpp" +#include "factory_filter.hpp" +#include "filter_auth_simple.hpp" #include "filter_backend_test.hpp" #include "filter_frontend_net.hpp" #include "filter_log.hpp" @@ -24,9 +25,10 @@ #include "filter_virt_db.hpp" #include "filter_z3950_client.hpp" -yp2::FactoryStatic::FactoryStatic(yp2::FilterFactory &factory) +yp2::FactoryStatic::FactoryStatic() { - const struct yp2_filter_struct *buildins[] = { + struct yp2_filter_struct *buildins[] = { + &yp2_filter_auth_simple, &yp2_filter_backend_test, &yp2_filter_frontend_net, &yp2_filter_log, @@ -39,7 +41,7 @@ yp2::FactoryStatic::FactoryStatic(yp2::FilterFactory &factory) int i; for (i = 0; buildins[i]; i++) - factory.add_creator(buildins[i]->type, buildins[i]->creator); + add_creator(buildins[i]->type, buildins[i]->creator); }