]> git.ipfire.org Git - thirdparty/squid.git/blame - src/LoadableModules.cc
Improve support for clang compilers
[thirdparty/squid.git] / src / LoadableModules.cc
CommitLineData
f7f3304a 1#include "squid-old.h"
57afc994
AR
2#include "wordlist.h"
3#include "LoadableModule.h"
4#include "LoadableModules.h"
5
6static void
7LoadModule(const char *fname)
8{
46928135 9 debugs(1, 1, "Loading Squid module from '" << fname << "'");
57afc994
AR
10
11 LoadableModule *m = new LoadableModule(fname);
12 m->load();
46928135 13 debugs(1, 2, "Loaded Squid module from '" << fname << "'");
57afc994
AR
14
15 //TODO: TheModules.push_back(m);
16}
17
18void
19LoadableModulesConfigure(const wordlist *names)
20{
21 int count = 0;
22 for (const wordlist *i = names; i; i = i->next, ++count)
23 LoadModule(i->key);
46928135 24 debugs(1, 1, "Squid plugin modules loaded: " << count);
57afc994 25}