summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <Sam@XPS-SUSE.site>2008-12-11 22:15:21 +0900
committerSam Spilsbury <Sam@XPS-SUSE.site>2008-12-11 22:15:21 +0900
commit5737cc32256ce2c9c3a668bb49b887778e9b1223 (patch)
tree1a952646b0aae0c4ca98585bfd2a51ee5a2b2892
parent6a92e23f513d6c465844db1d24a888c07c63c141 (diff)
downloadwiimote-5737cc32256ce2c9c3a668bb49b887778e9b1223.tar.gz
wiimote-5737cc32256ce2c9c3a668bb49b887778e9b1223.tar.bz2
* Fix incorrect extern declaration
-rw-r--r--action.c2
-rw-r--r--callback.c2
-rw-r--r--compiz-wiimote.h2
-rw-r--r--connect.c2
-rw-r--r--gesture.c2
-rw-r--r--option.c2
-rw-r--r--report.c2
-rw-r--r--util.c1
-rw-r--r--wiimote.c1
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