LoadableModules.cc
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2023 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
16static void
17LoadModule(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
28void
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
void LoadableModulesConfigure(const wordlist *names)
static void LoadModule(const char *fname)
wordlist * next
Definition: wordlist.h:33
#define Important(id)
Definition: Messages.h:93
#define DBG_IMPORTANT
Definition: Stream.h:38
#define debugs(SECTION, LEVEL, CONTENT)
Definition: Stream.h:194

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors