squid-
cache.org
Optimising Web Delivery
Docs
Download
Donate
Support
About
Contact
Shop
Blog
src
LoadableModules.cc
Go to the documentation of this file.
1
/*
2
* Copyright (C) 1996-2022 The Squid Software Foundation and contributors
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
9
#include "
squid.h
"
10
#include "
debug/Messages.h
"
11
#include "
debug/Stream.h
"
12
#include "
LoadableModule.h
"
13
#include "
LoadableModules.h
"
14
#include "
wordlist.h
"
15
16
static
void
17
LoadModule
(
const
char
*fname)
18
{
19
debugs
(1,
DBG_IMPORTANT
,
"Loading Squid module from '"
<< fname <<
"'"
);
20
21
LoadableModule
*m =
new
LoadableModule
(fname);
22
m->
load
();
23
debugs
(1, 2,
"Loaded Squid module from '"
<< fname <<
"'"
);
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);
34
debugs
(1,
Important
(25),
"Squid plugin modules loaded: "
<< count);
35
}
36
wordlist
Definition:
wordlist.h:20
wordlist.h
LoadableModule::load
void load()
Definition:
LoadableModule.cc:39
LoadableModule
Definition:
LoadableModule.h:16
LoadableModule.h
LoadableModulesConfigure
void LoadableModulesConfigure(const wordlist *names)
Definition:
LoadableModules.cc:29
Messages.h
LoadModule
static void LoadModule(const char *fname)
Definition:
LoadableModules.cc:17
wordlist::next
wordlist * next
Definition:
wordlist.h:33
Stream.h
Important
#define Important(id)
Definition:
Messages.h:91
DBG_IMPORTANT
#define DBG_IMPORTANT
Definition:
Stream.h:41
squid.h
LoadableModules.h
debugs
#define debugs(SECTION, LEVEL, CONTENT)
Definition:
Stream.h:196
Introduction
About Squid
Why Squid?
Squid Developers
How to Donate
How to Help Out
Getting Squid
Squid Source Packages
Squid Deployment Case-Studies
Squid Software Foundation
Documentation
Configuration:
Reference
Examples
FAQ
and
Wiki
Guide Books:
Beginners
Definitive
Non-English
More...
Support
Security Advisories
Bugzilla Database
Mailing lists
Contacting us
Commercial services
Project Sponsors
Squid-based products
Miscellaneous
Developer Resources
Related Writings
Related Software:
Authenticators
Ecap
Icap
Ident
Log Analysis
Monitor
Proxies
Redirectors
General
Squid Artwork
Web Site Translations
Japanese
Mirrors
Website:
gr
il
jp
pl
...
full list
FTP Package Archive