summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Seguin <guillaume@segu.in>2007-08-31 01:38:13 +0200
committerGuillaume Seguin <guillaume@segu.in>2007-08-31 01:38:13 +0200
commita1da640f0aa18b64e7a7c8153fc8eac1530d296c (patch)
tree3d73771eacd5ea85799a69e38a1e8e2677098a4f
parent138be155c81ec6009f8f452df0c4783dc87282e8 (diff)
downloadmswitch-a1da640f0aa18b64e7a7c8153fc8eac1530d296c.tar.gz
mswitch-a1da640f0aa18b64e7a7c8153fc8eac1530d296c.tar.bz2
* Track core changes
-rw-r--r--mswitch.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/mswitch.c b/mswitch.c
index 781e124..12df5b9 100644
--- a/mswitch.c
+++ b/mswitch.c
@@ -16,7 +16,7 @@
*
*/
-#include <compiz.h>
+#include <compiz-core.h>
#include <math.h>
#include <X11/Xlib.h>
#include "mswitch_options.h"
@@ -110,25 +110,23 @@ static Bool mswitchInitDisplay(CompPlugin *p,
return TRUE;
}
-static int mswitchGetVersion(CompPlugin *p, int version)
+static CompBool
+mswitchInitObject (CompPlugin *p,
+ CompObject *o)
{
- return ABIVERSION;
-}
+ static InitPluginObjectProc dispTab[] = {
+ (InitPluginObjectProc) mswitchInitDisplay,
+ };
+ RETURN_DISPATCH (o, dispTab, ARRAY_SIZE (dispTab), TRUE, (p, o));
+}
CompPluginVTable mswitchVTable = {
"mswitch",
- mswitchGetVersion,
- 0,
- 0,
- 0,
- mswitchInitDisplay,
- 0,
- 0,
- 0,
0,
0,
0,
+ mswitchInitObject,
0,
0,
0