summaryrefslogtreecommitdiff
path: root/connect.c
diff options
context:
space:
mode:
authorSam Spilsbury <Sam@XPS-SUSE.site>2008-09-10 21:32:38 +0800
committerSam Spilsbury <Sam@XPS-SUSE.site>2008-09-10 21:32:38 +0800
commitfb332e0b727fe93acf6e60532ee0093f426810d0 (patch)
tree825c611f627dffa85139f21f25f799851c39c977 /connect.c
parent8c26079a7c8e099c04040cf719912e9c93f5d007 (diff)
downloadwiimote-fb332e0b727fe93acf6e60532ee0093f426810d0.tar.gz
wiimote-fb332e0b727fe93acf6e60532ee0093f426810d0.tar.bz2
* ABI Update
Diffstat (limited to 'connect.c')
-rw-r--r--connect.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/connect.c b/connect.c
index df87301..4c903a7 100644
--- a/connect.c
+++ b/connect.c
@@ -95,7 +95,7 @@ void* connectWiimote (void *vd)
if (!find_wiimote(&bdaddr, 2))
{
- compLogMessage (d, "wiimote", CompLogLevelError,
+ compLogMessage ("wiimote", CompLogLevelError,
"Wii Remote not found");
for (s = d->screens; s; s = s->next)
@@ -161,7 +161,7 @@ void* connectWiimote (void *vd)
"display_text");
}
if (!(wiimote = cwiid_open(&bdaddr, 0))) {
- compLogMessage (d, "wiimote", CompLogLevelError,
+ compLogMessage ("wiimote", CompLogLevelError,
"Could not connect to Wii Remote");
return NULL;
@@ -232,18 +232,18 @@ Bool checkConnected (void *vd)
if (ad->cWiimote[ad->nWiimote].connected)
{
/* Connect to the wiimote */
- compLogMessage (d, "wiimote", CompLogLevelInfo,
+ compLogMessage ("wiimote", CompLogLevelInfo,
"Wii Remote Connection started");
if (allocateCallbackFunction
(ad->cWiimote[ad->nWiimote].wiimote, ad->nWiimote)) // Allocate a c
{
- compLogMessage (d, "wiimote", CompLogLevelInfo,
+ compLogMessage ("wiimote", CompLogLevelInfo,
"Wii Remote is now connected");
if (cwiid_set_rumble(ad->cWiimote[0].wiimote, rumble)) {
- compLogMessage (d, "wiimote", CompLogLevelError,
+ compLogMessage ("wiimote", CompLogLevelError,
"Couldn't set rumble");
}
@@ -288,7 +288,7 @@ Bool checkConnected (void *vd)
/* FIXME !mesg is here unconditionally true */
if (!mesg) {
if (cwiid_enable(ad->cWiimote[ad->nWiimote].wiimote, CWIID_FLAG_MESG_IFC)) {
- compLogMessage (d, "wiimote", CompLogLevelError,
+ compLogMessage ("wiimote", CompLogLevelError,
"Couldn't set messages. Wii remote will connect, but reporting and other things won't work!");
}
else {
@@ -297,7 +297,7 @@ Bool checkConnected (void *vd)
}
else {
if (cwiid_disable(ad->cWiimote[ad->nWiimote].wiimote, CWIID_FLAG_MESG_IFC)) {
- compLogMessage (d, "wiimote", CompLogLevelError,
+ compLogMessage ("wiimote", CompLogLevelError,
"Couldn't disable messages");
}
else {
@@ -308,14 +308,14 @@ Bool checkConnected (void *vd)
/* Request Status */
if (cwiid_request_status(ad->cWiimote[ad->nWiimote].wiimote)) {
- compLogMessage (d, "wiimote", CompLogLevelError,
+ compLogMessage ("wiimote", CompLogLevelError,
"Error requesting status. Battery info will not work!");
}
/* Request State */
if (cwiid_get_state(ad->cWiimote[ad->nWiimote].wiimote, &state)) {
- compLogMessage (d, "wiimote", CompLogLevelError,
+ compLogMessage ("wiimote", CompLogLevelError,
"Error requesting state. Calibration will not work!");
}
@@ -359,7 +359,7 @@ Bool checkConnected (void *vd)
}
else
{
- compLogMessage (d, "wiimote", CompLogLevelError,
+ compLogMessage ("wiimote", CompLogLevelError,
"Maximum number of Wii Remotes reached. If you want to enable more,"\
"change the macro MAX_WIIMOTES in wiimote.c. This will be fixed in "\
"the future with actual memory allocation");