Added possibility to disable unloading in modules at build time.
git-svn-id: http://voip.null.ro/svn/yate@2720 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
38e23c5442
commit
961373f70b
|
@ -717,11 +717,15 @@ bool UNLOAD_PLUGIN(bool unloadNow);
|
|||
#endif
|
||||
|
||||
#define INIT_PLUGIN(pclass) static pclass __plugin
|
||||
#ifdef DISABLE_UNLOAD
|
||||
#define UNLOAD_PLUGIN(arg) static bool _unused_unload(bool arg)
|
||||
#else
|
||||
#ifdef _WINDOWS
|
||||
#define UNLOAD_PLUGIN(arg) extern "C" __declspec(dllexport) bool _unload(bool arg)
|
||||
#else
|
||||
#define UNLOAD_PLUGIN(arg) extern "C" bool _unload(bool arg)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Base class for engine running stage checkers.
|
||||
|
|
Loading…
Reference in New Issue