Revert "version 2.16.0, PIPluginLoader changes"

This reverts commit f367ef00f7.
This commit is contained in:
2021-03-05 17:29:04 +03:00
parent 22173fe850
commit 7bbbd09f42
3 changed files with 11 additions and 20 deletions

View File

@@ -67,18 +67,15 @@
# define PIP_PLUGIN_EXPORT
#endif
#define __PIP_PLUGIN_LOADER_VERSION_FUNC__ pip_loader_version
#define __PIP_PLUGIN_SET_USER_VERSION_FUNC__ pip_set_user_version
#define __PIP_PLUGIN_STATIC_MERGE_FUNC__ pip_merge_static
#define __PIP_PLUGIN_LOADER_VERSION__ 3
#define __PIP_PLUGIN_LOADER_VERSION_FUNC__ pip_loader_version
#define __PIP_PLUGIN_STATIC_MERGE_FUNC__ pip_merge_static
#define __PIP_PLUGIN_LOADER_VERSION__ 2
#define PIP_PLUGIN_SET_USER_VERSION(v) \
extern "C" { \
PIP_PLUGIN_EXPORT void __PIP_PLUGIN_SET_USER_VERSION_FUNC__() { \
PIPluginInfo * pi = PIPluginInfoStorage::instance()->currentInfo(); \
if (pi) pi->setUserVersion(v); \
} \
}
STATIC_INITIALIZER_BEGIN \
PIPluginInfo * pi = PIPluginInfoStorage::instance()->currentInfo(); \
if (pi) pi->setUserVersion(v); \
STATIC_INITIALIZER_END
#define PIP_PLUGIN_ADD_STATIC_SECTION(type, ptr) \
STATIC_INITIALIZER_BEGIN \
@@ -145,7 +142,6 @@ private:
class PIP_EXPORT PIPluginLoader {
public:
typedef int(*FunctionLoaderVersion)();
typedef void(*FunctionSetUserVersion)();
typedef void(*FunctionStaticMerge)(int, void *, void *);
//! Possible load plugin error
@@ -206,7 +202,6 @@ private:
PILibrary lib;
FunctionLoaderVersion func_loader_version;
FunctionSetUserVersion func_set_user_version;
FunctionStaticMerge func_static_merge;
PIString error_str;
Error error;