]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/LoadableModule.h
1 #ifndef SQUID_LOADABLE_MODULE_H
2 #define SQUID_LOADABLE_MODULE_H
4 #include "SquidString.h"
6 // wrapper for dlopen(3), libltdl, and friends
9 enum LoadMode
{ lmNow
, lmLazy
};
12 LoadableModule(const String
&aName
);
13 ~LoadableModule(); // unloads if loaded
16 const String
&name() const { return theName
; }
17 const String
&error() const { return theError
; }
19 void load(int mode
= lmNow
); // throws Texc
20 void unload(); // throws Texc
28 void *openModule(int mode
);
30 const char *errorMsg();