]>
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 | 10 | #include "debug/Messages.h" |
57afc994 AR |
11 | #include "LoadableModule.h" |
12 | #include "LoadableModules.h" | |
1c464a53 | 13 | #include "sbuf/List.h" |
57afc994 AR |
14 | |
15 | static void | |
1c464a53 | 16 | LoadModule(const SBuf &fname) |
57afc994 | 17 | { |
e0236918 | 18 | debugs(1, DBG_IMPORTANT, "Loading Squid module from '" << fname << "'"); |
57afc994 | 19 | |
1c464a53 | 20 | const auto m = new LoadableModule(fname); |
57afc994 | 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 | |
1c464a53 | 28 | LoadableModulesConfigure(const SBufList &names) |
57afc994 | 29 | { |
1c464a53 AJ |
30 | for (const auto &name : names) { |
31 | LoadModule(name); | |
32 | } | |
33 | debugs(1, Important(25), "Squid plugin modules loaded: " << names.size()); | |
57afc994 | 34 | } |
f53969cc | 35 |