summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2007-07-30 10:45:27 +0200
committerDanny Baumann <dannybaumann@web.de>2007-07-30 10:45:27 +0200
commit549e4cb282045efd2c1b3cbe85123bc8748d2093 (patch)
tree9ff15c50b7d883ee20e07d801ffbfcd414f20eb3
parent4a98ef4b75f68406b1068481eb1de5ed614f4e1d (diff)
downloadworkarounds-549e4cb282045efd2c1b3cbe85123bc8748d2093.tar.gz
workarounds-549e4cb282045efd2c1b3cbe85123bc8748d2093.tar.bz2
BCOP does the metadata handling.
-rw-r--r--workarounds.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/workarounds.c b/workarounds.c
index 899d1ea..b57e11c 100644
--- a/workarounds.c
+++ b/workarounds.c
@@ -25,7 +25,6 @@
#include <X11/Xatom.h>
#include <workarounds_options.h>
-static CompMetadata workaroundsMetadata;
static int displayPrivateIndex;
typedef struct _WorkaroundsDisplay {
@@ -275,19 +274,9 @@ workaroundsFiniWindow (CompPlugin *plugin, CompWindow *w)
static Bool
workaroundsInit (CompPlugin *plugin)
{
- if (!compInitPluginMetadataFromInfo (&workaroundsMetadata,
- plugin->vTable->name,
- 0, 0, 0, 0))
- return FALSE;
-
displayPrivateIndex = allocateDisplayPrivateIndex ();
if (displayPrivateIndex < 0)
- {
- compFiniMetadata (&workaroundsMetadata);
return FALSE;
- }
-
- compAddMetadataFromFile (&workaroundsMetadata, plugin->vTable->name);
return TRUE;
}
@@ -296,7 +285,6 @@ static void
workaroundsFini (CompPlugin *plugin)
{
freeDisplayPrivateIndex (displayPrivateIndex);
- compFiniMetadata (&workaroundsMetadata);
}
static int
@@ -305,17 +293,11 @@ workaroundsGetVersion (CompPlugin *plugin, int version)
return ABIVERSION;
}
-static CompMetadata *
-workaroundsGetMetadata (CompPlugin *plugin)
-{
- return &workaroundsMetadata;
-}
-
CompPluginVTable workaroundsVTable =
{
"workarounds",
workaroundsGetVersion,
- workaroundsGetMetadata,
+ 0,
workaroundsInit,
workaroundsFini,
workaroundsInitDisplay,