summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Riedi <andrewriedi@gmail.com>2007-06-07 16:30:05 -0700
committerAndrew Riedi <andrewriedi@gmail.com>2007-06-07 16:30:05 -0700
commit96e9cf2b650aae80fd4c2d1f9cd5c2978d4aa8f8 (patch)
tree1b8a8f84f56a18e0d0580600824ded17a7b254da
parenta39a146454f7041f41642bfc5da05f5a22c89453 (diff)
downloadworkarounds-96e9cf2b650aae80fd4c2d1f9cd5c2978d4aa8f8.tar.gz
workarounds-96e9cf2b650aae80fd4c2d1f9cd5c2978d4aa8f8.tar.bz2
Make the plug-in loadable.
-rw-r--r--workarounds.c41
1 files changed, 41 insertions, 0 deletions
diff --git a/workarounds.c b/workarounds.c
index 85dfb5a..eda7cf4 100644
--- a/workarounds.c
+++ b/workarounds.c
@@ -20,3 +20,44 @@
#include <compiz.h>
+static Bool workaroundsInit( CompPlugin *plugin )
+{
+ return TRUE;
+}
+
+static void workaroundsFini( CompPlugin *plugin )
+{
+}
+
+static int workaroundsGetVersion( CompPlugin *plugin, int version )
+{
+ return ABIVERSION;
+}
+
+CompPluginVTable workaroundsVTable =
+{
+ "workarounds",
+ workaroundsGetVersion,
+ 0, /* GetMetadata */
+ workaroundsInit,
+ workaroundsFini,
+ 0, /* InitDisplay */
+ 0, /* FiniDisplay */
+ 0, /* InitScreen */
+ 0, /* FiniScreen */
+ 0, /* InitWindow */
+ 0, /* FiniWindow */
+ 0, /* GetDisplayOptions */
+ 0, /* SetDisplayOption */
+ 0, /* GetScreenOptions */
+ 0, /* SetScreenOption */
+ 0, /* Deps */
+ 0, /* nDeps */
+ 0, /* Features */
+ 0 /* nFeatures */
+};
+
+CompPluginVTable *getCompPluginInfo( void )
+{
+ return &workaroundsVTable;
+}