Skip to contentSkip to conversation

Fix wiimote device_get_address to use new API

PATCH In review David Herrmann 3 participants 7 messages Dec 29, 2011 – Dec 30, 2011 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix wiimote device_get_address to use new API

Commit b06899eace1f484b387aae0e568fb1da988b468c introduced a new API for device_get_name but apparently missed fixing the call in plugins/wiimote.c. This patch converts the plugin to use the new API.

---
 plugins/wiimote.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
plugins/wiimote.c +1 -1
index fead72a..1ae638b 100644
@@ -63,7 +63,7 @@ static ssize_t wii_pincb(struct btd_adapter *adapter, struct btd_device *device,
 	char addr[18];
 
 	adapter_get_address(adapter, &sba);
-	device_get_address(device, &dba);
+	device_get_address(device, &dba, NULL);
 	ba2str(&dba, addr);
 
 	vendor = btd_device_get_vendor(device);
Signature · 1 line
1.7.8.1
#1 lore raw

Hi David,

Quoted 3 lines · David Herrmann

Commit b06899eace1f484b387aae0e568fb1da988b468c introduced a new API for device_get_name but apparently missed fixing the call in plugins/wiimote.c. This patch converts the plugin to use the new API.

You should consider adding this plugin to bootstrap-configure, so it is not forgotten again. Currently it is not built by running "./bootstrap-configure"

Regards,

Signature · 3 lines
Anderson Lizardo
Instituto Nokia de Tecnologia - INdT
Manaus - Brazil
#2 lore raw

PATCH 1/1 Add wiimote plugin to bootstrap-configure

---
 bootstrap-configure |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
bootstrap-configure +1 -0
index 94da969..89ea156 100755
@@ -34,5 +34,6 @@ fi
 		--enable-cups \
 		--enable-sap \
 		--enable-thermometer \
+		--enable-wiimote \
 		--disable-pcmcia \
 		--disable-datafiles $*
Signature · 1 line
1.7.8.1
#3 lore raw

PATCH v2 1/1 Add wiimote plugin to bootstrap-configure

---
Sorry, this time without the signed-off-by line.

 bootstrap-configure |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
bootstrap-configure +1 -0
index 94da969..89ea156 100755
@@ -34,5 +34,6 @@ fi
 		--enable-cups \
 		--enable-sap \
 		--enable-thermometer \
+		--enable-wiimote \
 		--disable-pcmcia \
 		--disable-datafiles $*
Signature · 1 line
1.7.8.1
#4 lore raw

Re: [PATCH v2] Add wiimote plugin to bootstrap-configure

Hi David,

Quoted 5 lines · David Herrmann

---
Sorry, this time without the signed-off-by line.

 bootstrap-configure |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Applied. Thanks.

Johan

#5 lore raw
In reply to Anderson Lizardo
Quoted 11 lines · Anderson Lizardo

Hi David,

Quoted 3 lines · David Herrmann

Commit b06899eace1f484b387aae0e568fb1da988b468c introduced a new API for device_get_name but apparently missed fixing the call in plugins/wiimote.c. This patch converts the plugin to use the new API.

You should consider adding this plugin to bootstrap-configure, so it is not forgotten again. Currently it is not built by running "./bootstrap-configure"

Ah, I didn't know of it. I've sent a separate patch. Thanks.

#6 lore raw
In reply to David Herrmann

Hi David,

Quoted 6 lines · David Herrmann

Commit b06899eace1f484b387aae0e568fb1da988b468c introduced a new API for device_get_name but apparently missed fixing the call in plugins/wiimote.c. This patch converts the plugin to use the new API.

---
 plugins/wiimote.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Applied after the obvious s/get_name/get_address/ in the commit message. Thanks.

Johan