]>
Commit | Line | Data |
---|---|---|
bbc27441 | 1 | /* |
b8ae064d | 2 | * Copyright (C) 1996-2023 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 | 9 | #include "squid.h" |
675b8408 AR |
10 | #include "debug/Messages.h" |
11 | #include "debug/Stream.h" | |
57afc994 AR |
12 | #include "LoadableModule.h" |
13 | #include "LoadableModules.h" | |
582c2af2 | 14 | #include "wordlist.h" |
57afc994 AR |
15 | |
16 | static void | |
17 | LoadModule(const char *fname) | |
18 | { | |
e0236918 | 19 | debugs(1, DBG_IMPORTANT, "Loading Squid module from '" << fname << "'"); |
57afc994 AR |
20 | |
21 | LoadableModule *m = new LoadableModule(fname); | |
22 | m->load(); | |
46928135 | 23 | debugs(1, 2, "Loaded Squid module from '" << fname << "'"); |
57afc994 AR |
24 | |
25 | //TODO: TheModules.push_back(m); | |
26 | } | |
27 | ||
28 | void | |
29 | LoadableModulesConfigure(const wordlist *names) | |
30 | { | |
31 | int count = 0; | |
32 | for (const wordlist *i = names; i; i = i->next, ++count) | |
33 | LoadModule(i->key); | |
c59baaa8 | 34 | debugs(1, Important(25), "Squid plugin modules loaded: " << count); |
57afc994 | 35 | } |
f53969cc | 36 |