~clint-fewbar/ubuntu/precise/squid3/ignore-sighup-early

« back to all changes in this revision

Viewing changes to src/LoadableModule.h

  • Committer: Bazaar Package Importer
  • Author(s): Luigi Gangitano
  • Date: 2009-09-24 14:51:06 UTC
  • mfrom: (1.1.12 upstream)
  • mto: (20.2.1 sid)
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: james.westby@ubuntu.com-20090924145106-38jgrzmj0d73pha5
Tags: 3.1.0.13-1
* Upload to experimental

* New upstream release
  - Fixes Follow-X-Forwarded-For support (Closes: #523943)
  - Adds IPv6 support (Closes: #432351)

* debian/rules
  - Removed obsolete configuration options
  - Enable db and radius basic authentication modules

* debian/patches/01-cf.data.debian
  - Adapted to new upstream version

* debian/patches/02-makefile-defaults
  - Adapted to new upstream version

* debian/{squid.postinst,squid.rc,README.Debian,watch}
  - Updated references to squid 3.1

* debian/squid3.install
  - Install CSS file for error pages
  - Install manual pages for new authentication modules

* debian/squid3-common.install
  - Install documented version of configuration file in /usr/share/doc/squid3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef SQUID_LOADABLE_MODULE_H
 
2
#define SQUID_LOADABLE_MODULE_H
 
3
 
 
4
#include "SquidString.h"
 
5
 
 
6
// wrapper for dlopen(3), libltdl, and friends
 
7
class LoadableModule
 
8
{
 
9
public:
 
10
    enum LoadMode { lmNow, lmLazy };
 
11
 
 
12
public:
 
13
    LoadableModule(const String &aName);
 
14
    ~LoadableModule();           // unloads if loaded
 
15
 
 
16
    bool loaded() const;
 
17
    const String &name() const { return theName; }
 
18
    const String &error() const { return theError; }
 
19
 
 
20
    void load(int mode = lmNow); // throws Texc
 
21
    void unload(); // throws Texc
 
22
 
 
23
protected:
 
24
    String theName;
 
25
    String theError;
 
26
    void *theHandle;
 
27
 
 
28
private:
 
29
    void *openModule(int mode);
 
30
    bool closeModule();
 
31
    const char *errorMsg();
 
32
};
 
33
 
 
34
#endif