summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2008-04-28 20:02:07 +0800
committerSam Spilsbury <smspillaz@gmail.com>2008-04-28 20:02:07 +0800
commit55339b757b543543c1ac1a470eef9099ebc2fb0d (patch)
tree6324534bc0dbe11311d8cf198f85047ea5422a22
parent047003f85658f0cd62714cb3b90f089a7a3af0c0 (diff)
downloadwiimote-55339b757b543543c1ac1a470eef9099ebc2fb0d.tar.gz
wiimote-55339b757b543543c1ac1a470eef9099ebc2fb0d.tar.bz2
* Declare that as an extern int and not multiple static ints
-rw-r--r--action.c2
-rw-r--r--callback.c2
-rw-r--r--compiz-wiimote.h1
-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, 1 insertions, 14 deletions
diff --git a/action.c b/action.c
index ac1207c..8ee8702 100644
--- a/action.c
+++ b/action.c
@@ -21,8 +21,6 @@
#include "compiz-wiimote.h"
#include "wiimote_options.h"
-static int wiimoteDisplayPrivateIndex;
-
/* Callable Actions --------------------------------------------------- */
Bool
diff --git a/callback.c b/callback.c
index 497103c..7d1776d 100644
--- a/callback.c
+++ b/callback.c
@@ -21,8 +21,6 @@
#include "compiz-wiimote.h"
#include "wiimote_options.h"
-static 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 a36931a..772f6f4 100644
--- a/compiz-wiimote.h
+++ b/compiz-wiimote.h
@@ -370,6 +370,7 @@ typedef struct _WiimoteScreen
GET_WIIMOTE_SCREEN (w->screen, \
GET_WIIMOTE_DISPLAY (w->screen->display)))
+extern int wiimoteDisplayPrivateIndex;
cwiid_mesg_callback_t wiimoteCWiiDCallback;
cwiid_err_t err;
CompDisplay *firstDisplay;
diff --git a/connect.c b/connect.c
index d29ff59..0b4226e 100644
--- a/connect.c
+++ b/connect.c
@@ -21,8 +21,6 @@
#include "compiz-wiimote.h"
#include "wiimote_options.h"
-static int wiimoteDisplayPrivateIndex;
-
/* Wii Remote Connection / Handling --------------------------------------------------- */
/* Allocate a callback function */
diff --git a/gesture.c b/gesture.c
index 2e288e9..0d77778 100644
--- a/gesture.c
+++ b/gesture.c
@@ -21,8 +21,6 @@
#include "compiz-wiimote.h"
#include "wiimote_options.h"
-static int wiimoteDisplayPrivateIndex;
-
/* Gesturing and gesture checking --------------------------------------------- */
#define CHECK_BUTTON(a,b,c,e) \
diff --git a/option.c b/option.c
index 30d2ad8..54a7225 100644
--- a/option.c
+++ b/option.c
@@ -21,8 +21,6 @@
#include "compiz-wiimote.h"
#include "wiimote_options.h"
-static int wiimoteDisplayPrivateIndex;
-
/* Option Initialisation --------------------------------------------------- */
void
diff --git a/report.c b/report.c
index 795b6c8..d420e98 100644
--- a/report.c
+++ b/report.c
@@ -20,8 +20,6 @@
#include "compiz-wiimote.h"
-static int wiimoteDisplayPrivateIndex;
-
/* Value Reporting --------------------------------------------------- */
Bool sendReports(void *vs)
diff --git a/util.c b/util.c
index a2fef3a..de68e62 100644
--- a/util.c
+++ b/util.c
@@ -20,7 +20,6 @@
#include "compiz-wiimote.h"
-static int wiimoteDisplayPrivateIndex;
/* Utility Functions --------------------------------------------------- */
diff --git a/wiimote.c b/wiimote.c
index 8c67c3f..e73b928 100644
--- a/wiimote.c
+++ b/wiimote.c
@@ -23,7 +23,6 @@
#include "compiz-wiimote.h"
#include "wiimote_options.h"
-static int wiimoteDisplayPrivateIndex;
static int corePrivateIndex;
/* Wrappable Functions --------------------------------------------------- */