From 5737cc32256ce2c9c3a668bb49b887778e9b1223 Mon Sep 17 00:00:00 2001 From: Sam Spilsbury Date: Thu, 11 Dec 2008 22:15:21 +0900 Subject: * Fix incorrect extern declaration --- action.c | 2 ++ callback.c | 2 ++ compiz-wiimote.h | 2 +- connect.c | 2 ++ gesture.c | 2 ++ option.c | 2 ++ report.c | 2 ++ util.c | 1 - wiimote.c | 1 + 9 files changed, 14 insertions(+), 2 deletions(-) diff --git a/action.c b/action.c index 0b55a7f..8bfdb13 100644 --- a/action.c +++ b/action.c @@ -21,6 +21,8 @@ #include "compiz-wiimote.h" #include "wiimote_options.h" +int wiimoteDisplayPrivateIndex; + /* Callable Actions --------------------------------------------------- */ Bool diff --git a/callback.c b/callback.c index 6cadf49..20a2c83 100644 --- a/callback.c +++ b/callback.c @@ -21,6 +21,8 @@ #include "compiz-wiimote.h" #include "wiimote_options.h" +int wiimoteDisplayPrivateIndex; + /* Prototype cwiid_callback with cwiid_callback_t, define it with the actual * type - this will cause a compile error (rather than some undefined bizarre diff --git a/compiz-wiimote.h b/compiz-wiimote.h index 37b14f4..0e2d56d 100644 --- a/compiz-wiimote.h +++ b/compiz-wiimote.h @@ -370,7 +370,7 @@ typedef struct _WiimoteScreen GET_WIIMOTE_SCREEN (w->screen, \ GET_WIIMOTE_DISPLAY (w->screen->display))) -int wiimoteDisplayPrivateIndex; +extern int wiimoteDisplayPrivateIndex; cwiid_mesg_callback_t wiimoteCWiiDCallback; cwiid_err_t err; CompDisplay *firstDisplay; diff --git a/connect.c b/connect.c index 9fc528c..27ddce1 100644 --- a/connect.c +++ b/connect.c @@ -21,6 +21,8 @@ #include "compiz-wiimote.h" #include "wiimote_options.h" +int wiimoteDisplayPrivateIndex; + /* Wii Remote Connection / Handling --------------------------------------------------- */ /* Allocate a callback function */ diff --git a/gesture.c b/gesture.c index 2f20e08..f347103 100644 --- a/gesture.c +++ b/gesture.c @@ -21,6 +21,8 @@ #include "compiz-wiimote.h" #include "wiimote_options.h" +int wiimoteDisplayPrivateIndex; + /* Gesturing and gesture checking --------------------------------------------- */ #define CHECK_BUTTON(a,b,c,e) \ diff --git a/option.c b/option.c index 7e16ca6..31e7b12 100644 --- a/option.c +++ b/option.c @@ -21,6 +21,8 @@ #include "compiz-wiimote.h" #include "wiimote_options.h" +int wiimoteDisplayPrivateIndex; + /* Option Initialisation --------------------------------------------------- */ void diff --git a/report.c b/report.c index bdd9cec..efcf011 100644 --- a/report.c +++ b/report.c @@ -20,6 +20,8 @@ #include "compiz-wiimote.h" +int wiimoteDisplayPrivateIndex; + /* Value Reporting --------------------------------------------------- */ Bool sendReports(void *vs) diff --git a/util.c b/util.c index 7110232..96dcf11 100644 --- a/util.c +++ b/util.c @@ -20,7 +20,6 @@ #include "compiz-wiimote.h" - /* Utility Functions --------------------------------------------------- */ /* Error Handling */ diff --git a/wiimote.c b/wiimote.c index 28c9de8..dcba30b 100644 --- a/wiimote.c +++ b/wiimote.c @@ -24,6 +24,7 @@ #include "wiimote_options.h" static int corePrivateIndex; +int wiimoteDisplayPrivateIndex; /* Wrappable Functions --------------------------------------------------- */ static void -- cgit v1.1