]>
Commit | Line | Data |
---|---|---|
bbc27441 | 1 | /* |
ef57eb7b | 2 | * Copyright (C) 1996-2016 The Squid Software Foundation and contributors |
bbc27441 AJ |
3 | * |
4 | * Squid software is distributed under GPLv2+ license and includes | |
5 | * contributions from numerous individuals and organizations. | |
6 | * Please see the COPYING and CONTRIBUTORS files for details. | |
7 | */ | |
8 | ||
582c2af2 FC |
9 | #include "squid.h" |
10 | #include "Debug.h" | |
57afc994 AR |
11 | #include "LoadableModule.h" |
12 | #include "LoadableModules.h" | |
582c2af2 | 13 | #include "wordlist.h" |
57afc994 AR |
14 | |
15 | static void | |
16 | LoadModule(const char *fname) | |
17 | { | |
e0236918 | 18 | debugs(1, DBG_IMPORTANT, "Loading Squid module from '" << fname << "'"); |
57afc994 AR |
19 | |
20 | LoadableModule *m = new LoadableModule(fname); | |
21 | m->load(); | |
46928135 | 22 | debugs(1, 2, "Loaded Squid module from '" << fname << "'"); |
57afc994 AR |
23 | |
24 | //TODO: TheModules.push_back(m); | |
25 | } | |
26 | ||
27 | void | |
28 | LoadableModulesConfigure(const wordlist *names) | |
29 | { | |
30 | int count = 0; | |
31 | for (const wordlist *i = names; i; i = i->next, ++count) | |
32 | LoadModule(i->key); | |
e0236918 | 33 | debugs(1, DBG_IMPORTANT, "Squid plugin modules loaded: " << count); |
57afc994 | 34 | } |
f53969cc | 35 |