squid-
cache.org
Optimising Web Delivery
Docs
Download
Donate
Support
About
Contact
Shop
Blog
src
LoadableModule.h
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
#ifndef SQUID_LOADABLE_MODULE_H
10
#define SQUID_LOADABLE_MODULE_H
11
12
#include "
SquidString.h
"
13
14
// wrapper for dlopen(3), libltdl, and friends
15
class
LoadableModule
16
{
17
public
:
18
LoadableModule
(
const
String
&aName);
19
~LoadableModule
();
// unloads if loaded
20
21
bool
loaded
()
const
;
22
const
String
&
name
()
const
{
return
theName
; }
23
const
String
&
error
()
const
{
return
theError
; }
24
25
void
load
();
// throws Texc
26
void
unload
();
// throws Texc
27
28
protected
:
29
String
theName
;
30
String
theError
;
31
void
*
theHandle
;
32
33
private
:
34
void
*
openModule
();
35
bool
closeModule
();
36
const
char
*
errorMsg
();
37
};
38
39
#endif
40
SquidString.h
LoadableModule
Definition:
LoadableModule.h:16
LoadableModule::unload
void unload()
Definition:
LoadableModule.cc:51
LoadableModule::theHandle
void * theHandle
Definition:
LoadableModule.h:31
LoadableModule::load
void load()
Definition:
LoadableModule.cc:39
LoadableModule::theName
String theName
Definition:
LoadableModule.h:29
LoadableModule::closeModule
bool closeModule()
Definition:
LoadableModule.cc:69
LoadableModule::name
const String & name() const
Definition:
LoadableModule.h:22
LoadableModule::errorMsg
const char * errorMsg()
Definition:
LoadableModule.cc:76
LoadableModule::error
const String & error() const
Definition:
LoadableModule.h:23
LoadableModule::theError
String theError
Definition:
LoadableModule.h:30
LoadableModule::LoadableModule
LoadableModule(const String &aName)
Definition:
LoadableModule.cc:17
LoadableModule::~LoadableModule
~LoadableModule()
Definition:
LoadableModule.cc:25
LoadableModule::openModule
void * openModule()
Definition:
LoadableModule.cc:63
LoadableModule::loaded
bool loaded() const
Definition:
LoadableModule.cc:33
String
Definition:
SquidString.h:26
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
Quick Setup
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
pl
...
full list
FTP Package Archive