diff options
-rw-r--r-- | include/compiz.h | 4 | ||||
-rw-r--r-- | plugins/annotate.c | 8 | ||||
-rw-r--r-- | plugins/blur.c | 8 | ||||
-rw-r--r-- | plugins/clone.c | 8 | ||||
-rw-r--r-- | plugins/cube.c | 8 | ||||
-rw-r--r-- | plugins/dbus.c | 39 | ||||
-rw-r--r-- | plugins/decoration.c | 8 | ||||
-rw-r--r-- | plugins/fade.c | 8 | ||||
-rw-r--r-- | plugins/fuse.c | 8 | ||||
-rw-r--r-- | plugins/gconf.c | 8 | ||||
-rw-r--r-- | plugins/glib.c | 8 | ||||
-rw-r--r-- | plugins/ini.c | 7 | ||||
-rw-r--r-- | plugins/inotify.c | 8 | ||||
-rw-r--r-- | plugins/kconfig.cpp | 8 | ||||
-rw-r--r-- | plugins/minimize.c | 8 | ||||
-rw-r--r-- | plugins/move.c | 8 | ||||
-rw-r--r-- | plugins/place.c | 8 | ||||
-rw-r--r-- | plugins/plane.c | 8 | ||||
-rw-r--r-- | plugins/png.c | 8 | ||||
-rw-r--r-- | plugins/regex.c | 8 | ||||
-rw-r--r-- | plugins/resize.c | 8 | ||||
-rw-r--r-- | plugins/rotate.c | 8 | ||||
-rw-r--r-- | plugins/scale.c | 8 | ||||
-rw-r--r-- | plugins/screenshot.c | 8 | ||||
-rw-r--r-- | plugins/svg.c | 8 | ||||
-rw-r--r-- | plugins/switcher.c | 8 | ||||
-rw-r--r-- | plugins/video.c | 8 | ||||
-rw-r--r-- | plugins/water.c | 8 | ||||
-rw-r--r-- | plugins/wobbly.c | 8 | ||||
-rw-r--r-- | plugins/zoom.c | 8 | ||||
-rw-r--r-- | src/plugin.c | 19 |
31 files changed, 15 insertions, 270 deletions
diff --git a/include/compiz.h b/include/compiz.h index d6e6a997..cd21042d 100644 --- a/include/compiz.h +++ b/include/compiz.h @@ -2859,9 +2859,6 @@ windowAddNotify (CompWindow *w); #define HOME_PLUGINDIR ".compiz/plugins" -typedef int (*GetVersionProc) (CompPlugin *plugin, - int version); - typedef Bool (*InitPluginProc) (CompPlugin *plugin); typedef void (*FiniPluginProc) (CompPlugin *plugin); @@ -2870,7 +2867,6 @@ typedef CompMetadata *(*GetMetadataProc) (CompPlugin *plugin); typedef struct _CompPluginVTable { const char *name; - GetVersionProc getVersion; GetMetadataProc getMetadata; InitPluginProc init; diff --git a/plugins/annotate.c b/plugins/annotate.c index d63d5041..c9967beb 100644 --- a/plugins/annotate.c +++ b/plugins/annotate.c @@ -880,13 +880,6 @@ annoFini (CompPlugin *p) compFiniMetadata (&annoMetadata); } -static int -annoGetVersion (CompPlugin *plugin, - int version) -{ - return ABIVERSION; -} - static CompMetadata * annoGetMetadata (CompPlugin *plugin) { @@ -895,7 +888,6 @@ annoGetMetadata (CompPlugin *plugin) static CompPluginVTable annoVTable = { "annotate", - annoGetVersion, annoGetMetadata, annoInit, annoFini, diff --git a/plugins/blur.c b/plugins/blur.c index 8c7ef17c..0881b3ed 100644 --- a/plugins/blur.c +++ b/plugins/blur.c @@ -2776,13 +2776,6 @@ blurFini (CompPlugin *p) compFiniMetadata (&blurMetadata); } -static int -blurGetVersion (CompPlugin *plugin, - int version) -{ - return ABIVERSION; -} - static CompMetadata * blurGetMetadata (CompPlugin *plugin) { @@ -2791,7 +2784,6 @@ blurGetMetadata (CompPlugin *plugin) static CompPluginVTable blurVTable = { "blur", - blurGetVersion, blurGetMetadata, blurInit, blurFini, diff --git a/plugins/clone.c b/plugins/clone.c index 3e27937d..1f4e84db 100644 --- a/plugins/clone.c +++ b/plugins/clone.c @@ -849,13 +849,6 @@ cloneFini (CompPlugin *p) compFiniMetadata (&cloneMetadata); } -static int -cloneGetVersion (CompPlugin *plugin, - int version) -{ - return ABIVERSION; -} - static CompMetadata * cloneGetMetadata (CompPlugin *plugin) { @@ -864,7 +857,6 @@ cloneGetMetadata (CompPlugin *plugin) CompPluginVTable cloneVTable = { "clone", - cloneGetVersion, cloneGetMetadata, cloneInit, cloneFini, diff --git a/plugins/cube.c b/plugins/cube.c index 81528279..84620ae4 100644 --- a/plugins/cube.c +++ b/plugins/cube.c @@ -2256,13 +2256,6 @@ cubeFini (CompPlugin *p) compFiniMetadata (&cubeMetadata); } -static int -cubeGetVersion (CompPlugin *plugin, - int version) -{ - return ABIVERSION; -} - static CompMetadata * cubeGetMetadata (CompPlugin *plugin) { @@ -2271,7 +2264,6 @@ cubeGetMetadata (CompPlugin *plugin) CompPluginVTable cubeVTable = { "cube", - cubeGetVersion, cubeGetMetadata, cubeInit, cubeFini, diff --git a/plugins/dbus.c b/plugins/dbus.c index fbbd0609..f26432de 100644 --- a/plugins/dbus.c +++ b/plugins/dbus.c @@ -1604,21 +1604,20 @@ dbusHandleGetPluginMetadataMessage (DBusConnection *connection, if (p) { - dbus_bool_t supportedABI; - int version; - char *shortDesc = NULL; - char *longDesc = NULL; - const char *blankStr = ""; - - version = (*p->vTable->getVersion) (p, ABIVERSION); - supportedABI = (version == ABIVERSION) ? TRUE : FALSE; + Bool initializedPlugin = TRUE; + char *shortDesc = NULL; + char *longDesc = NULL; + const char *blankStr = ""; reply = dbus_message_new_method_return (message); - if (supportedABI && loadedPlugin) - (*p->vTable->init) (p); + if (loadedPlugin) + { + if (!(*p->vTable->init) (p)) + initializedPlugin = FALSE; + } - if (supportedABI && p->vTable->getMetadata) + if (initializedPlugin && p->vTable->getMetadata) { CompMetadata *m; @@ -1652,16 +1651,16 @@ dbusHandleGetPluginMetadataMessage (DBusConnection *connection, DBUS_TYPE_STRING, &blankStr, DBUS_TYPE_INVALID); + dbus_message_append_args (reply, + DBUS_TYPE_BOOLEAN, &initializedPlugin, + DBUS_TYPE_INVALID); + if (shortDesc) free (shortDesc); if (longDesc) free (longDesc); - dbus_message_append_args (reply, - DBUS_TYPE_BOOLEAN, &supportedABI, - DBUS_TYPE_INVALID); - - if (supportedABI && loadedPlugin) + if (loadedPlugin && initializedPlugin) (*p->vTable->fini) (p); } else @@ -2551,13 +2550,6 @@ dbusFini (CompPlugin *p) compFiniMetadata (&dbusMetadata); } -static int -dbusGetVersion (CompPlugin *plugin, - int version) -{ - return ABIVERSION; -} - static CompMetadata * dbusGetMetadata (CompPlugin *plugin) { @@ -2566,7 +2558,6 @@ dbusGetMetadata (CompPlugin *plugin) CompPluginVTable dbusVTable = { "dbus", - dbusGetVersion, dbusGetMetadata, dbusInit, dbusFini, diff --git a/plugins/decoration.c b/plugins/decoration.c index 7089993d..7eb11be7 100644 --- a/plugins/decoration.c +++ b/plugins/decoration.c @@ -1481,13 +1481,6 @@ decorFini (CompPlugin *p) compFiniMetadata (&decorMetadata); } -static int -decorGetVersion (CompPlugin *plugin, - int version) -{ - return ABIVERSION; -} - static CompMetadata * decorGetMetadata (CompPlugin *plugin) { @@ -1496,7 +1489,6 @@ decorGetMetadata (CompPlugin *plugin) static CompPluginVTable decorVTable = { "decoration", - decorGetVersion, decorGetMetadata, decorInit, decorFini, diff --git a/plugins/fade.c b/plugins/fade.c index d5c11e25..ec7ed706 100644 --- a/plugins/fade.c +++ b/plugins/fade.c @@ -838,13 +838,6 @@ fadeFini (CompPlugin *p) compFiniMetadata (&fadeMetadata); } -static int -fadeGetVersion (CompPlugin *plugin, - int version) -{ - return ABIVERSION; -} - static CompMetadata * fadeGetMetadata (CompPlugin *plugin) { @@ -853,7 +846,6 @@ fadeGetMetadata (CompPlugin *plugin) static CompPluginVTable fadeVTable = { "fade", - fadeGetVersion, fadeGetMetadata, fadeInit, fadeFini, diff --git a/plugins/fuse.c b/plugins/fuse.c index 1d6d2d23..986dabe8 100644 --- a/plugins/fuse.c +++ b/plugins/fuse.c @@ -1387,13 +1387,6 @@ fuseFini (CompPlugin *p) compFiniMetadata (&fuseMetadata); } -static int -fuseGetVersion (CompPlugin *plugin, - int version) -{ - return ABIVERSION; -} - static CompMetadata * fuseGetMetadata (CompPlugin *plugin) { @@ -1402,7 +1395,6 @@ fuseGetMetadata (CompPlugin *plugin) CompPluginVTable fuseVTable = { "fs", - fuseGetVersion, fuseGetMetadata, fuseInit, fuseFini, diff --git a/plugins/gconf.c b/plugins/gconf.c index 164054b1..6cb48cd1 100644 --- a/plugins/gconf.c +++ b/plugins/gconf.c @@ -916,13 +916,6 @@ gconfFini (CompPlugin *p) compFiniMetadata (&gconfMetadata); } -static int -gconfGetVersion (CompPlugin *plugin, - int version) -{ - return ABIVERSION; -} - static CompMetadata * gconfGetMetadata (CompPlugin *plugin) { @@ -931,7 +924,6 @@ gconfGetMetadata (CompPlugin *plugin) CompPluginVTable gconfVTable = { "gconf", - gconfGetVersion, gconfGetMetadata, gconfInit, gconfFini, diff --git a/plugins/glib.c b/plugins/glib.c index 451243eb..e6a2dab0 100644 --- a/plugins/glib.c +++ b/plugins/glib.c @@ -257,13 +257,6 @@ glibFini (CompPlugin *p) compFiniMetadata (&glibMetadata); } -static int -glibGetVersion (CompPlugin *plugin, - int version) -{ - return ABIVERSION; -} - static CompMetadata * glibGetMetadata (CompPlugin *plugin) { @@ -272,7 +265,6 @@ glibGetMetadata (CompPlugin *plugin) CompPluginVTable glibVTable = { "glib", - glibGetVersion, glibGetMetadata, glibInit, glibFini, diff --git a/plugins/ini.c b/plugins/ini.c index d82bc47a..c82a26e7 100644 --- a/plugins/ini.c +++ b/plugins/ini.c @@ -1201,12 +1201,6 @@ iniFini (CompPlugin *p) freeDisplayPrivateIndex (displayPrivateIndex); } -static int -iniGetVersion (CompPlugin *plugin, int version) -{ - return ABIVERSION; -} - static CompMetadata * iniGetMetadata (CompPlugin *plugin) { @@ -1215,7 +1209,6 @@ iniGetMetadata (CompPlugin *plugin) CompPluginVTable iniVTable = { "ini", - iniGetVersion, iniGetMetadata, iniInit, iniFini, diff --git a/plugins/inotify.c b/plugins/inotify.c index ab40f47d..4bd50d69 100644 --- a/plugins/inotify.c +++ b/plugins/inotify.c @@ -266,13 +266,6 @@ inotifyFini (CompPlugin *p) compFiniMetadata (&inotifyMetadata); } -static int -inotifyGetVersion (CompPlugin *plugin, - int version) -{ - return ABIVERSION; -} - static CompMetadata * inotifyGetMetadata (CompPlugin *plugin) { @@ -281,7 +274,6 @@ inotifyGetMetadata (CompPlugin *plugin) CompPluginVTable inotifyVTable = { "inotify", - inotifyGetVersion, inotifyGetMetadata, inotifyInit, inotifyFini, diff --git a/plugins/kconfig.cpp b/plugins/kconfig.cpp index a087aea9..e477f197 100644 --- a/plugins/kconfig.cpp +++ b/plugins/kconfig.cpp @@ -817,13 +817,6 @@ kconfigFini (CompPlugin *p) compFiniMetadata (&kconfigMetadata); } -static int -kconfigGetVersion (CompPlugin *plugin, - int version) -{ - return ABIVERSION; -} - static CompMetadata * kconfigGetMetadata (CompPlugin *plugin) { @@ -832,7 +825,6 @@ kconfigGetMetadata (CompPlugin *plugin) CompPluginVTable kconfigVTable = { "kconfig", - kconfigGetVersion, kconfigGetMetadata, kconfigInit, kconfigFini, diff --git a/plugins/minimize.c b/plugins/minimize.c index 4a2024cb..d369c1f3 100644 --- a/plugins/minimize.c +++ b/plugins/minimize.c @@ -1004,13 +1004,6 @@ minFini (CompPlugin *p) compFiniMetadata (&minMetadata); } -static int -minGetVersion (CompPlugin *plugin, - int version) -{ - return ABIVERSION; -} - static CompMetadata * minGetMetadata (CompPlugin *plugin) { @@ -1019,7 +1012,6 @@ minGetMetadata (CompPlugin *plugin) static CompPluginVTable minVTable = { "minimize", - minGetVersion, minGetMetadata, minInit, minFini, diff --git a/plugins/move.c b/plugins/move.c index b1abba14..827e69a0 100644 --- a/plugins/move.c +++ b/plugins/move.c @@ -930,13 +930,6 @@ moveFini (CompPlugin *p) compFiniMetadata (&moveMetadata); } -static int -moveGetVersion (CompPlugin *plugin, - int version) -{ - return ABIVERSION; -} - static CompMetadata * moveGetMetadata (CompPlugin *plugin) { @@ -945,7 +938,6 @@ moveGetMetadata (CompPlugin *plugin) CompPluginVTable moveVTable = { "move", - moveGetVersion, moveGetMetadata, moveInit, moveFini, diff --git a/plugins/place.c b/plugins/place.c index d6e5fe8e..5322d2f6 100644 --- a/plugins/place.c +++ b/plugins/place.c @@ -1500,13 +1500,6 @@ placeFini (CompPlugin *p) compFiniMetadata (&placeMetadata); } -static int -placeGetVersion (CompPlugin *plugin, - int version) -{ - return ABIVERSION; -} - static CompMetadata * placeGetMetadata (CompPlugin *plugin) { @@ -1515,7 +1508,6 @@ placeGetMetadata (CompPlugin *plugin) static CompPluginVTable placeVTable = { "place", - placeGetVersion, placeGetMetadata, placeInit, placeFini, diff --git a/plugins/plane.c b/plugins/plane.c index 58d1dbb5..4639c55f 100644 --- a/plugins/plane.c +++ b/plugins/plane.c @@ -719,13 +719,6 @@ planeFini (CompPlugin *p) compFiniMetadata (&planeMetadata); } -static int -planeGetVersion (CompPlugin *plugin, - int version) -{ - return ABIVERSION; -} - static CompMetadata * planeGetMetadata (CompPlugin *plugin) { @@ -734,7 +727,6 @@ planeGetMetadata (CompPlugin *plugin) CompPluginVTable planeVTable = { "plane", - planeGetVersion, planeGetMetadata, planeInit, planeFini, diff --git a/plugins/png.c b/plugins/png.c index 3a005253..03e69835 100644 --- a/plugins/png.c +++ b/plugins/png.c @@ -527,13 +527,6 @@ pngFini (CompPlugin *p) compFiniMetadata (&pngMetadata); } -static int -pngGetVersion (CompPlugin *plugin, - int version) -{ - return ABIVERSION; -} - static CompMetadata * pngGetMetadata (CompPlugin *plugin) { @@ -542,7 +535,6 @@ pngGetMetadata (CompPlugin *plugin) CompPluginVTable pngVTable = { "png", - pngGetVersion, pngGetMetadata, pngInit, pngFini, diff --git a/plugins/regex.c b/plugins/regex.c index 865bfbd4..1ef02991 100644 --- a/plugins/regex.c +++ b/plugins/regex.c @@ -491,13 +491,6 @@ regexFini (CompPlugin *p) compFiniMetadata (®exMetadata); } -static int -regexGetVersion (CompPlugin *plugin, - int version) -{ - return ABIVERSION; -} - static CompMetadata * regexGetMetadata (CompPlugin *plugin) { @@ -506,7 +499,6 @@ regexGetMetadata (CompPlugin *plugin) static CompPluginVTable regexVTable = { "regex", - regexGetVersion, regexGetMetadata, regexInit, regexFini, diff --git a/plugins/resize.c b/plugins/resize.c index 3e45b012..e049255b 100644 --- a/plugins/resize.c +++ b/plugins/resize.c @@ -1383,13 +1383,6 @@ resizeFini (CompPlugin *p) compFiniMetadata (&resizeMetadata); } -static int -resizeGetVersion (CompPlugin *plugin, - int version) -{ - return ABIVERSION; -} - static CompMetadata * resizeGetMetadata (CompPlugin *plugin) { @@ -1398,7 +1391,6 @@ resizeGetMetadata (CompPlugin *plugin) CompPluginVTable resizeVTable = { "resize", - resizeGetVersion, resizeGetMetadata, resizeInit, resizeFini, diff --git a/plugins/rotate.c b/plugins/rotate.c index d8c361b6..5cfede01 100644 --- a/plugins/rotate.c +++ b/plugins/rotate.c @@ -1898,13 +1898,6 @@ rotateFini (CompPlugin *p) compFiniMetadata (&rotateMetadata); } -static int -rotateGetVersion (CompPlugin *plugin, - int version) -{ - return ABIVERSION; -} - static CompMetadata * rotateGetMetadata (CompPlugin *plugin) { @@ -1913,7 +1906,6 @@ rotateGetMetadata (CompPlugin *plugin) CompPluginVTable rotateVTable = { "rotate", - rotateGetVersion, rotateGetMetadata, rotateInit, rotateFini, diff --git a/plugins/scale.c b/plugins/scale.c index d34af04a..ac468578 100644 --- a/plugins/scale.c +++ b/plugins/scale.c @@ -2163,13 +2163,6 @@ scaleFini (CompPlugin *p) compFiniMetadata (&scaleMetadata); } -static int -scaleGetVersion (CompPlugin *plugin, - int version) -{ - return ABIVERSION; -} - static CompMetadata * scaleGetMetadata (CompPlugin *plugin) { @@ -2178,7 +2171,6 @@ scaleGetMetadata (CompPlugin *plugin) CompPluginVTable scaleVTable = { "scale", - scaleGetVersion, scaleGetMetadata, scaleInit, scaleFini, diff --git a/plugins/screenshot.c b/plugins/screenshot.c index 949f4bfc..efb5741c 100644 --- a/plugins/screenshot.c +++ b/plugins/screenshot.c @@ -547,13 +547,6 @@ shotFini (CompPlugin *p) compFiniMetadata (&shotMetadata); } -static int -shotGetVersion (CompPlugin *plugin, - int version) -{ - return ABIVERSION; -} - static CompMetadata * shotGetMetadata (CompPlugin *plugin) { @@ -562,7 +555,6 @@ shotGetMetadata (CompPlugin *plugin) static CompPluginVTable shotVTable = { "screenshot", - shotGetVersion, shotGetMetadata, shotInit, shotFini, diff --git a/plugins/svg.c b/plugins/svg.c index e95eaaf5..2215be9b 100644 --- a/plugins/svg.c +++ b/plugins/svg.c @@ -969,13 +969,6 @@ svgFini (CompPlugin *p) compFiniMetadata (&svgMetadata); } -static int -svgGetVersion (CompPlugin *plugin, - int version) -{ - return ABIVERSION; -} - static CompMetadata * svgGetMetadata (CompPlugin *plugin) { @@ -984,7 +977,6 @@ svgGetMetadata (CompPlugin *plugin) CompPluginVTable svgVTable = { "svg", - svgGetVersion, svgGetMetadata, svgInit, svgFini, diff --git a/plugins/switcher.c b/plugins/switcher.c index 569bbb15..8e530740 100644 --- a/plugins/switcher.c +++ b/plugins/switcher.c @@ -2051,13 +2051,6 @@ switchFini (CompPlugin *p) compFiniMetadata (&switchMetadata); } -static int -switchGetVersion (CompPlugin *plugin, - int version) -{ - return ABIVERSION; -} - static CompMetadata * switchGetMetadata (CompPlugin *plugin) { @@ -2066,7 +2059,6 @@ switchGetMetadata (CompPlugin *plugin) CompPluginVTable switchVTable = { "switcher", - switchGetVersion, switchGetMetadata, switchInit, switchFini, diff --git a/plugins/video.c b/plugins/video.c index a8c13ddd..7d0df7f3 100644 --- a/plugins/video.c +++ b/plugins/video.c @@ -1248,13 +1248,6 @@ videoFini (CompPlugin *p) compFiniMetadata (&videoMetadata); } -static int -videoGetVersion (CompPlugin *plugin, - int version) -{ - return ABIVERSION; -} - static CompMetadata * videoGetMetadata (CompPlugin *plugin) { @@ -1263,7 +1256,6 @@ videoGetMetadata (CompPlugin *plugin) static CompPluginVTable videoVTable = { "video", - videoGetVersion, videoGetMetadata, videoInit, videoFini, diff --git a/plugins/water.c b/plugins/water.c index b8d173f6..52405f2a 100644 --- a/plugins/water.c +++ b/plugins/water.c @@ -1744,13 +1744,6 @@ waterFini (CompPlugin *p) compFiniMetadata (&waterMetadata); } -static int -waterGetVersion (CompPlugin *plugin, - int version) -{ - return ABIVERSION; -} - static CompMetadata * waterGetMetadata (CompPlugin *plugin) { @@ -1759,7 +1752,6 @@ waterGetMetadata (CompPlugin *plugin) static CompPluginVTable waterVTable = { "water", - waterGetVersion, waterGetMetadata, waterInit, waterFini, diff --git a/plugins/wobbly.c b/plugins/wobbly.c index 738d4b28..13cbc4e4 100644 --- a/plugins/wobbly.c +++ b/plugins/wobbly.c @@ -2871,13 +2871,6 @@ wobblyFini (CompPlugin *p) compFiniMetadata (&wobblyMetadata); } -static int -wobblyGetVersion (CompPlugin *plugin, - int version) -{ - return ABIVERSION; -} - static CompMetadata * wobblyGetMetadata (CompPlugin *plugin) { @@ -2886,7 +2879,6 @@ wobblyGetMetadata (CompPlugin *plugin) CompPluginVTable wobblyVTable = { "wobbly", - wobblyGetVersion, wobblyGetMetadata, wobblyInit, wobblyFini, diff --git a/plugins/zoom.c b/plugins/zoom.c index 8b18182d..c6b46526 100644 --- a/plugins/zoom.c +++ b/plugins/zoom.c @@ -1121,13 +1121,6 @@ zoomFini (CompPlugin *p) compFiniMetadata (&zoomMetadata); } -static int -zoomGetVersion (CompPlugin *plugin, - int version) -{ - return ABIVERSION; -} - static CompMetadata * zoomGetMetadata (CompPlugin *plugin) { @@ -1136,7 +1129,6 @@ zoomGetMetadata (CompPlugin *plugin) CompPluginVTable zoomVTable = { "zoom", - zoomGetVersion, zoomGetMetadata, zoomInit, zoomFini, diff --git a/src/plugin.c b/src/plugin.c index 3843cb34..547a632c 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -44,13 +44,6 @@ coreFini (CompPlugin *p) { } -static int -coreGetVersion (CompPlugin *plugin, - int version) -{ - return ABIVERSION; -} - static CompMetadata * coreGetMetadata (CompPlugin *plugin) { @@ -93,7 +86,6 @@ coreSetScreenOption (CompPlugin *plugin, static CompPluginVTable coreVTable = { "core", - coreGetVersion, coreGetMetadata, coreInit, coreFini, @@ -423,17 +415,6 @@ static Bool initPlugin (CompPlugin *p) { CompDisplay *d = compDisplays; - int version; - - version = (*p->vTable->getVersion) (p, ABIVERSION); - if (version != ABIVERSION) - { - compLogMessage (NULL, "core", CompLogLevelError, - "Can't load plugin '%s' because it is built for " - "ABI version %d and actual version is %d", - p->vTable->name, version, ABIVERSION); - return FALSE; - } if (!(*p->vTable->init) (p)) { |